Nguyễn Tuyền
New member
How do I move a file from one directory to another in Linux?
Answer
To move a file or directory from one location to another,
use the command mv
. Common useful options for mv include: -i (interactive) — Prompts you if the file you have selected overwrites an existing file in the destination directory. -f (force) — Overrides the interactive mode and moves without prompting.
Answer
To move a file or directory from one location to another,
use the command mv
. Common useful options for mv include: -i (interactive) — Prompts you if the file you have selected overwrites an existing file in the destination directory. -f (force) — Overrides the interactive mode and moves without prompting.