I'm trying to learn some directory navigagtion with bash and all I know is that
will remove the directory but not if it's containing something. Is there a way to force it to remove the subdirectories, even if they're not empty?
The following command will do it for you. Use caution though.
rm -rf directoryname
rm -r directoryname
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the
terms of service.
9 months ago