$mv
Move or rename files and directories.
mv [OPTIONS] SOURCE... DESTPrueba en vivo en la terminal interactiva
Simulación del lado del cliente sin instalación y con respuesta inmediata.
Descripción general y funcionamiento
`mv` (Move) renames files and directories or moves them across different folder locations. If source and destination are on the same filesystem partition, `mv` is an atomic inode pointer update that executes instantly regardless of file size.
Opciones y banderas comunes
| Flag / Option | Description |
|---|---|
| -i | Prompt before overwriting an existing destination file. |
| -f | Force overwrite without prompting. |
| -n | Do not overwrite an existing file (no-clobber). |
| -v | Verbose mode explaining actions being taken. |
Ejemplos prácticos del mundo real
mv notes.txt project_ideas.txt && ls -lRenames notes.txt to project_ideas.txt.
Comandos de Linux relacionados
Busque archivos y directorios en una jerarquía según el nombre, tipo, tamaño o fecha de modificación.
Concatene e imprima el contenido de archivos en la salida estándar.
Create new directories and folder hierarchies.
Remove files or directories from the filesystem.
Copy files and directories to a destination path.
Create empty files or update file access and modification timestamps.