Linux File Management commands and linux commands

Source: Internet
Author: User

Linux File Management commands and linux commands

File command and Its Usage

File: Type of the file content.

Du command and Its Usage

-S:

-H:

Read command and usage

 

Describes the relationships and differences between the three open source protocols GPL, BSD, and Apache.

Free Software

Open source agreement, copyright description

 

List Linux releases and describe their relationships with Linux kernels

Linux, GNU: GNU/Linux,

Release: Fedora, RedHat (CentOS, mandrake,), SUSE, Debian (Ubuntu, Mint), Gentoo, LFS (Linux From Scratch)

Compile: the source code is converted to a binary format program that can be executed on the corresponding platform, which is closely related to hardware.

RedHat: Common Format

 

View text:

Cat, tac, more, less, head, tail

 

Cat: connect and print

Cat/etc/issue

Cat/etc/fstab

Cat/etc/issue/etc/fstab

-N: displays the row number, cat-n/etc/issue.

-E: displays the row Terminator, $

End character of each line in the text file: $

-T: displays tabs and tabs.

-A: all

Tac/etc/issue: the first line is displayed at the end, and the first line is displayed at the end.

 

Ctrl + C: interrupt, interrupted

 

Split-screen display

More, less

More: backward flip

More/etc/rc. d/rc. sysinit

Space: backward flip

B: Forward

Less

B: Forward

Head: view the first n rows of the file

Head/etc/inittab-n 2 display the first two rows

 

Tail: view the last n rows of the file.

Tail/etc/inittab-n 5 display the last 5 rows

N = 10 rows by default,

-N: specifies n rows.

-F: follow: Check the end of the file and do not exit. Wait for the new content to be appended to this file to be displayed;

 

Text processing:

Cut, join, sed, awk

Cut

-D: Specifies the field separator. The default value is space,

-F: field, specifying the field to be displayed

-F 1: Display 1st Fields

-F 1st: 3rd and fields are displayed.

-F 1-3: Display 1st to 3rd Fields

Cut-d:-f 1/etc/passwd

 

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.