linux入侵的基本命令

2021-05-28 18:19:49 字數 1560 閱讀 2356

linux系統下基本命令: 要區分大小寫

系統# uname -a # 檢視核心/作業系統/cpu資訊

# head -n 1 /etc/issue # 檢視作業系統版本

# cat /proc/cpuinfo # 檢視cpu資訊

# hostname # 檢視計算機名

# env # 檢視環境變數

# dmidecode #檢視硬體詳細資訊

資源# free -m # 檢視記憶體使用量和交換區使用量

# df -h # 檢視各分割槽使用情況

# du -sh # 檢視指定目錄的大小

# uptime # 檢視系統執行時間、使用者數、負載

網路# ifconfig # 檢視所有網路介面的屬性

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

# route -n # 檢視路由表

# netstat -lntp # 檢視所有監聽埠

# netstat -antp # 檢視所有已經建立的連線

# netstat -s # 檢視網路統計資訊

# lsof     #檢視網路資訊

程序# ps -ef # 檢視所有程序

# top # 實時顯示程序狀態

使用者# w # 檢視活動使用者

# id # 檢視指定使用者資訊

# last # 檢視使用者登入日誌

# finger root #檢視管理資訊

# cut -d: -f1 /etc/passwd # 檢視系統所有使用者

# cut -d: -f1 /etc/group # 檢視系統所有組

# crontab -l # 檢視當前使用者的計畫任務

服務# chkconfig --list # 列出所有系統服務

# chkconfig --list | grep on # 列出所有啟動的系統服務

程式# rpm -qa # 檢視所有安裝的軟體包

入侵3.bash去掉history記錄

export histsize=0

export histfile=/dev/null

ftp命令詳解:

ftp的命令列格式為:

ftp使用的內部命令如下(中括號表示可選項):

bin:使用二進位制檔案傳輸方式。

bye:退出ftp會話過程。

cdup:進入遠端主機目錄的父目錄。

chmod mode file-name:將遠端主機檔案file-name的訪問方式設定為mode,如:chmod 777 a.out。

delete remote-file:刪除遠端主機檔案。

get remote-file[local-file]: 將遠端主機的檔案remote-file傳至本地硬碟的local-file。

ls[remote-dir][local-file]:顯示遠端目錄remote-dir, 並存入本地檔案local-file。

mkdir dir-name:在遠端主機中建一目錄。

put local-file:將多個檔案傳輸至遠端主機。

quit:同bye,退出ftp會話。

system:顯示遠端主機的作業系統型別

linux基本命令

linux常用命令 基礎 eg man ls 就可以檢視ls相關的用法 注 按q鍵或者ctrl c退出,在linux下可以使用ctrl c終止當前程式執行。2.ls 檢視目錄或者檔案的屬 列舉出任一目錄下面的檔案 eg ls usr man ls l a.d表示目錄 directory 如果是乙個 ...

《linux基本命令》

博主部落格 斷橋殘雪 uname 顯示版本資訊 同win2k的 ver dir 顯示當前目錄檔案,ls al 顯示包括隱藏檔案 同win2k的 dir pwd 查詢當前所在的目錄位置 cd cd 回到上一層目錄,注意cd 與.之間有空格。cd 返回到根目錄。cat 檔名 檢視檔案內容 cat abc...

LINUX 基本命令

檔案和目錄操作的基本命令 cat clear cmp cut diff du emacs fgrep file grep head ln less more pico pwd sort stat strings tail touch umask uniq vi wc whatis ls ls 選項 ...