Linux: All Files
Create a file
Mkdir/hello establishing/hello directory
Remove directory rmdir-p remove only empty directories
Install can also create a directory
Touch file name Create a file
Nano Build file
VIM + filename creation file
deleting files
Rm-r Deleting a directory
RM-RF forcibly deleting a directory
\RM Delete Does not prompt
Copying files
CP Source File Destination
CP file1 File2 file3 Two files cannot be copied into one file
Copy a file to a file
Copy multiple files to a directory
-A: Archive replication, often used for backup
Cp/etc/{passwd,inittab,rc.d/rc.sysinit}/tmp/copy three files
MV source file or directory ... Target Location
View File Contents
cat + file name View the contents of the file (default view is the first 10 lines)
Tail + file name several lines after viewing the contents of a file
tail-f + file name View the contents of a file in real time
Head + file nameto view the contents of a file first few lines
Split screen Display
more+ file name Turn Back
less+ file name is flipped forward
file + file name Press the Q forward to exit
File management of Linux basic commands