mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 13:42:11 +01:00
14 lines
618 B
Text
14 lines
618 B
Text
# Move a file from one place to another
|
|
mv ~/Desktop/foo.txt ~/Documents/foo.txt
|
|
|
|
# Move a file from one place to another and automatically overwrite if the destination file exists
|
|
# (This will override any previous -i or -n args)
|
|
mv -f ~/Desktop/foo.txt ~/Documents/foo.txt
|
|
|
|
# Move a file from one place to another but ask before overwriting an existing file
|
|
# (This will override any previous -f or -n args)
|
|
mv -i ~/Desktop/foo.txt ~/Documents/foo.txt
|
|
|
|
# Move a file from one place to another but never overwrite anything
|
|
# (This will override any previous -f or -i args)
|
|
mv -n ~/Desktop/foo.txt ~/Documents/foo.txt
|