Home > OS >  Linux file operation instruction
Linux file operation instruction

Time:10-03

(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,

CodePudding user response:

The study is just what I need

CodePudding user response:

reference 1st floor zhgure 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,

Bosses, just learning directions.in,

CodePudding user response:

4, 8: to add a space between the two command
10: remember correctly copy folder should be cp -r, cp can only copy files
12: filename testname mv/had better add a/after folder, if the current directory no testname/directory, execute the commands you is for testname filename will change the name

CodePudding user response:

Summary is very good!

CodePudding user response:

reference speechless, 4 floor response:
4, 8: to add a space between the two command
10: remember correctly copy folder should be cp -r, cp can only copy files
12: filename testname mv/had better add a/after folder, if the current directory no testname/directory, execute the command is the filename will change your name for testname

Thank you for reminding me 10 is indeed a file

CodePudding user response:

reference speechless, 4 floor response:
4, 8: to add a space between the two command
10: remember correctly copy folder should be cp -r, cp can only copy files
12: filename testname mv/had better add a/after folder, if the current directory no testname/directory, execute the command is the filename will change your name for testname

Thank you for reminding me 10 is indeed a file

CodePudding user response:

https://doc.plob.org/vbird_linux/look at this, people feel good, very full,
  • Related