Last active
August 9, 2018 06:15
-
-
Save kangmasjuqi/e3ce7d73b271ab2b559d9a69f7433d87 to your computer and use it in GitHub Desktop.
my commonly used centos commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uname -a | |
who | |
whoami | |
/etc/hosts | |
cat /etc/*-release | |
cat /proc/meminfo | |
ll /etc/sysconfig/network-scripts/ | |
nmtui | |
nmcli device | |
nmcli dev show eth0 | |
ip route show | |
dhclient | |
getenforce | |
cat /etc/selinux/config | |
netstat -tulpn | |
iptables -S | |
sestatus | |
systemctl status firewalld | |
history | |
top | |
df -h | |
du -sh | |
ss -s && free -m | |
lscpu | |
free -m | |
vmstat -s | |
ps aux | |
ps -ef | grep "httpd" | |
ps -ef | grep "mysql" | |
ps -ef | grep "php" | |
@daily find /*.log -ctime +1 -exec rm -rf {} + | |
crontab -l | |
find /folder_name/ -printf '%s %p\n'| sort -nr | head -10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment