Common commands and instructions for Linux operating systems (1)

Source: Internet
Author: User

Command format:

Command option Parameters

Options: Specify the execution characteristics of the command

Long options

Short options: can be combined with

Parameters: Specifying the Action object of the command


Command type

Internal command, built-in, internal

External command: The file under a path corresponds to

Type: View command type

External command Invocation procedure

Find commands in Environment variables

View environment variable path: Printenv,path: colon-delimited path

If the user invokes the command, the shell first looks at the hash table, and if it has been called, there will be a cache in the hash table. If this is the first time, there is no such entry in the hash table, and it is located under Path path.


# pwd: View current directory

# ls: Lists files under the specified path

-L: Long format display

File type: 1 bit

-: Normal file

D: Catalogue

L: symbol (soft) connection

B: Block device files

S: Socket file

P: Command Pipeline file

C: Character device file

File permissions: 9-bit, 3-part, rwx (read, write, execute)

Number of hard links to files

Document owner

Group of file genera

File size: Unit default byte

Timestamp: Last Modified time

Access

Modify: Content

Change: Properties

-D: View catalog files

-A: View all files (including hidden files starting with.)

. Represents the current directory: represent the parent directory

-H: Unit conversion

-A: Do not display. All files beginning with

-I: Displays the index node number of the file

-R: Show files in reverse order

-R: Recursive display of files


CD: Switch directories

CD-: Switch back and forth in the current and previous directory

cd~: Switch Home directory

CD: Switch home directory


SU: Switching users

Su uername: Half switch

SU-L Username: Full switch

Exit: Switch Back again



This article is from the "Meng Linux" blog, please be sure to keep this source http://minux.blog.51cto.com/8994862/1602296

Common commands and instructions for Linux operating systems (1)

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.