Renaming a directory is the same as renaming the files. You use the mv command.| Linux Handbook
Learn how to delete files and remove directories with rm command in Linux.| Linux Handbook