Linux Study Notes (3)-file system, linux Study Notes
Three types of files
Common files: including text files, data files, and executable binary Program Files
Directory file: in linux, a directory is viewed as a special file
partitions because they are often manipulated and prone to fragmentation
2. Format partition: Mkfs-t ext3/dev/sda1 Each drive is divided into partitions, each with its own file system. Windows specifies a letter for each of these file systems. However, Gnu/linux uses a unique tree structure to manage the files, and each
. In this example. All of the files are root, the group that belongs to is root, and the file access permission is drwxr-xr-x. For files and folders, each file and folder has a set of permission flags that are combined with them, and in the example above, the contents of the first domain. To analyze the meaning of each symbol in this field in detail:The field is made up of 10 characters. Be able to divide t
(char * buf, size_t size); NT obtains the current absolute path ** 8. int chmod (const char * path, mode_t mode); NT changes the File Permission ** 9. int closedir (DIR * dirp); NT must be disabled ** 10 after opening the folder. int chdir (const char * path); NT changes the current working directory *
Additional functions used to process variable parameters
Application Caches Data directoryLIB Application state information dataLocal store data for/usr/local programLock lock FileLog fileOpt for/opt under program store dataRun running process data, storing PID filesSpool Application Data PoolTMP Save system Two restarts temporary data between/proc virtual file system for output cores and processes/sys virtual file system for output hardware devices/selinux Secu
This article introduces a so-called "patron saint of Linux File System", which refers to a program module that can observe the changes of Linux File System in real time. Being able to observe changes in the
Linux study note 6. makefile file manager and makefile file creation-Linux general technology-Linux programming and kernel information. For details, see the following. Splitting source program files is conducive to developing large programs and improving the efficiency of pr
as the example we mentioned earlier;
[Root@localhost ~]# Ls-li lsfile.sh2408949-rwxr-xr-x 1 root 7 04-21 12:47 lsfile.shThe inode value of the lsfile.sh is 2408949; View the inode of a file or directory through the-i parameter of the LS command.
2.1 Inode The same file is a hard link file;
In the Linux
permission is-The sixth character indicates that the owner is the same as the group user write permission, if the permission is W, no permission is-The seventh character indicates that the owner performs the permissions with the group user, and if the permission is x, no permission is-The eighth character represents other non-identical read permissions, and if there is a permission R, no permission is-The nineth character represents the other non-identical write permissions, if the permission i
/shadow '9. User decentralization9.1 Configuration Files?? /etc/sudoers9.2 Configuration Commands?? Visudo (This command provides syntax checking)?? Given the power of a superuser, there are two ways to do this:(1) Command mode that requires normal user authentication:?? User name? hostname = (Execute program identity)? command?? For example, giving ordinary users bighead the right to increase users and delete users:?? Right test:Add Users:To delete a user:(2) Command mode that does not require
Share file commands in Linux and view commands in linux
In linux, the command for viewing log file content includes:
Cat displays the file content starting from the first line. tac is displayed from the last line. It can be seen
permissions of the soft link file, different from the original file4, modify any file, the other changes5, delete the original file, soft links can not be usedLess restrictive, and flexible[[email protected] ~]# lsAnacondalks.cfg Cangls Install.log Install.log.syslog[Ro[email protected] ~]# ln-s/root/anaconda-ks.cfg/tmp/cangls.soft[Email protected] ~]# Ln/root/c
When Linux servers are tuned for large concurrency, it is often necessary to pre-tune the Linux parameters, where modifying the maximum number of Linux file handles is one of the most frequently modified parameters.You can query Linux-related parameters by executing ulimit-a
the functional modules, then the program can also be linked to the normal, just missing the corresponding function, which makes the function of the program easier to cut and mix.
In the design of Linux programs, if a program is designed to support single-threaded or multi-threaded patterns, it is possible to determine by weak references whether the current program is linked to a single-threaded glibc library or a multithreaded glibc library (with-lp
1. Partitioning of storage devices;
The storage devices we refer to here are mainly local hard disks and mobile hard disks (such as USB and 1394 Interface hard disks). Because the disks are large and in order to meet our various needs, therefore, the hard disk is divided into several partitions. For example, we can use this partition to install the Linux system. That partition is used to install the Windows system ...... ...... Everyone understands t
Linux File Permission, linux permissionPermission deny Permission drop view Permission ls-a ls-la expression view Permission of the folder
Classification group of user groups: an operating system may be used by several people to facilitate the security and sharing of group files.
User Group (in a group) Others root rws tianshen user/root information is recorded
Linux supports a wide variety of file systems. They provide a good operation and user interface for data storage and management. In a file system, security mechanisms and problems such as file/directory access permission management and control, and encrypted file systems nee
the file owner 5,6,7 the permissions of the group to which the file belongs 8,9,10 bit is the permission of the other person Number 1 That represents a few files after the Root represents the file to which the primary is the root and then the root on behalf of the group that the file belongs to is root Aft
Rz,sz is a command-line tool for Linux/unix Zmodem file transfer with Windows.
Windows side needs to support Zmodem TELNET/SSH clients (such as SECURECRT), run the command RZ is to receive files, SECURECRT will pop up the file selection dialog box, select the file and then close the dialog box, the
File System Properties View and adjustment tools:e2label Command : Set the file system volume label to avoid formatting changes to the volume labelE2label device name [Label]#查看分区卷标 [[email protected] ~]# e2label/dev/sdb1mytest# Modify the partition volume label [[email protected] ~]# e2label/dev/sdb1 ' labelnew ' [email Protected] ~]# e2label/dev/sdb1labelnewtun
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.