WARNING: These commands can overwrite existing files or permanently delete files.
Options:
-i
: Request confirmation before overwriting existing file-n
: Don't overwrite an existing file-v
: Verbose output
mv file-name destination-folder
mv file-1 file-2 destination-folder
mv folder destination-folder
mv folder-1 folder-2 destination-folder
mv current-name new-name
Options:
-i
: Request confirmation before overwriting existing file-n
: Don't overwrite an existing file-v
: Verbose output
cp file-name destination-folder
cp file-1 file-2 destination-folder
cp -R folder-name destination-folder
cp -R folder-1 folder-2 destination-folder
cp -R folder-name/ destination-folder
cp -R folder-1/ folder-2/ destination-folder
cat file-1 file-2 > file-3
echo "Hello world" > file-name
echo "Hello world" >> file-name
Options:
-i
: Request confirmation before deleting-v
: Verbose output
rm file-name
rm file-1 file-2
rmdir folder-name
rmdir folder-1 folder-2