This post will show how to renaming directories & files via command line on Linux based operating system.

Renaming a directory’s name

mv old-name-dir new-name-dir

Renaming a file’s title

mv old-title-img.png new-title-img.png

This command also used for moving a directory or files to another path.

Moving a directory

mv dir-name dir-name-to-move/

Moving a file

mv filename.txt dir-name-to-move/