1. 程式人生 > >linux 檢視系統資訊命令(比較全)

linux 檢視系統資訊命令(比較全)

# iptables -L # 檢視防火牆設定 


[[email protected] ~]# iptables -L 
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     udp  --  anywhere             anywhere             udp dpt:domain
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:domain
ACCEPT     udp  --  anywhere             anywhere             udp dpt:bootps
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:bootps
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere
INPUT_direct  all  --  anywhere             anywhere
INPUT_ZONES_SOURCE  all  --  anywhere             anywhere
INPUT_ZONES  all  --  anywhere             anywhere
DROP       all  --  anywhere             anywhere             ctstate INVALID
REJECT     all  --  anywhere             anywhere             reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             192.168.122.0/24     ctstate RELATED,ESTABLISHED
ACCEPT     all  --  192.168.122.0/24     anywhere
ACCEPT     all  --  anywhere             anywhere
REJECT     all  --  anywhere             anywhere             reject-with icmp-port-unreachable
REJECT     all  --  anywhere             anywhere             reject-with icmp-port-unreachable
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere
FORWARD_direct  all  --  anywhere             anywhere
FORWARD_IN_ZONES_SOURCE  all  --  anywhere             anywhere
FORWARD_IN_ZONES  all  --  anywhere             anywhere
FORWARD_OUT_ZONES_SOURCE  all  --  anywhere             anywhere
FORWARD_OUT_ZONES  all  --  anywhere             anywhere
DROP       all  --  anywhere             anywhere             ctstate INVALID
REJECT     all  --  anywhere             anywhere             reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     udp  --  anywhere             anywhere             udp dpt:bootpc
OUTPUT_direct  all  --  anywhere             anywhere

Chain FORWARD_IN_ZONES (1 references)
target     prot opt source               destination
FWDI_public  all  --  anywhere             anywhere            [goto
] FWDI_public all -- anywhere anywhere [goto] Chain FORWARD_IN_ZONES_SOURCE (1 references) target prot opt source destination Chain FORWARD_OUT_ZONES (1 references) target prot opt source destination FWDO_public all -- anywhere anywhere [goto
] FWDO_public all -- anywhere anywhere [goto] Chain FORWARD_OUT_ZONES_SOURCE (1 references) target prot opt source destination Chain FORWARD_direct (1 references) target prot opt source destination Chain FWDI_public (2 references) target prot opt source destination FWDI_public_log all -- anywhere anywhere FWDI_public_deny all -- anywhere anywhere FWDI_public_allow all -- anywhere anywhere ACCEPT icmp -- anywhere anywhere Chain FWDI_public_allow (1 references) target prot opt source destination Chain FWDI_public_deny (1 references) target prot opt source destination Chain FWDI_public_log (1 references) target prot opt source destination Chain FWDO_public (2 references) target prot opt source destination FWDO_public_log all -- anywhere anywhere FWDO_public_deny all -- anywhere anywhere FWDO_public_allow all -- anywhere anywhere Chain FWDO_public_allow (1 references) target prot opt source destination Chain FWDO_public_deny (1 references) target prot opt source destination Chain FWDO_public_log (1 references) target prot opt source destination Chain INPUT_ZONES (1 references) target prot opt source destination IN_public all -- anywhere anywhere [goto
] IN_public all -- anywhere anywhere [goto] Chain INPUT_ZONES_SOURCE (1 references) target prot opt source destination Chain INPUT_direct (1 references) target prot opt source destination Chain IN_public (2 references) target prot opt source destination IN_public_log all -- anywhere anywhere IN_public_deny all -- anywhere anywhere IN_public_allow all -- anywhere anywhere ACCEPT icmp -- anywhere anywhere Chain IN_public_allow (1 references) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:ssh ctstate NEW Chain IN_public_deny (1 references) target prot opt source destination Chain IN_public_log (1 references) target prot opt source destination Chain OUTPUT_direct (1 references) target prot opt source destination [[email protected] ~]#

相關推薦

linux 檢視系統資訊命令(比較)

# iptables -L # 檢視防火牆設定 [[email protected] ~]# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT

Linux檢視系統資訊常用命令大全

[b]系統[/b]# uname -a # 檢視核心/作業系統/CPU資訊# head -n 1 /etc/issue # 檢視作業系統版本# file /sbin/init 或者 file /bin/ls # 檢視作業系統位數# cat

ubuntu檢視系統資訊命令

轉自:https://blog.csdn.net/wzz87/article/details/68491953 今天因老闆要求,需要檢視伺服器中的配置資訊,但是對ubuntu命令不是很熟悉,所以就網上進行的查閱,順便做些筆記 檢視處理核資訊  cat /proc/cpuinf

centos、linux檢視系統資訊

檢視位數命令 命令實在是不要太多,為了防止選擇性障礙,一致選擇第一種方式,後面的僅作為補充。 方法1: [[email protected] ~]# uname -a Linux bogon 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12

