Small Ant learning Linux (3)--linux-level directory Description and Common command interpretation

Source: Internet
Author: User
Tags learn php

The first level directory under the root directory explains:

/etc profile Directory/home directory for general users

/bin command Save directory/lib System library Save Directory

/boot directory, launch related files/mnt system mount directory

/dev Device File save directory/media mount Directory

/root Super Admin home directory/proc memory mount point

/tmp temp directory/sys memory mount point

/sbin command to save directory/var system related document content

1. Bin and Sbin in the bin and sbin,usr directories under the root directory, these four directories are used to save system commands. The difference: All users of the bin directory are available, sbin only the root user can use it.

2. The proc and SYS directories cannot be directly manipulated, and both directories hold memory mount points

3. The root directory does not recommend the placement of custom data

Common commands:

ls "option" "File or directory "

Option-a displays all files, including hidden files

-L Show detailed information (with permissions, user, size, time of the kind)

-D View Directory properties

-H humanized Display file size

-I view I Node ID (inode)

Directory processing commands: mkdir Create a directory midir-p To create a directory recursively  

Switch Directory command: CD

CD ~ Back to home directory CD-go to the last catalog CD. Go to the top level directory

The TAB key has the command, the file name complements the function, is very useful in the actual operation.

PWD prints out the current location

RmDir Delete directory, but can only delete empty directory, this command is not commonly used

RM-RF This command is very powerful, delete files or directories. -R Directory-F enforcement, this command is also very dangerous, once deleted, there is no way to recover.

CP "Options" "Source Files or directories" "Target directory"

-r Copy Directory-p file attribute copy

-D If the source file is a linked file, copy the connection properties

-A is equivalent to-PDR, which is copied along with attributes

MV "source file or directory" "Destination directory"

Note: If the source and destination files are not in the same directory, it is cut: if you are in the same directory, it is renamed.

learn PHP's little ant Http://my.oschina.net/woshixiaomayi/blog



Small Ant learning Linux (3)--linux-level directory Description and Common command interpretation

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.