12、 Linux commands uname, uptime, last

Time:2021-12-2

Uname: command to display operating system related information.

Syntax format: uname [options]

Command options:

-A displays all information about the operating system

-M displays the CPU type, 32-bit or 64 bit

-N displays the host name of the operating system

-S displays the name of the operating system

-R displays the operating system kernel

-V displays the version of the operating system

 

 

Uptime: this command is used to output system task queue information.

Syntax format: uptime

Output schedule time, running time from system startup to now, how many users are online at present, and average system load (1 minute, 5 minutes, 15 minutes)

 

 

 

Last: the command lists information about current and past logged in users.

Syntax format: last