Summary of several basic commands

Source: Internet
Author: User

1, after the VMware login to the Linux system succeeds, it will show the following form:

[Email protected] ~]#

Where # is the command prompt that shows the current user is an administrator (root), the prompt for a normal user is $

 , command format:

COMMAND [OPTIONS ...] [ARGUMENTS ...]

Options: One or some of the features used to enable or disable commands. Options are divided into short options and long options:

Short options:-C For example:-L,-H

Long options:--word For example:--all,--color

Parameters: The object of the command, such as file name, user name, etc.

Note: 1, multiple options, and multiple arguments and commands are delimited by using white space characters

2, Cancel and end command execution can be used: Ctrl + C, ctrl+d

3, multiple commands can be separated by (semicolons)

4, a command can be divided into multiple lines with \

# Ctrl+alt+f#[1-6] switchable Terminal Login interface

2, there are two types of commands that can be executed in the shell:

Internal command: Delivered by the shell, and provided by a command, enable or disable internal commands

External command: In the current system of a file system path has a corresponding executable program file, the Which,whereis command can be used to query the path of the command, the command format is as follows:

# which COMMAND

# Whereis COMMAND

The difference between the currently used command is an internal or external command

# type COMMAND


3,LSCPU command: Can view the information of the native CPU

4,cat command: Can view the contents of the file

5,who command: To view the currently logged on user

6,who am I command: can view the currently logged on user

7,poweroff, Halt, Init0: Power off

8,hostname command: View current host name

# hostname

#hostname new_name Modify Host Name

9,tty command: Displays the terminal of the login

10,ifconfig command: View current network status

11,free command: View memory usage

12,history command: View and save History commands

13,hash Command: Search for external command path results cache to KV (key-value) storage

14,uname command: Displays the current operating system name

Function Description: Uname is used to obtain information about the computer and the operating system.
Syntax: uname [-amnrsvpio][--help][--version]
Supplemental Note: uname can display basic information such as the version of the operating system used by the Linux host, the name of the hardware.
Parameters
-A or –all verbose output all information, followed by kernel name, hostname, kernel version number, kernel version, hardware name, processor type, hardware platform type, operating system name
-M or –machine displays the hardware (CPU) name of the host
-N or-nodename displays the name or host name of the host on the network node
-R or –release display Linux OS kernel version number
-S or –sysname displays the Linux kernel name
-V display shows the version of the operating system
-P display processor type or unknown
-I display hardware platform type or unknown
-O Display Operating system name
Help Get Help information
–version Display uname version information


Summary of several 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.