Simulate cmds in shell of linux kernel