Home >System Tutorial >LINUX >Commonly used basic Linux commands and how to use them

Commonly used basic Linux commands and how to use them

WBOY
WBOYforward
2024-01-09 21:34:09840browse

This issue introduces the use of basic Linux commands

1. Use the who command to display the user name of the current Linux system

linux基础命令有哪些? linux基础命令使用方法

2. Use the following commands to display information about the computer system: uname (displays the name of the operating system), uname –n (displays the system domain name), uname –p(Display the name of the CPU)

linux基础命令有哪些? linux基础命令使用方法

3. Use the passwd command to modify the user name and login password found with the whoami command . Then use who –a to command the username of the computer and a list of other users on the same system

linux基础命令有哪些? linux基础命令使用方法

linux基础命令有哪些? linux基础命令使用方法

4. Use the command data to display the current time: use the cal command to display the calendar for the year 4 AD

linux基础命令有哪些? linux基础命令使用方法

5. How many days are there in 1752 and why? There are 356 days. Through cal 1752 we found that there are 29 days in February of that year which are leap years, so there are 356 days.

linux基础命令有哪些? linux基础命令使用方法

6. Use the uptime command to determine when the system has been started and how many logged-in users are in the current system

linux基础命令有哪些? linux基础命令使用方法

related suggestion:

How to use commands to create files and folders in Linux?

How to use the command to compress and decompress to a specified directory in Linux?

How to use Linux Bash commands in the preview version of Win10 First Anniversary Update?

The above is the detailed content of Commonly used basic Linux commands and how to use them. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete