Recently exposed to some of the Linux environment Deployment things, below to share some of the most recently used some of the more frequent Linux commands ~
1. Move multiple files into one folder at once
MV is moved file name-T destination folder
such as: MV A.txt b.txt-t CentOS (a.txt b.txt These files to the CentOS directory)
2. Create multiple directories
Mkdir-p b/b/b
3, delete the folder and all the following files
RM-RF file name
4. Find the installation directory for a software
Find/-name file name
5. View a log of a file
Tail-f. /logs/catalina.out
6. Kill a Process
Kill-9 Process Number
7. Detecting the presence of background processes
PS-EF |grep Process Name
such as: Ps-ef |grep Redis (see if the Redis process exists)
8. Detect if a port is listening
NETSTAT-LNTP | grep Port number
Example: NETSTAT-LNTP | grep 6379 (detects if Port 6379 is listening)
9. Turn off the firewall
Systemctl Stop Firewalld.service
Some of the common Linux commands