Linux file Management class command detailed

Source: Internet
Author: User

Directory Management:

LS cd pwd mkdir rmdir tree

File Management:

Touch Stat file RM cp mv Nano

Date Time:

Date Clock Hwclock cal

To view text:

Cat tac more less head tail

Cat: Connect and display (can connect to display multiple files)

Split screen display:

More,less

MORE: Features similar to the CAT,CAT command is the entire contents of the file from top to bottom display on the screen, more will be a page by page display user-friendly page reading, and the most basic instruction is to press the blank key (space) on the next page, press the B key will go back to a page, And there is the ability to search for strings.

Less: Tools are also tools for displaying files or other output, and are powerful tools for Linux to view the contents of a file. Less uses more flexibility than more. In more, we have no way to turn front, can only look back, but if use less, you can use [Pageup][pagedown] and other key functions to turn to look at the file, more easily used to view the contents of a file! In addition, in less you can have more search function, not only to search down, but also to search upward.

Head: View Top N rows

Tail: View after n rows

-F: Look at the end of the file, do not exit, wait to display new content appended to this file (other processes have written new content to this file, will be displayed immediately)

Text Processing:

Cut (text cut), join (text link), sed (powerful, hard), awk (harder, one command is a programming language)

Cut

-D: Specifies the field delimiter, which is the default space

-F: Specify the fields to display

-F 1, 3: Display 1 3 fields

-F 1-3: Show 1-3 fields

Linux file Management class command detailed

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.