Linux------Basic

Source: Internet
Author: User

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

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.