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

你可能感兴趣的:(command)