Linux檢視系統資訊和狀態

  在 Linux 系統中,使用者和應用程式可以通過 /proc 得到系統資訊和狀態。      在 Linux 環境開發驅動程式,首先要探測到新硬體,接下來就是開發驅動程式。 常用命令整理如下:

Linux中常用的檢視系統資訊命令

導讀 Linux是一個神奇而又高效的作業系統,學完Linux對Linux系統有一個熟悉的瞭解後,你需要了解下這些實用的檢視系統資訊的命令。 檢視系統版本命令 uname 談到系統版本就一定會想到uname,檢視系統核心版本 uname -引數 其他的什麼-n -m -r

Linux檢視系統硬碟記憶體及開機資訊命令

Linux要的檢視系統硬碟記憶體及開機資訊的命令一, df可以檢視硬碟中的資訊 df -a 可以看很多資訊 df -T 可以看更多資訊 df -k 以k為單位看資訊 df -m 以m為單位看資訊 df -h 以G為單位看資訊 df -t vfat 看是vfat型別的分割槽。 比如 df -a 檔案系統 1K-

Linux系統檢視硬體資訊命令總結

lscpu lscpu命令能夠檢視 CPU 和處理單元的資訊,該命令沒有任何其他選項或者別的功能。 lscpu lspci lspci可以用來列出所有的 PCI 匯流排,還有與 PCI 匯流排相連的裝置的詳細資訊,比如 VGA 介面卡、顯示卡、網路介面卡、usb 埠

常用檢視Linux系統資訊命令總結

系統 # uname -a # 檢視核心/作業系統/CPU資訊 # head -n 1 /etc/issue # 檢視作業系統版本 # cat /proc/cpuinfo # 檢視CPU資訊 # hostname # 檢視計算機名 # l

Py3.X棧-Day03-初始Linux操作系統命令操作

system32 usr 目錄 光纖 進入 圖像 共享 分類 Python全棧 1、什麽是網絡?什麽是計算機網絡? 1)網絡是由節點和連線構成,表示諸多對象及其互相關系(尼瑪,這啥概念,我表示聽不懂呀!) 2)計算機網絡,是指將地理位置不同的,具有獨立功能的,多臺計算機及其

CentOS檢視系統資訊常用命令

檢視CPU # 命令1 more /proc/cpuinfo | grep "model name" # 命令2 grep "model name" /proc/cpuin

Kali 檢視系統資訊的一些命令檢視已安裝軟體包的命令

1.系統 uname -a檢視核心/作業系統/CPU資訊 head -n 1 /etc/issue檢視作業系統版本 cat /proc/cpuinfo檢視CPU資訊 hostname檢視計算機名 lspci -tv列出所有PCI裝置 lsusb

Linux檢視系統與核心資訊(uname、file和lsb_release -a)

uname 命令 uname 命令可以用來檢視系統與核心的相關資訊,命令格式如下: [[email protected] ~]# uname [選項] 選項: -a:檢視系統所有相關資訊; -r:檢視核心版本; -s:檢視核心名稱; -a:檢視系統所有相關資訊

檢視linux系統常用的命令Linux檢視系統配置常用命令

一、linux CPU大小   cat /proc/cpuinfo |grep "model name" && cat /proc/cpuinfo |grep "physical id" 說明:Linux下可以在/proc/cpuinfo中看到每個cpu

Linux檢視系統資源資訊

Linux檢視系統資源資訊 查詢系統相關資訊 查詢CPU相關資訊 檢視記憶體相關資訊 檢視磁碟相關資訊 查詢系統相關資訊 主機名 hostname 檢視

CentOS檢視系統資訊-CentOS檢視命令

一:檢視cpu more /proc/cpuinfo | grep "model name"  grep "model name" /proc/cpuinfo  如果覺得需要看的更加舒服 grep "model name" /proc/cpuinfo | cut -f2

linux檢視資源資訊常用命令

系統# uname -a # 檢視核心/作業系統/CPU資訊 # lsb_release -a # 檢視作業系統版本 (適用於所有的linux,包括Redhat、SuSE、Debian等發行版,但是在debian下要安裝lsb)

Linux檢視系統資源佔用命令

轉自:http://essen.iteye.com/blog/1920081 top命令 ======================================主要引數 d:指定更新的間隔,以秒計算。 q:沒有任何延遲的更新。如果使用者有超級使用者,則t

Linux-常用檢視系統資源命令小結

mpstat:顯示各個可用CPU的狀態 使用:-P 對應cpu編號 例: suhw@ubuntu:~$ mpstat -P ALL Linux 4.13.0-37-generic (ubuntu) 2018年03月26日

Linux 檢視系統硬體資訊(例項詳解)

linux檢視系統的硬體資訊,並不像windows那麼直觀,這裡我羅列了檢視系統資訊的實用命令,並做了分類,例項解說。 cpu lscpu命令,檢視的是cpu的統計資訊. [email protected]:~$ lscpu Architecture: