Linux Common Commands
*1.shell Small Tools : a.cal [month] [year] Show Calendar
B.BC Calculator Scale =n, results reserved N decimal Places
C.data Show time, set time
*2.new Words:portPortProtocolTransport ProtocolAliasealiasesModestate, WayDumpDiscardSynopsisSummaryHaltInterruptsMaintaininsist on keeping
symbolic symbolic Soft link ) Relative to and about Decompress decompression, decompression compression compression stdout standard output file
V. User Management commands
1.useradd [ user name ] Add New User
passwd change user Password
Userdel [ user name ] Delete users but keep user files
- R Delete user including home directory files
2.who View the currently logged on user
TTY for local end users, pts for remote end users
3.W detailed user logon situation
which pcpu Used by the user to perform the current operation. CPU time, jcpu accumulated for the user's operations CPU time, Idle for system wait time, Load Average is the average load condition.
4.uptime Show continuous system uptime can measure system stability
Six, decompression compression command
1. . GZ format
gzip [filename] [filename] do not keep the original file , The directory cannot be compressed, only the files can be compressed individually, generating . GZ file
Gunzip (gzip-d) [filename] [filename]
2. . Tar( packaged format, no compression ) preserves the original file
Tar Packaging Instructions
- C Packing [ new filename ] [ file or directory to manipulate ]
- v Show more information
- F Specify file name
- Z Compress at package time
TAR-ZCF [xxxx.tar.gz] [a1][a2] ... package, compress, compress to keep the original file, can compress the folder
Tar Unpacking Instructions
- x Unpacking
- F Specify unzip file
- Z Unzip
tar–zxf [xxxx.tar.gz] Save the package after decompression is complete
3. . zip format to retain the original file, unzip the retention package
zip-r ( compress included directories ) [xxxx.zip][ files or directories required to operate ] Build . zip file
Unzip [Xxxx.zip]
.bzip2 format ( High compression efficiency ) The directory cannot be compressed, only the files can be compressed individually .bz2 file
bzip2-k keep the original file [ files that need to be compressed ] Do not specify a compressed file name
bunzip2-k keep the original file [ files that need to be uncompressed ]
TAR-CJF [xxxx.tar.bz2] [a1][a2] ... package, compress, compress to keep the original file, can compress the folder
TAR-XJF [xxxx.tar.bz2] Unzip the archive to complete the retention package
, &NB Sp , &NB Sp , &NB Sp
Yzt
This article is from "Ferret" blog, declined reprint!
Linux Learning Notes