how to remove a directory in ubuntu using terminal code example Example: ubuntu remove directory rm -R folder-name