Basic commands for operating and maintaining Linux

ctrl+c to terminate the command
ctrl+l to clear the screen
history: display the original history command record
history
! 87
: Re-execute the 87 line command
ls: view
pwd: display the current directory
tab: complete
cd: enter the directory
cd …: return to the parent directory
cd ~ return to the root directory
touch: create a file
mkdir: create a directory
rm -rf: delete a directory All, is a wildcard

1 Please create a.txt b.txt c.txt e.txt file under
/tmp cd /tmp/
touch {a...c}.txt e.txt
2 Please create 1.txt 2.txt under /tmp 3. txt directory
cd /tmp/
mkdir {1…3}.txt
4 Please create and delete * files in /tmp
cd /tmp/
touch “*”
rm -rf *
5 Practice the tab key to complete the directory
6 What command to use to connect remotely server? What terminal is used 22
ip address SSH 22 port
7 What operating system version of the server you are operating?
Centos 7.6
8 If the remote connection of the virtual machine fails, what do you do?
Check the ip address to check the firewall, whether selinux is closed and re-enter the password
9 What does the delete command rm -rf mean?
rm delete
-rf force
10 clear screen
ctrl l
11 terminate the current command line command
ctrl c
12 view current directory path
pwd
13 difference between absolute path and relative path?
Absolute path: the path starting from /
Relative path: relative to the current directory
14
15 Does your Linux operating system have a desktop? Why do not use desktop Linux system in the enterprise?
No
waste of system resources
16 How to check the IP address?
ip a
17 What do you want to use the command you have entered?
history! + number of lines
Up and down arrow keys
18 Tell me what directories do you know under the Linux system?
root tmp src home etc var bin sbin
19 Where is the configuration file directory under the system?
/etc
20 If the machine is rooted. What do you do ?
If there is a snapshot, restore the snapshot directly. If not, reinstall the system

Guess you like

Origin blog.csdn.net/qq_43812373/article/details/109262752