1. Execute script hint ls command does not exist?
The script defines the environment variable path as a string, causing the system to not find the LS command based on path
2. How can I see if the port is occupied?
lsof-i:6789
4. How to view the current system?
Lsb_release-a
5. How do I know which installation package A command comes from?
Rpm-qf/bin/pwd
6. ldd/usr/local/bin/memcachedb file cannot be found?
Export Ld_library_path= $LD _library_path:/usr/local/lib:/lib64/
7. How can I see how long the process is running?
Ps-a-opid,stime,etime,args | grep cron
8, start NFS error?
Check whether the Portmap is started, CENOS6 has been renamed to Rpcbind, start Rpcbind,service rpcbind start First, and then Start Nfs,service NFS start.
9, how to release the port?
LSOF-I:7100, check which process is occupied by the port, kill it
10. How to find files and delete them?
find/data/stb/log/-name "*.log" | Xargs RM-FR
Linux Issue Highlights