linux file name usage rules

Strictly distinguish between uppercase and lowercase characters : file/File/FILE/
directories are also files : under the same path, two file names cannot be the same
. Any character other than /
cannot exceed 255 characters.
User home directory: home

general user Manage the location of user files, all operations can only be done at home directory or temporary directory
Work list The directory where something is located at a certain moment after the user logs in
/etc /sysconfig/network-scripts/ifcfg-eth0
basename:基名:最右侧的文件或者目录名
dirname: 取到路径:basename左侧的路径

Common file types in linux system

- Regular file: file
d (Directory) directory file
b(block device) Block device file
c Character device file
l Symbolic link file
p p: pipe file
s(socket) Socket file

Guess you like

Origin blog.csdn.net/qq_44944641/article/details/104366626