【正文】
訪問 windows的 fat32分區(qū): fdisk /dev/hda [rootqq root] fdisk /dev/hda The number of cylinders for this disk is set to 1867. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (., old versions of LILO) 2) booting and partitioning software from other OSs (., DOS FDISK, OS/2 FDISK) Command (m for help): p Disk /dev/hda: GB, 15364339200 bytes 255 heads, 63 sectors/track, 1867 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 1 255 2048256 2d Unknown /dev/hda2 256 1867 12948390 f Win95 Ext39。 November 2020 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 [rootqq root] cal y 2020 顯示 2020全年的日歷 [rootqq root] cal 3 1974 顯示 1974年 3月的日歷 ps 查看目前程序執(zhí)行的情形 [rootqq root] ps x|more PID TTY STAT TIME COMMAND 1 ? S 0:05 init [3] 1862 ttyp0 S 0:00 bash 1540 ? S 0:00 /usr/sbin/vsftpd /etc/vsftpd/ [rootqq root] ps aux 顯示系統(tǒng)目前所有用戶正在運行的進 程 top系統(tǒng)狀態(tài)命令 顯示當前系統(tǒng)資源使用狀況 如果想查閱簡單信息,可使用 uptime和 free命令。 *********有關文件系統(tǒng)和磁盤空間的指令 ********* df 報告磁盤剩余空間 格式: df( 參數(shù)) 常用參數(shù)解釋 a 把全部的文件系統(tǒng)和各分區(qū)的磁盤使用情形列出來。使用 f 選項, tail 會自動實時地把打開文件中的新消息顯示到屏幕上。你可以通過指定一個數(shù)字選項來改變要顯示的行數(shù),如下面的命令所示: head 20 filename tail 命令 與 head 命令恰恰相反的是 tail 命令。 [hongqtqq hongqt]$rm rf buf/ ****閱讀文本文件命令小全 **** *cat 顯示出文件的內容 cat( 參數(shù))(文件) eg: 顯示 /etc/passwd文件內容,如果一屏顯示不完的話,可使用命令 2或命令 3逐屏顯示。 ln s /home/hongqt/qq/xiaoyu/passwd pass vi pass即直接對 /home/hongqt/qq/xiaoyu/passwd進行修改,但如果使用刪除命令 rm f pass的話,僅僅是刪除連接文件本身,而不會刪除實際的文件。 [hongqtqq hongqt]$ mv b /home/hongqt/passwd /home/hongqt/qq(假設 qq目錄下已經(jīng)有同名文件存在 )則我們在 /home/hongqt/qq下使用 ls 命令時會看到這樣兩個文件: passwd和 passwd~ 。 權限位共有 10位 /All/ 最高位 1 2 3 4 5 6 7 8 9 或 d或 l r w x r w x r w x /user rights/ /group rights/ /other user rights/