Skip to content

Instantly share code, notes, and snippets.

@dotku
Last active November 6, 2016 10:27
Show Gist options
  • Select an option

  • Save dotku/f2cff60c7fafaabb56f84d187fe92aab to your computer and use it in GitHub Desktop.

Select an option

Save dotku/f2cff60c7fafaabb56f84d187fe92aab to your computer and use it in GitHub Desktop.

如果是一个空的文件夹的话,目录会是这样的

root@do-107-170-232-130:html $ cd empty/
root@do-107-170-232-130:empty $ ls -la
total 8
drwxr-xr-x 2 root root 4096 Nov  6 05:24 .
drwxr-xr-x 5 root root 4096 Nov  6 05:24 ..
root@do-107-170-232-130:empty $

你是可以在当前目录把所在的目录给删除掉的!
这个时候,这个目录 ls -la 就会显示结果 total 0

root@do-107-170-232-130:util $ rmdir ../util
root@do-107-170-232-130:util $ ls
root@do-107-170-232-130:util $ ls -la
total 0
root@do-107-170-232-130:util $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment