Commonly used file related commands are: Mkdir,rmdir,touch,stat,rm,cp,mv,install
Naming rules:
1) cannot exceed 255 characters in length
2) cannot use '/' when file name
3) strictly case-sensitive
1. mkdir: Create file empty directory
-P: can be created continuously
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7D/9D/wKiom1brngGDKiOmAAASJMuN9jo447.png "title=" 11.PNG "alt=" Wkiom1brnggdkiomaaasjmun9jo447.png "/>
2, RmDir: can only delete empty directory
-P: Delete empty directory on a line
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7D/9A/wKioL1bronbTWzzAAAAia1deZvg661.png "style=" float: none; "title=" 12.PNG "alt=" Wkiol1bronbtwzzaaaaia1dezvg661.png "/>
3. Stat: View file status (timestamp)
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7D/9B/wKioL1bro57TgyaHAAApeBJJDaE609.png "title=" 15.PNG "alt=" Wkiol1bro57tgyahaaapebjjdae609.png "/>
4, Touch: Change the timestamp, if there is no target, create the target file
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7D/9D/wKiom1broeaRTaT3AAArq60FTh0527.png "title=" 13.PNG "Style=" Float:none; "alt=" Wkiom1broeartat3aaarq60fth0527.png "/>
5. RM: Delete files or folders
-R: Recursive delete
-F: Mandatory removal (ignoring friendly hints)
6, CP: Copy the file or directory, the target is the directory, the original file in the directory (exist) to save the original name
Cp[option]...source...directory
Cp[option]...directory...source
-R: Recursive delete
-F: Mandatory (ignoring friendly hints)
-P: Maintain the original permissions, belong to group time stamp
-A: Preserve all file attributes, archive replication (often used for backup)
7. MV: Moving files or renaming
MV [option] ... source ... directory
MV [Option]...-t Directory...source
8. Install: Copy files and set properties
Use format:
Install [OPTION] ... SOURCE ... DIRECTORY
Install [OPTION] ...-t DIRECTORY SOURCE ...
Install [OPTION] ...-d DIRECTORY ...
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7D/9F/wKiom1brrhHTyUt1AAA5SlEa-mQ925.png "title=" 16.PNG "alt=" Wkiom1brrhhtyut1aaa5slea-mq925.png "/>
-D: Can create a directory
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7D/9C/wKioL1brrzKwVP8HAAANRBOQ7-g449.png "title=" 17.PNG "alt=" Wkiol1brrzkwvp8haaanrboq7-g449.png "/>
Linux File related commands