Linux删除空目录
Linux288
description
删除test1目录,目录不为空,删除失败
command
rmdir -v test1/
parameter
rmdir : 如果目录为空则删除 -v, --verbose : 输出删除日志
result
rmdir: removing directory, 'test1/' rmdir: failed to remove 'test1/': Directory not empty
rmdir -v test1/
rmdir : 如果目录为空则删除 -v, --verbose : 输出删除日志
rmdir: removing directory, 'test1/' rmdir: failed to remove 'test1/': Directory not empty
I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.