Linux common commands (including vi/gdb) operation skills

  

Every user who has certain mastery of Linux system must start to learn some common commands of Linux system, and with vi, gdb these two commands use. Xiaobian is also studying recently, and I will share the information with you.

1.ls command

ls display the current directory file list

ls -a show all files including hidden files

ls to default -l displays file attributes, including size, date, symbolic link, whether it is readable and writable and executable.

2.cd command

cd dir switches to the dir directory in the current directory

cd ..Switch to the previous directory

cd ~Switch to the user directory, for example, root user, then switch to /root

3.rm command

rm file delete a file

rm -rf dir delete the entire directory called dir in the current directory

4.cp command

cp source target source file Copy as target

cp -av source_dir target_dir will copy the entire directory, the two directories are exactly the same

cp -fr source_dir target_dir will copy the entire directory, and copy it in a non-linked way, when the source directory Two directories are not the same when with symbolic links

5.mv command

mv source target will file or The directory name is changed to target. Previous page1234Next page Total 4 pages

Copyright © Windows knowledge All Rights Reserved