Centos Redhat suse 系統資訊檢視

2021-08-02 14:31:52 字數 822 閱讀 8479

cpu個數

cat /proc/cpuinfo | grep "physical id" | uniq | wc -l

cpu核數

cat /proc/cpuinfo | grep "cpu cores" | uniq

cpu型號

cat /proc/cpuinfo | grep 'model name' |uniq

記憶體總數

cat /proc/meminfo | grep memtotal

memtotal: 32941268 kb 記憶體32g

記憶體條數

midecode |grep -a16 "memory device$"

硬碟大小

fdisk -l | grep disk

伺服器型號

dmidecode | grep "product"

列出所有版本資訊

lsb_release -a 或者 cat /etc/issue

系統是64位還是32位

file /bin/ls

核心版本

cat /proc/version

檢視環境變數資源

env檢視所有監聽埠

netstat -lntp

檢視所有已經建立的連線

netstat -antp

檢視使用者登入日誌

last

檢視系統所有使用者

cut -d: -f1 /etc/passwd

檢視系統所有組

cut -d: -f1 /etc/group

檢視當前使用者的計畫任務服務

crontab -l

拿nslookup查DNS資訊

nslookup是個很有意思的小命令,我們用它來看看dns上都有啥資訊。我們用any這個引數能知道dns上的n多資訊,如 txt記錄 serial號 我們能看到9月7日的dns上做過改動哦 address資訊 看來電信的線路多啊 mx記錄 ns記錄資訊 mail addr是sa.baidu.com ...

資訊不是資訊系統

資訊不是資訊系統 資訊 資訊處理工具 使用人 資訊系統 不需要資訊的業務活動要資訊幹什麼,資訊只對需要他的人有用。資訊系統的最終對接物件是人腦這個生物智慧型資訊系統,才能發揮他的價值 寧無資訊,勿假資訊。現在的資訊科技的價值主要還是體現在獲取,傳輸層次,加工與運用施效還不足。資訊科技的價值在哪?對業...

使用 DML語句針對倉庫管理資訊系統,進行查詢操作

查詢所有電視機產品的基本資訊,要求顯示產品編號 產品名和進貨單價 select goodsid gname,unitprice from goods where category 電視機 查詢所有產品的基本資訊,要求按型別公升序 降序顯示查詢資訊 select from goods order by...