Rookie Advanced Linux Master Road--fifth day (next)

Source: Internet
Author: User

Tag: case-Sensitive execution file third-party software shared root directory

/mnt: Additional temporary file system

/opt: Optional directory, installation directory for third-party programs

/proc: Pseudo file system, kernel mapping file (System tuning Focus)

/sys: Pseudo file system, property mappings related to hardware devices. Hard disk

/ tmp: Temp file →/var/tmp

/bin: Binary, executable file, user command

/sbin: Managing Commands

/ usr: Shared read-only, which shares read-only files globally.

/usr/local

/usr/local/bin

/usr/local/sbin〉 these directories for third-party software

/usr/local/lib

Linux Naming conventions

    1. Length cannot exceed 255 characters

    2. Cannot use/when file name

    3. Strictly case-sensitive


relative path : In relation to the current position

Absolute path : Find from root directory


Directory Management :

1.ls

2.cd

3.pwd


mkdir: Creating an empty Directory

Tree: Viewing the directory tree

-p:/m/n/z, create together

-v:verbose, detailed procedure


/mnt/test/x/m,y

Method 1,: mkdir-pv/mnt/test2/x/m,/mnt/test2/x/y

Simplified: mkdir-pv/mnt/test2/{x/m,y}

Curly braces unfold

Delete directory : rmdir (remove directory)

Delete Empty directory:-p, apply to delete single-line directory,/x/y/z


File creation and deletion

Touch

-a-t-m-c


#stat View related properties


To create a file, you can use the file editor. (Nano)

ASCII: US standard Information Interchange code


Delete file : RM

-I \rm, not prompt

-F, forcibly delete

-R, recursively deletes all files under the directory

This article is from the "12427174" blog, please be sure to keep this source http://12437174.blog.51cto.com/12427174/1886856

Rookie Advanced Linux Master Road--fifth day (next)

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.