Basic Linux commands (two)

This article describes two types of command, it is the most basic part

  1. System status monitoring command
  2. Change the working directory command

First, the system status monitoring command

1. ifconfig command

NIC configuration for acquiring the network status and other information

FIG follows: inet behind the IP address, ether MAC address

 

 2. uname command

For viewing system kernel and system version and other information, generally - a match

 

 3. uptime command

 

To view the system load information, the system displays the current time, the system has been running time, the number of terminals to enable
and average load value and other information. Refers to the average load value of the system in the last 1 minute, 5 minutes, 15 minutes of pressure within the case, lower values are better

 

 4. free command

 

It displays the amount of memory used in the current system information

 

5.who command whoami command

who view the current user logs in which native, whoami displays the current user name

6. last command

Log in to view all records system

7. history command

Command history have been executed (most recent 1000) for display, if the - c parameter record will be cleared

 

 

 

 

 

Second, the working directory command

1. pwd command

To view the current directory

 

2. cd command

We can say that this is one of the most commonly used commands, and it is used to switch between the various flexible working directory, in the format "cd [directory name]"

"Cd -" to return to the last directory

 

 

"Cd .." to go to previous directory

"Cd ~" for returning to the root of

3. ls command

"- l" attribute parameters to view the file, use "- a" parameter view all file information (including hidden files) file information in the directory, in the format of "ls [options] [file]", to use for display

 

 

 

What are the file view the current directory

View the file properties (to see if the directory attribute information, and then add a "- d" parameter)

 

 To be continued

Guess you like

Origin www.cnblogs.com/yytest/p/12593968.html