Linux Learning Notes

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.