Linux basic commands

Source: Internet
Author: User

    1. Linux file system features 1. The file name can use any character other than/, and the total length cannot exceed 255 characters. 2. Strictly case-sensitive

2.tty: Display terminal device files for current terminals
Eg:/dev/ttys# (#号表示数字) serial terminal equipment
/dev/console Physical terminal Equipment
/dev/tty# Analog Terminal Equipment
/dev/pty# virtual terminal, such as Telnet,gui command window
The implementation of the/dev/pts/# Pty is implemented in conjunction with PTMX Pty
For more information, see Baidu Library: Http://wenku.baidu.com/link?url=H73SmpBM_Pdtpuip5OFc8wblCrAH8G2TXOzOJfKEKjGtSK-6O_ Iq98u1ruatewofidiwdy8y3q2lpgjiiwf753cy-cpqpkrxtpisolzczag

3.who: View all users and information logged on the current system


4. Environment variables
Reference variable: ¥{variable name}
basename path: Fetch PATH base name
DirName path: Fetch path directory name


5. Get Linux Help

Bash two types of commands

Builtin: Built-in commands implemented in the shell

External command: There is an executable file on the file system that corresponds to the command name

View command type: type

Shell: A variable is set up in advance by a number of paths, when the user enters the command, the shell will automatically go to these paths to see the same command name of the executable file, the found and executed commands will be saved in a hash lookup table, you can use the hash command to view the table

Which: View the exact location of the executable program

Help

Mans

[] Available options

{} grouping, all characters as a unit of use

| Only one () must be selected

。。。 Similar content can appear in multiple

Use:

Flip Screen

Blank: Flip a screen at the tail

B: File header to turn one screen

Carriage return: Trailing line

K: File header on line

^+d: File tail turn half screen

^+u: File header turn half screen

Text Search

/keyword: Search the end of the file (N,n next)

? Keywork: Searching the file header (N,n next)

Q: Exit

Man can help with the configuration file format of commands, system calls, library calls, games and other files that do not use collations.

Fragmentation mechanism:

1. User commands

2. System calls

3. Library calls

4. Device files

5. File format

6. Games

7. Miscellaneous

8. Management commands


See which paragraphs in which a keyword is used help

Whatis keyword

Exact find: Make Whatis manually generate the latest data

man-k keyword Fuzzy Lookup

Info Get online documentation

Some programs bring your own Vault location:/usr/share/doc (Eg:changlog,install,readme ...)



Linux basic commands

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.