-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux mv Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to mv on Linux, covering Arch Linux, CachyOS, and other distributions including moving files, renaming files, and file operations.
mv (move) moves and renames files.
Uses:
- Move files: Relocate files
- Rename files: Change file names
- Reorganize: Organize files
- File management: Manage filesystem
Why it matters:
- File organization: Organize files
- Renaming: Change file names
- Moving: Relocate files
Basic usage:
# Move file
mv source.txt /destination/
# Move and rename
mv old-name.txt new-name.txtMove several:
# Move multiple files
mv file1.txt file2.txt file3.txt /destination/
# All moved to destinationConfirm overwrite:
# Interactive mode
mv -i source.txt dest.txt
# Asks before overwritingShow actions:
# Verbose mode
mv -v source.txt dest.txt
# Shows what's movedChange name:
# Rename file
mv old-name.txt new-name.txt
# Same directory, different nameRename folder:
# Rename directory
mv old-dir/ new-dir/
# Directory renamedFix permissions:
# Check permissions
ls -l source.txt
# Use sudo if needed
sudo mv source.txt /destination/This guide covered mv usage, file moving, and renaming for Arch Linux, CachyOS, and other distributions.
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.