Online Linux Terminal Logo
OnlineLinuxTerminal
DateioperationenCLI Manual

$mv

Move or rename files and directories.

BefehlssyntaxPOSIX Standard
mv [OPTIONS] SOURCE... DEST
Linux-Community2.4k Online

Tausche dich mit Linux-Nutzern aus, lerne Befehle und lade PDF-Cheatsheets herunter.

Live im interaktiven Terminal ausprobieren

Client-seitige Simulation ohne Installation mit sofortigem Feedback.

Im Vollbild-Terminal öffnen ↗
bash — terminal

Überblick & Funktionsweise

`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.

Wichtige Optionen und Flags

Flag / OptionDescription
-iPrompt before overwriting an existing destination file.
-fForce overwrite without prompting.
-nDo not overwrite an existing file (no-clobber).
-vVerbose mode explaining actions being taken.

Praktische Anwendungsbeispiele

#1Rename a file in the current directory
mv notes.txt project_ideas.txt && ls -l

Renames notes.txt to project_ideas.txt.