[Linux experiment] Linux basic commands

1. Experiment purpose and requirements

Many commands in the Linux system have many command options. To master the common options of some commonly used commands is very important for learning the Linux system. Use the man command to refer to the manual page of the command you have learned, record and organize some commonly used command options.

2. Laboratory equipment

Computer, virtual machine

3. Experimental content

Linux terminal window and command basis. Including: file directory commands, system information commands, process management commands and other commonly used commands. Use the man command to refer to the manual page of the command you have learned, record and organize some commonly used command options.
(A) file directory command class
1. Browse directory commands
pwd command, cd command, ls command
2. Browse file commands
cat command, more command, less command, head command, tail command
3. Directory operation commands
mkdir command, rmdir command,
4.File operation commands
cp command, mv command, rm command, touch command, diff command, ln command, gzip command and gunzip command, tar command, rpm command, whereis command, whatis command, find command, grep command
(two) system information Class commands
 dmesg command, df command, du command, free command, date command, cal command, clock command
(3) Process management commands
ps command, kill command, killall command, nice command, renice command, top command, bg jobs fg Command
(4) Other commonly used commands
uname command, man command, shutdown command

Fourth, the experiment implementation steps

(1) Experimental debugging steps
1. Start the virtual machine, open the terminal command window, and switch from the normal user authority to the administrator authority
su root
2. Use the man command to list the help manuals for each command (some commands are as follows)
man ls man cd; man head man tail; man mkdir man rmdir; man cp man mv man rm man ln;
3.Understand the commands and use them proficiently through the command help manual
(2) Experimental raw data recording
1. Help manual for some commands
Insert picture description here

Insert picture description here
Insert picture description here
Insert picture description here

2. The use of basic commands
(1) the use of file and directory commands
Insert picture description here
Insert picture description here

Use the ll command to list all files in the current directory in a long format.
Insert picture description here

Create a soft link lnsprofile and a hard link lnhprofile for the file profile.
Insert picture description here

(2) Use of system information commands Use the
free command to display memory usage.
Insert picture description here

Use the df command to display the system's hard disk partition and usage status.
Insert picture description here

(3) Use of process management commands
Use the ps command to view and control processes.
① Display the process of this user:
Insert picture description here

② Display the processes of all users:
Insert picture description here

③ Run the cat command in the background:

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_44762986/article/details/112218152