The output and interpretation of LS
ls -L: Long format -H: Do unit conversion -A: Displays hidden files that begin with. represents the current directory: represents the parent directory -A: Show hidden files but not include. and. -D: Display the directory's own properties
-i:index node, inode -R: Reverse Display
-R: Recursive (Recursive) display
What each part of the LS output means
File type: the
-: Normal file (f)
D: Catalog file
B: Block device file (block) C: Character device files (character) file) P: Command pipe file (pipe) s: Socket file ( SOCKET)
file permissions: 9-bit, every 3-bit group, each group: rwx (Read, write, execute), R--
Number of hard links to files
Owner of the file
Genus Group of files
File size (size), in bytes
Timestamp (timestamp): Last Modified Time
Access: Access modified: Modify, the file content has changed
Change: change,metadata, meta data
CD command
Cd:change Directory home directories, home directories, home directory
~USERNAME: Enter the home directory of the specified user
-: Switch back and forth between the current directory and the previous directory
Type command: Used to show which type the specified command belongs to
/usr/sbin//usr/local/mysql/mysql5. 5/bin/pwdpwd is a shell builtin command type built-in command (shell built-in), internal, built-in External command: There is an executable file corresponding to the command name in a path on the file system
Which command: View the absolute path of a command
which mysqld/usr/local/mysql/mysql5. 5/bin/mysqld
Environment variables
The commands used by the user are usually found in the environment variables. When the command is first found, the shell caches it and, through the hash command, it can see the contents of the cache. Here the cache is used by the O (1) algorithm, O (1) is a standard, meaning to find a table of data and the size of the table of the function, O (1) is the speed of the search is the same, that is not because the table is larger and slower, this is a great algorithm.
Linux------Basic