close
*作業系統:Ubuntu 14.04
*文書軟體:OpenOffice.org Writer
* #號是使用root權限,$號則是一般使用者
*linux沒有磁碟機的概念,他是一個文件及目錄的概念
The Linux Command Line
第一章 What Is The Shell?
shell 是什麼?
shell 就是一個程式,它接受從鍵盤輸入的命令,然後把命令傳遞給作業系統去執行。需要另一個和shell 交互的叫做終端模擬器的程式。
如果提示符的最後一個字元是”#”,而不是”$”,則是以root 用戶的身份登錄,也就是有管理員許可權。
幾乎所有的Linux發行版本都提供一個名為bash 的來自GNU專案的shell程式。
1. date→displays the current time and date
顯示系統當前時間和日期
範例:mate@ 404040456debian:~ $ date
五 3月 3 09:17:23 CST 2017
2. cal→displays a calendar of the current month
顯示當前月份的日曆,需先執行date(屬於關聯指令)
範例:mate@ 404040456debian:~ $ cal
日 一 二 三 四 五 六
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 31
3. df→see the current amount of free space on your disk drives
查看磁碟片剩餘空間的數量
範例:mate@404040456debian:~$ df
檔案系統 1K-區段 已用 可用 已用% 掛載點
/dev/sda3 60343380 4220108 53034940 8% /
udev 10240 0 10240 0% /dev
tmpfs 1588528 9148 1579380 1% /run
tmpfs 3971312 80 3971232 1% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 3971312 0 3971312 0% /sys/fs/cgroup
tmpfs 794264 8 794256 1% /run/user/1001
4. free→display the amount of free memory
顯示空閒記憶體的數量
範例:mate@404040456debian:~$ free
total used free shared buffers cached
Mem: 7942628 1000972 6941656 10452 56716 420984
-/+ buffers/cache: 523272 7419356
Swap: 32772564 0 32772564
5. exit→closing the terminal emulator window
終止終端機
範例:mate@404040456debian:~$ exit
第二章 Navigation
1. pwd→Print name of current working directory
印出當前工作的文件夾名稱
範例:mate@404040456debian:~$ pwd
/home/404040456
2. ls→List directory contents
列出文件夾裡的內容
範例:mate@404040456debian:~$ ls
Desktop Documents Music Pictures Public Templates Videos
3. cd→Change directory
變換文件夾(指跳到裡層
範例:mate@404040456debian:~$ cd
全站熱搜