Chapter 4 basic file system knowledge

Source: Internet
Author: User
Chapter 4 basic file system knowledge-general Linux technology-Linux technology and application information. The following is a detailed description. [I = s] This post was last edited by seoshagua at, September 18 ,.

1. hierarchical structure of the file system
1. Tree hierarchy
2. Path

Ii. Organizational structure of the file system

Common organizational structures
/Bin
/Boot
/Dev
/Etc
Cron. d
Cups
Default
Httpd
Init. d
Ipsec. d
Kde
Pki
Ppp
Profile. d
Rc. d
Samba
Security
Selinax
Skel
Ssh
Sysconfig
Tomcat5
Vsftpd
Xinetd. d
Yum
Yum. repos. d

/Export
/Home
/Lib
/Lost + found
/Media
/Mnt
/Net
/Opt

/Proc
Net
Sys


/Root
/Sbin
/Srv
/Sys
/Tmp
/Usr
Bin
Game
Include
Lib
Sbin
Share
Src


/Var
Account
Cache
Ftp
Lib
Lock
Log
Mail
Named
Run
Spod
Tmp

Iii. File Type

1. Common files
Text Files (open, creat, read, write)
Binary File (od see/usr/share/magia)


2. Directory files
(Mkdir, rmdir, readdir, getdents)
3. Special files
Mknod special typy [major minor]

Special indicates a special file name.
Typy indicates the file type, that is, c characters, B blocks, and P channels.
Major indicates the master device.
Minor indicates the next Device

Four special features (kmem, mem, null, zero)
Command>/dev/null
Command>/dev/null 2> & 1



4. Link file
Gzip
Gunzip
Zcat


5. Symbolic Link file
Readlink
Lstat
Lchown


6. MPS queue files
Mknod pipefile p


Iv. File Security Protection Mechanism

1. display the Object Access Permissions
Ls-ld
Chmod promissionfile file-or-dire
U = usr
G = group
O = other
A = all
+-
Rwx
Create a new file. The default value is
-Rw-r --
-Rw-r --
Create a new directory. The default directory is
Drwxrwxrw-
Drwxr-xr-x

2. Modify the access permission of the directory file
3. Set the file directory
Chmod numcode file-or-dir
4. Other access permission settings
Umask [-s] [nnn]

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.