3. rmdir
(a) 系統: Red Hat 7.1

位置: /bin/false

(b) libc.so.6 => /lib/i686/libc.so.6 (0x4002d000)

/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

      (c) 移除空的目錄

(d) --ignore-fail-on-non-empty: 忽略非空目錄的錯誤訊息

      -p, --parents: 移除目錄, 並試著移除在 path 上的每個目錄
      -v, --verbose: 顯示出指令的執行過程
      --help: 顯示線上說明並離開
      --version: 顯示版本資訊並離開

      (e) 移除 tt/ttt 和 tt, 且忽略錯誤訊息: [ckchen@ChengKai ~]$ rmdir -p -ignore-fail-on-non-empty tt/ttt

移除 tt/ttt 和 tt, 並顯示出執行的過程
[ckchen@ChengKai ~]$ rmdir -p -v tt/ttt
rmdir: removing directory, tt/ttt
rmdir: removint directory, tt


      顯示出本線上說明: [ckchen@ChengKai ~]$ rmdir --help
Usage: rmdir [OPTION]... DIRECTORY...
Remove the DIRECTORY(ies), if they are empty.

      ...

      顯示出版本資訊: [ckchen@ChengKai ~]$ rmdir --version
rmdir (GNU fileutils) 4.0.36
Written by David MacKenzie.

      ...

(f) 可和 rm 相互配合來移除非空目錄:
[ckchen@ChengKai ~]$ rm -f tt/*
[ckchen@ChengKai ~]$ rmdir tt