- -a: print the list of all files including hidden files
- -l: print the details of a file
- -i: print inode number
- -F: denote the type of file(*: file, /: directory, @: symbolic link)
- -R: print to the subdirectories
- -d: print the information of given directory
- ll: ls -alF
- -i: print file mime
- -p: if intermediate directories(one or more) don't exists, create them.
- -n: print with row numbers
more is a filter for paging through text one screenful at a time.
Print the last 10 lines of each FILE to standard output.
- -[NUM]: output the last NUM lines
- -f: output appended data as the file grows.
- When you use
rm FILE
, it reduces the number of the hard link of theFILE
by one. - If the hard the number equals to zero, the file name, the inode and the data block that the inode refers to are removed.
- mv (SRC1) (SRC2) ... (SRCn) (DST dicrectory)
- make links between files(hard links or symbolic links)
- ln (src file name) (hard link name)
- It can be possible to attach two or more names to one file and the names are called hard link
- Hard link files have a same inode number.
- When the number of hard link is reduced to zero, the data block which the inode refers to is removed.
- ln -s (src file name) (symbolic link name)
- Symbolic link file is a special file for accessing original file and have the path of the original file.(it's like shortcut icon in Windows.)
- The inode number of a symbolic link file differs from that of the original file that the sysbolic link file refer to.
- If the original file is removed, the symbolic link cannot be used no longer.