Skip to content

Instantly share code, notes, and snippets.

@kangmasjuqi
Last active August 9, 2018 06:15
Show Gist options
  • Save kangmasjuqi/e3ce7d73b271ab2b559d9a69f7433d87 to your computer and use it in GitHub Desktop.
Save kangmasjuqi/e3ce7d73b271ab2b559d9a69f7433d87 to your computer and use it in GitHub Desktop.
my commonly used centos commands
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