setup命令
[root@localhost ~]# setup
進入進行系統設定
退出 tab quit
cp 複製命令
cp 123 321
cp -a 123 321
rm命令
刪除命令 -r 目錄及檔案
[root@localhost html]# rm -i qiao.txt
rm: remove regular file `qiao.txt'? y
[root@localhost html]# ls
index.html peng.txt
[root@localhost html2]# rm -f qiao
rm: cannot remove `qiao': is a directory
[root@localhost html2]# ls
index.html peng.txt qiao
[root@localhost html2]#
[root@localhost html2]# rm -r qiao
rm: remove directory `qiao'? y
[root@localhost html2]# ls
index.html peng.txt
mv命令
(1)將/usr/udt中的所有檔案移到當前目錄(用」.」表示)中:
mv /usr/udt/* .
(2)將檔案test.txt重新命名為wbk.txt:
mv test.txt wbk.txt
(3)把當前目錄的乙個子目錄裡的檔案移動到另乙個子目錄裡
mv 檔名/* 另乙個目錄
(4)移動當前資料夾下的所有檔案到上一級目錄
mv *..
rpm命令
rpm -ivh example.rpm 安裝 example.rpm 包並在安裝過程中顯示正在安裝的檔案資訊及安裝進度;
rpm -q …
附加查詢命令:
a 查詢所有已經安裝的包以下兩個附加命令用於查詢安裝包的資訊; rpm -qa |grep httpd(篩選)
i 顯示安裝包的資訊;
l 顯示安裝包中的所有檔案被安裝到哪些目錄下; rpm -ql httpd-2.2.3-31.el5|more(分屏)
s 顯示安裝版中的所有檔案狀態及被安裝到哪些目錄下;以下兩個附加命令用於指定需要查詢的是安裝包還是已安裝後的檔案;
p 查詢的是安裝包的資訊;
f 查詢的是已安裝的某檔案資訊;
執行停止程式
df命令
用於檢視linux檔案系統的狀態資訊,顯示各個分割槽的容量、已使用量、未使用量及掛載點等資訊。
top命令是linux下常用的效能分析工具,能夠實時顯示系統中各個程序的資源占用狀況
freeree 命令相對於top 提供了更簡潔的檢視系統記憶體使用情況
Linux常用命令(二)
fdisk l 顯示分割槽列表 disk dev sda 500.1 gb,500107862016 bytes 255 heads,63 sectors track,60801 cylinders units cylinders of 16065 512 8225280 bytes sector ...
Linux常用命令(二)
五 幫助命令 1 man 命令英文原意 manual 命令所在路徑 usr bin man 執行許可權 所有使用者 語法 man 命令或配置檔案 功能描述 獲得幫助資訊 範例 man ls 檢視ls命令的幫助資訊 man services 檢視配置檔案services的幫助資訊 2 info 指令英...
linux常用命令(二)
more dlfpcsu num pattern linenum file more命令和cat命令一樣,都是檢視檔案內容,但是more命令功能強大很多,支援按頁檢視和直接跳轉等功能。n 從笫n行開始顯示。n 定義螢幕大小為n行,這個最好不要超過當前螢幕所能顯示的行數。pattern 在每個檔案顯示...