Linux operating basis (a)

A, Linux learning essays

View directory contents: Terminal command skills, auto-complete press Tab

 

It has been used up and down the Command key to select

ls lists the contents of a directory

Before there is a file name. Also before the file name plus when compared with the hidden files, create.

ls -a to display hidden files

It indicates the current directory

.. is the parent directory

Ls -l to list the contents as a list and display detailed information

Ls -l -h humane is a square space as the same ls -lha effect ls -lh

 

Ls wildcard *? []

[Abc] [af] etc.

 

 

cd   

switch the current user's home directory cd

cd ~ Ibid.

cd. maintaining the current directory unchanged

cd .. will go to the parent directory

cd- last two working directory to switch back and forth

 

Absolute path starting with /

Relative path relative to the current directory

  

 touch

Create a file

Mkdir

Create a directory

E.g. Mkdir -p create recursive directory / a / b / c

Same directory as the file names and folder names can not be repeated

Command -help Help

Man command Help Manual

Rm deleted files can not be restored

Rm -f forced to delete without prompting

Rm -r delete a directory

 

Tree to tree view lists the file directory structure

~ For the home directory

Tree ~ displays a tree view home directory tree -d display only the directory does not display files

Cp copy files cp source file destination target file is copied to the local

N represents prompted y denotes a cover does not cover when the cover Cp -I

Cp -r can replicate directory

Mv move files mv source file destination

Guess you like

Origin www.cnblogs.com/miemiemie/p/12295310.html