new cheat for mv: moving many files into a dir

This commit is contained in:
Kevin Woo 2018-02-04 18:57:25 -08:00 committed by GitHub
parent aa1e12625e
commit 3fe72a03cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -12,3 +12,6 @@ mv -i ~/Desktop/foo.txt ~/Documents/foo.txt
# Move a file from one place to another but never overwrite anything # Move a file from one place to another but never overwrite anything
# (This will override any previous -f or -i args) # (This will override any previous -f or -i args)
mv -n ~/Desktop/foo.txt ~/Documents/foo.txt mv -n ~/Desktop/foo.txt ~/Documents/foo.txt
# Move listed files to a directory
mv -t ~/Desktop/ file1 file2 file3