Linux Common commands

Source: Internet
Author: User

Commands for the file management class:

View: Cat,tac,head,tail,less,more

Time Stamp Management: Touch

Copy: CP

Mobile: MV

View Meta Data properties: Stat (atime access time, mtime content change time, CTime metadata change time)

Text Editor: Nano,vi

Touch: Change the file's atime and mtime; If the file does not exist, an empty file is created by default

-A change Atime

-M Change Mtime

-C do not create an empty file

-T Yymmddhhmmss. SS 200101010101.01 January 1, 2001 1:1 1 seconds

File View Class command:

Cat: Connect and display text file Content-e display line terminator,-N Add line number

TAC: Displaying file contents in reverse order

Shift+pageup/pagedown Flip Screen

Split screen display:

More/less

To view the contents of a file's head and tail:

Head

Tail-n #: Number of rows specified, #代指具体行数

TAIL-F: Monitor the tail of the constantly changing log file without closing the file, CTRL + C exit








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.