Copying: Copy
CP81 Dec 3: file11 3Dec:
Move: Move
MVmvdir/
Rename: Rename
MVmv dir1 Dir2 #dir2存在, move operation
Remove: Remove
RMrmdir #移除dir目录
Create files: Touch and >
Touch a.txt >b.txt 010 Dec 3: a.txt 10 Dec 3:
Create directory: mkdir
mkdir dir 4drwxrwxr24096 Dec 3: +dir
Viewing files: Cat
Cat
Viewing file types: Files
Filefile index.html Index.html:HTML document Text[[email protected] happydzy]$
Wildcard characters: * can match 0 or more
ls A *
Zip Package decompression instruction: Unzip
[Email protected] happydzy]$UnzipMaster.ZipArchive:master.Zipac4da107fb56c46956d86fc10c7bbe2bb1423a4d Creating:happygrep-master/Extracting:happygrep-master/. Gitignore Inflating:happygrep-master/Makefile Inflating:happygrep-master/makefile.macosx Inflating:happygrep-master/readme.md Creating:happygrep-master/contrib/Inflating:happygrep-master/contrib/happygrep.SHInflating:happygrep-master/contrib/wiki Inflating:happygrep-master/happygrep.c [[email protected] happydzy]$
Zip Package compression Instructions: Zip
[Email protected] happydzy]$Zip-R happygrep-master.Ziphappygrep-master/Adding:happygrep-master/(Stored0%) Adding:happygrep-MASTER/MAKEFILE.MACOSX (deflated -%) Adding:happygrep-master/makefile (deflated at%) Adding:happygrep-master/contrib/(Stored0%) Adding:happygrep-master/contrib/happygrep.SH(Deflated $%) Adding:happygrep-master/contrib/wiki (deflated -%) Adding:happygrep-MASTER/README.MD (deflated $%) Adding:happygrep-master/.gitignore (Stored0%) Adding:happygrep-MASTER/HAPPYGREP.C (deflated in%) [[email protected] happydzy]$ ll-Rlttotal +DRWXRWXR-X.3Keysystem Keysystem4096Sep - -happygrep-Master-rw-rw-r--.1Keysystem Keysystem2381Jan at .INDEX.HTMLDRWXRWXR-X.2Keysystem Keysystem4096Dec3 on: + dir-rw-rw-r--.1Keysystem Keysystem ADec3 on: -a.txt-rw-rw-r--.1Keysystem Keysystem12418Dec3 Geneva:GenevaHappygrep-master.Zip[email protected] happydzy]$
Decompression instructions for tar.gz package: Tar zxvf xxx.tar.gz
[ Email protected] happydzy]$ [[email protected] happydzy]$TarZxvfwget-1.11.2.Tar. GZwget-1.11.2/wget-1.11.2/mkinstalldirs ... [Email protected] happydzy]$ [[email protected] happydzy]$ [[email protected] happydzy]$ ll-Rlttotal2340drwxr-xr-x. OneKeysystem Keysystem4096Apr - - wget-1.11.2-rw-rw-r--.1Keysystem Keysystem1460078Apr - - wget-1.11.2.Tar. GZ-rw-rw-r--.1Keysystem Keysystem929549Dec3 Geneva: , wget-1.11.2.Tar. bz2
Compression instructions for tar.gz package: Tar zcvf xxx.tar.gz xxx/
Tar wget-1.11. 2. Tar wget-1.11. 2/
Decompression instructions for TAR.BZ2 package: Tar jxvf xxx.tar.bz2
Tar wget-1.11. 2. Tar
Compression instructions for TAR.BZ2 package: Tar jxvf xxx.tar.bz2
Tar wget-1.11. 2. Tar wget-1.11. 2/
Basic commands commonly used on Linux