(a, test) 1, directory: ls pwd2 the current position and exit the CD.. Open open CD home directory CD ~ secondary exit CD../.. 3, create an empty file touch filename ls/home/gui> Fi Lename 4, write file Vim/nano/gedit, unless written file There are new to create a, 5, create the folder a Kdir a 6, delete folders a mdir a ( If this directory is empty directory) 7, delete folders a rm - r - a , including the file under 8, check the file content cat/less according to q exit (read-only) vi according to: 've quit (read-write) 9, view the file memory size filename du du - k - m filename (in KB, MB) 10, copy folder cp file/home/GUI/file11, (new folder Path, the new folder name) 11, find file echo the file *. The text (* can represent a type), move files to folder mv filename Testname13, copy a file to the file b cat file A> File b14, compressed folder zip -r test1. Zip test115, Unzip16 pressure file, install the software sudo apt - get in Stall vim White: ordinary File: blue green said directory Color: said executable file Red: compressed article Light blue: link file red flashing: Link is a problem with the file in yellow: device file gray said: said other file
CodePudding user response:
Finishing stand in place, but to understand the meaning of each command, such as: CD. CD.. CD../.. CD ~ CD - What said the meaning, why?
Note: Ls - al can see there are. And... . Is the current directory path . Is the superior path ~ is the current user path CD - said to return to the last operation path,