[student@h006 ~]$ rmdir tmp rmdir: `tmp' を削除できません: ディレクトリは空ではありません [student@h006 ~]$ ls tmp file3 name.lis [student@h006 ~]$ rm tmp/* [student@h006 ~]$ ls tmp [student@h006 ~]$ rmdir tmpカレントディレクトリの削除はできません。
[student@h006 ~]$ rmdir . rmdir: `.' を削除できません: 無効な引数ですrm コマンドによっても、ディレクトリを削除することができます。
[student@h006 ~]$ ls subdir a b c [student@h006 ~]$ rm -r subdir [student@h006 ~]$ ls subdir ls: subdir にアクセスできません: そのようなファイルやディレクトリはありません
パス | 意味 |
---|---|
. | 現在のディレクトリ |
.. | ひとつ上のディレクトリ |
~ | ホームディレクトリ |
~XXX | ユーザXXXのホームディレクトリ |