Linux file Management class command detailed

Source: Internet
Author: User

File command and its usage

File: View the type of content

Du command and its usage

-S:

-H:

Read command and its usage

Describe the general linkages and differences between Gpl,bsd,apache three open source agreements

Free software

Open source Agreement, copyright description

List Linux distributions and describe their relationship to the Linux kernel

Linux,gnu:gnu/linux,

Release: Fedora,redhat (Centos,mandrake,), Suse,debian (Ubuntu,mint), Gentoo,lfs (Linux from Scratch)

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

RedHat: Universal format

To view text:

Cat, TAC, more, less, head, tail

Cat: Connect and print

Cat/etc/issue

Cat/etc/fstab

Cat/etc/issue/etc/fstab

-N: Display line number, Cat-n/etc/issue

-E: Display line terminator, $

Text files per line terminator: $

-T: Show tab, tab

-a:all

Tac/etc/issue: The tail line is displayed to the first row, the header line is displayed to the last row

Ctrl +c:interrupt, interrupt

Split screen Display

More, less

MORE: Turn backwards

More/etc/rc.d/rc.sysinit

Space: Flip Backwards

B: Flip Forward

Less

B: Flip Forward

Head: View the top n rows of a file

Head/etc/inittab-n 2 shows the first 2 rows

Tail: Viewing the following n rows of a file

Tail/etc/inittab-n 5 shows the following 5 rows

Default n=10 line,

-N: Specify n rows

-f:follow, 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

  

Detailed instructions for the Linux file management class

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.