linux command --- terminal common commands

switch to root : sudo su、su root、sudo -s

sudo !! :重新使用 sudo 权限执行上一条指令

switch to users : su god(user name)、exit

set root password : sudo passwd root

check out kernel version : uname -r

generate 'config.gz' file(the compressed package of '.config') : modprobe configs

check the current path: pwd

enter current user root directory: cd ~

check thread: top

check process: ps

kill process: kill <process number>

check network information: ifconfig

request URL: curl

output the last part of files: tail -f

print the value of environment: echo $PATH

list all installed software: dpkg -l

config network: ifconfig 

 display or manipulate a disk partition tablefdisk

check mount status: df

exit current shell: exit

 

 

open terminal: ctrl+alt+t

close terminal: ctrl+d

exit current thread: ctrl+c

copy: ctrl+insert

paste: shift+insert

posted @ 2015-12-30 01:39  流水灯  阅读(343)  评论(0编辑  收藏  举报