Correct mkdir name

Hi everyone ! I hope you’re all having a happy coding time, I just passed thru the command line topic and during one of the activities I made a mistake and I created a Directory misspelled and I was wondering how to correct that misspelling ! Thank you very much!

mv oldname newname

to remove it altogether:

rmdir directoryname

to remove a dir and all its contents (be careful about this):

rm -r dirname

https://www.techonthenet.com/unix/basic/mv.php

https://www.unixtutorial.org/basic-unix-commands

2 Likes