Linux How to Remove a Directory in Linux The command to remove a directory (folder) on Linux is: rm -r /path/to/directory/ It will delete it no matter if the directory is empty, or not empty. -r is the option that tells the rm (remove) command to do this recursively. That is, remove the directory itself, along
Linux How to Rename a Directory in Linux What Windows calls folders, Linux-based operating systems call directories. Linux Command to Rename a Directory (Quick Examples) If you want the quick answers, here they are. Using relative paths, to rename a directory called Backups to Backups_2024, we'd run a command like this: mv Backups Backups_2024