Linux Common commands

Source: Internet
Author: User

Date Time

Date domestic time CST;

date-u GMT UTC;

Date +%y:%m:%d format time;

Date-s "21:05:00" setting time;

Clock view motherboard time;

Cal View Calendar;

uptime system boot information;

Output, view commands

Echo: Displays the input content;

Cat: Displays the contents of the file;

MORE: Used for paging display file content, can only page down;

Less: page to display the contents of the file, with page up and down;

Head: Displays the first few lines of the file, the default 10 rows-n parameter for the specified number of displayed rows;

Tail: Displays the last few lines of the file, the default 10 rows-n parameter for the specified number of rows displayed,-F Trace display file updates, generally used to view the log;

View hardware Information

LSPCI: View PCI Device-v view details;

LSUSB: View USB Device-v view details;

Lsmod: View the loaded module (Windows driver);

Archive release Compression decompression

Zip compressed file

Unzip unzip a file

gzip Compressed Files

Tar archive (Package command, no compression)

TAR-CVF Filename.tar filename;

TAR-XVF Filename.tar (release file);

Find

Locate keyword This command requires a pre-established database, the database is updated daily by default, you can manually build and update the database by UpdateDB command;

Find Find Location Lookup parameters

find/home/hhl/-name *aabbcc* Search by file name;

find/home/hhl/-name *.conf;

Find/-perm 777 with permission lookup;

Find/-type D finds all directories;

Find/-type L search all links;

Find. -name "*"-exec ls-l {} \; All documents beginning with a are found and listed in ls-l form;

Linux Common commands

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.