Common command symbol beginner linus server

Learn to: https: //blog.csdn.net/qq_42270373/article/details/81710139

Shutdown (system shutdown, restart, log out)
the shutdown - H now shutdown
init 0 shutdown
telinit 0 shutdown

These three command symbols they did not know the difference between their
shutdown - r now reboot
reboot reboot
logout logout
they did not know the difference between these two commands shutdown and reboot breaks

Common command symbol files and directories
a.out executable file
. Cd return to parent directory
cd ... / ... return two directory
cd - returns the last directory where
cd / home into the / home directory
. Cp dir / * Copy a directory of all the files in the current working directory

Compile symbol commonly used commands:
gcc compiler
precompiled -E test.c gcc
gcc compiler -s
gcc -c compilation
gcc test.c -o tes specify the output file name

ls command symbols in common use
ls lists files and files in the current directory folder
ls -F view files in a directory
ls -a show hidden files
ls -l displays the file or directory details
pwd Displays the current working directory
mkdir dir create a directory of dir

rm command symbols in common use
rm -f file delete a file in the file
rmdir -dir delete a folder named dir
rm -rf dir dir delete a folder and the contents inside his
rm -rf dir dir2 remove two dir dir2 folder contents inside it as well as he
rm -f * delete all files (must be used with caution)

vim command symbols common use
vim editor
vim -test.c create a file test.c
shift: + w to save the file
shift: + q exit the file

Published 51 original articles · won praise 0 · Views 720

Guess you like

Origin blog.csdn.net/a_liuren/article/details/104095367