Linux Learning note--linux file Management class fame and wealth detailed

Source: Internet
Author: User

Linux File Management class command detailed


Directory Management:

LS, CD, pwd, mkdir, rmdir, tree


File Management:

Touch, stat, file, RM, CP, MV, Nano


Date Management:

Touch, Clock, Hwclock, Cal



To view text:

Cat, TAC, more, less, head, tail


Cat: Connect and display

-N: Displays the line number of each row when displayed

-e: Show $ at end of each line

CTRL + C: End command

Split screen display:

More, less


MORE: Turn backwards

Less

Q Exit Command

Head: View Top N rows

Tail: View after n rows

-N

Tail-f: Look at the end of the file, do not exit, wait to display the subsequent append to this file new content;

Text Processing:

Cut, join, SED, awk,


Database: Databases


Relational database:

Table: two-dimensional table


Text file:


Cut

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

-F: Specify the fields to display

-f1,3 Show 1th and 3rd fields

-f1-3 Show 1th to 3rd fields

Text sort:

Sort

-N: Numeric sorting

-R: Descending sort

-T: Field delimiter

-K: Which field is the keyword to sort

-U: The same row is only displayed once after sorting

-F: Ignore character capitalization when sorting

Uniq: report duplicate rows or ignore duplicate rows-----------adjacent rows

-C: Shows the number of rows in a file that repeats

-D: Show only duplicate (adjacent) rows

Text Statistics :

WC (Word count): Displays the number of lines of words in bytes

-L: Number of rows

-L: The longest line contains the number of characters

-W: number of words

-C: Number of bytes


Character processing command:tr: convert or delete characters

TR "option" ... SET1 "SET2"

- d: Delete all characters that appear in the character set


This article is from the "11913800" blog, please be sure to keep this source http://11923800.blog.51cto.com/11913800/1839265

Linux Learning note--linux file Management class fame and wealth 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.