3.21壓縮文件
命令:compress
格式:compress [option] filename
功能:壓縮文件。
選項(xiàng):-f 強(qiáng)制壓縮
-v 壓縮時(shí)顯示壓縮百分比
注釋:
例如:% comproess files
3.22解縮文件
命令:uncompress
zcat
格式:compress [option] filename
zcat filename
功能:展開或顯示壓縮文件。
選項(xiàng):-c 不改變文件寫到標(biāo)準(zhǔn)輸出
注釋:zcat命令相當(dāng)于uncompress -c
例如:% uncomproess files.Z
3.23顯示文件類型
命令:file
格式:file filename ...
功能:按文件內(nèi)容來推測文件類型,如text,ascii,C,executable,core。
選項(xiàng):
注釋:
例如:% file *
3.24建立檔案文件
命令:tar (tape archive)
格式:tar [option] tarfile filename
功能:建立文件的存檔或讀存檔文件。
選項(xiàng):-c 建立一個(gè)新的檔案文件
-x 從檔案文件中讀取文件
-v 顯示處理文件的信息
-f 指定檔案文件名,缺省時(shí)為磁帶機(jī)即/dev/rmt/0
-t 列出存檔文件的信息
注釋:
例如:% tar cvf tarfile .
% tar xvf tarfile
% tar tvf tarfile
3.25磁帶拷貝文件
命令:dd
格式:dd [option=value]
功能:用磁帶機(jī)轉(zhuǎn)換或拷貝文件。
選項(xiàng):if=name 指定輸入文件名
of=name 指定輸出文件名
ibs=n 指定輸入文件塊大小為n字節(jié)(缺省為512字節(jié))
obs=n 指定輸出文件塊大小為n字節(jié)(缺省為512字節(jié))
注釋:
例如:% dd if=filename of=/dev/rmt/0
% dd if=/dev/rmt/0 of=filename ibs=1024
3.26修改文件日期
命令:touch
格式:touch filenae
功能:改變文件的日期,不對文件的內(nèi)容做改動,若文件不存在則建立新文件。
選項(xiàng):
注釋:
例如:% touch file
3.27統(tǒng)計(jì)文件字?jǐn)?shù)
命令:wc (word characters)
格式:wc [option] filename
功能:統(tǒng)計(jì)文件中的文件行數(shù)、字?jǐn)?shù)和字符數(shù)。
選項(xiàng):-l 統(tǒng)計(jì)文件的行數(shù)
-w 統(tǒng)計(jì)文件的字?jǐn)?shù)
-c 統(tǒng)計(jì)文件的字符數(shù)
注釋:若缺省文件名則指標(biāo)準(zhǔn)輸入
例如:% wc file
3.28檢查拼寫
命令:spell (spelling)
格式:spell [option] filename ...
功能:檢查文件中的拼寫錯(cuò)誤
選項(xiàng):-b 按英國拼法檢查
-v 顯示字面上不在拼法字典上的詞
-x 顯示每一個(gè)可能合理的詞根
注釋:
例如:% spell file
2015職稱計(jì)算機(jī)考試書PowerPoint2007中 .. 定價(jià):¥45 優(yōu)惠價(jià):¥42 更多書籍 | |
2015年全國職稱計(jì)算機(jī)考試教材(2007模 .. 定價(jià):¥225 優(yōu)惠價(jià):¥213 更多書籍 |