About Shell is a command interpreter that is
About Shell is a command interpreter that is responsible for the task assignment for the given command. Shell prompt(command prompt) User … User is a ready signal for taking any User shell command. X-window, Gnome Internal command: exit, echo, Desktop Manager history… Shell(internal/ external) External command: passwd, who, ex: tcsh, bash, csh, … date…. O. S 指令的式子規則 Other resources Command [-Option] [argument] 朝陽科大 李麗華 92年 12月修訂
Basic Command—view & find files pico myfile (隨意編輯一個檔案, ^x 離開, 再按y 存檔) ls -l (列出目前目錄下完整的檔案資訊) cat myfile (列出此檔案的內容) cp. /myfile 1 (於本目錄下複製出另一個檔案叫 myfile 1) cp myfile ~/myfile 2 (同上) cp myfile 3 (同上) cp ~/myfile 4 (於home目錄下複製一個檔案至目前目錄) mv myfile 2 myfile 5 (於本目錄下將myfile 2改名為myfile 3) mv myfile 1 dir 1 (複製一個檔案至dir 1目錄下) cp myfile dir 2/myfile 4 (複製出另一個檔到dir 2目錄下叫 myfile 4) quota –v (顯示你己用掉多少quota) cp /usr/doc/xxx/yyy ~ (到指定的目錄下去拷背yyy文件到本目錄) mail –s lily@penguin. im. cyut. edu. t < myfile 1 (利用mail發送文件(沒有subject), 送給penguin主機的user叫 lily) 朝陽科大 李麗華 92年 12月修訂
- Slides: 15