I was reading a book on UNIX when I came across this question. You have a directory structure
$HOME/a/a/b/c
where the first a is empty. How do you remove it and move the lower directories up? I have looked on the man pages of the commands rmdir and rm but could find nothing. Please help me.
You should move subdirectory before remove parent directory. So..
But, this does not work because name
a
collide.Rename the parent directory to avoid name collision.