3-1 Linux File Management class command detailed

Source: Internet
Author: User

Based on Marco Linux beginner 03-01 finishing

1. Directory Management

Ls

Cd

Pwd

Mkdir

RmDir

Tree

2. File Management

Touch

Stat

File

Rm

Cp

Mv

Nano

3. Date and Time

Date

Clock

Hwclock

Aa.

4. View the text (no binary can be viewed)

Cat, TAC, more, less, head, tail

Cat:concatenate Link and display

Parameters after cat,-N, cannot be followed by a number

-E Display $

-N is display serial number

TAC: is the reverse display

Also, break a command with CTRL + C, or do not want to execute.

Shift + PG Up,shift + PG down

More, less split screen display

MORE: Supports backward flipping, but exits on the last page. The front can be turned forward, with B, enter, the space to control

Less

Head: View Top N rows

Tail: View after n rows

The above default is 10 rows

Tail

There is a-f to view the end of the file, do not exit, waiting to display the subsequent append to this file new content

5. Text Processing

Cut, join, SED, awk

-D: Specify character as delimiter, default to Space

-F: Specifies the field to display, such as –f 1,-f 1,3,–f 1-3

3-1 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.