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