回到網頁內容 臺灣-繁體中文
HP.com 首頁 產品資訊 支�#169;及驅動程式 解決方案 如何購買
» 聯絡 HP
進階選項
HP.com 首頁
使用HP-UX: HP 9000電腦 > 第 2 章. 處理檔案和目錄

本章命令摘要

» 

技術文件

PDF 格式的完整書籍
» 回饋意見
內容©韟像B開©l

 » 目錄

 » 辭彙

 » 索引

若要執行... 

請鍵入 ...

建立檔案 

cat > filename

終止cat命令的鍵盤輸入 

CTRL-D

列示現行目錄中可見的檔案 

ls

列示現行目錄中所有檔案 

ls -a

列示檔案;以「/」表示目錄 

lsf

查看檔案內容 

more filename

列印檔案 

lp myfile

獲得列印工作的相關資訊 

lpstat

取消lpno的列印工作 

cancel lpno

重新命名 (移動) 檔案 

mv fromfile tofile

複製檔案 

cp fromfile tofile

刪除檔案 

rm filename

變更目錄 

cd directory_path

變更至起始目錄 

cd

顯示工作目錄 

pwd

刪除 (空的) 目錄 

rmdir directory_name

刪除目錄和其內容 

rm -rf directory_name

在檔案中搜尋文字格式 

grep 'text' filename

搜尋檔案並在螢幕上顯示輸出 

find dir_path -name filename

可列印版本
隱私權聲明 使用範圍與著作權聲明
© Hewlett-Packard Development Company, L.P.