Skip to content

Latest commit

 

History

History
64 lines (59 loc) · 771 Bytes

linux_EoP.md

File metadata and controls

64 lines (59 loc) · 771 Bytes

Linux EoP

system

#Centos
hostnamectl
cat /etc/centos-release
cat /etc/os-release
cat /etc/*release

package

#Centos&Redhat
rpm -qa

network information

interface

#show all interface
ifconfig -a
ip addr

#show specific interface
ip addr show dev eth0

arp

arp -n
ip neigh

route

route -n
ip route

net state

netstat -tunlp
ss -tunlp

Centos

cat  /etc/sysconfig/network-scripts/ifcfg*
cat /etc/sysconfig/network

package

list package

rpm -qa

service

systemctl list-unit-files|grep enabled

config

#nfs
cat /etc/exports

reference

https://access.redhat.com/sites/default/files/attachments/rh_ip_command_cheatsheet_1214_jcs_print.pdf