linux common command.

Stopping & Starting

shutdown -h now – Shutdown the system now and do not reboot
halt – Stop all processes - same as above
shutdown -r 5 – Shutdown the system in 5 minutes and reboot
shutdown -r now – Shutdown the system now and reboot
reboot – Stop all processes and then reboot - same as above
startx – Start the X system

User Administration

su – Log in as superuser from current login

 

File Commands

pwd – print name of current working directory

rm name – Remove a file or directory called name

ls – Directory listing

ls -l – List files in current directory using long format
ls -laC –
List all files in current directory in long format and display in columns
ls -F – List files in current directory and indicate the file type
ls -al – Formatted listing with hidden files

posted @ 2014-05-29 13:09  wonkju  阅读(145)  评论(0编辑  收藏  举报