operation and maintenance of linux common commands - continuously updated (welcome message to add)

cat / etc / passwd | grep bash # can view the current logged-on user 
id user name # Display the user information
last # view the user login log
cat / etc / redhat-release # View linux release information
uname -a # kernel version information
hostname -A # View the computer name
route -n # View the routing table
free -g # View disk size
lscpu # View CPU information
cat / proc / cpuinfo | grep " processor" | wc -l # View the number of logical CPU
df -h # View each disk partition usage, including the used space and the remaining space
du -sh * # to view the current size of the case file of each directory
du -sh * | file size under all sort -rh # view the catalog and sort according to size
real-time display top # process state
crontab -l # to view the current user's scheduled tasks service
netstat -ntlp # View all listening ports
rpm -e --nodeps software written in the name RPM software #

Guess you like

Origin www.cnblogs.com/maohai-kdg/p/11763939.html
Recommended