mv <src> <dest>Renames a file or moves it to another location.
Example
mv draft.txt final.txtMoves or renames files and directories.
sudo apt install coreutilsmv <src> <dest>Renames a file or moves it to another location.
Example
mv draft.txt final.txtmv <file> <dir>/Moves a file into a directory.
Example
mv report.pdf ~/Documents/mv <file1> <file2> <dir>/Moves several files.
Example
mv *.jpg photos/mv -i <src> <dest>Asks before overwriting.
mv -n <src> <dest>Never overwrites.
mv -v <src> <dest>Prints what was moved.
mv -b <src> <dest>Backs up an existing destination before replacing it (GNU).
mv -t <dir> <files>Names the target directory first — useful with xargs.
Example
mv -t archive/ *.logCopies files and directories, preserving attributes when asked.
Removes files and directories. There is no recycle bin — deletion is immediate.
Lists directory contents with sizes, permissions, owners, timestamps and hidden files.
The shell built-in that changes the current directory, including shortcuts for home, previous and parent directories.
Prints the full path of the current working directory, optionally resolving symbolic links.
Creates directories, including parent paths and with specific permissions.