1.2.1 Flashcards
cp
copies directories, coping leaves the source data intact
cp -r or -R
Recursively copy subdirectories and files within the directories
mv
moves and renames directories
mv -f
overwrites a directory that already exists in the destination directory w/o prompting
mv -i
prompt overwriting a directory i the destination directory
mv -n
never overwrites files i the destination directory
rmdir
delete empty directory
rm
rm -i
removes the directory
prompts before removing
rm -r
rm -f
removes directories, subdirectories and files
eliminates prompt from read-only files and avoids exit code error if a file doesn’t exist
touch
creates a blank version of a file
cp
copies files
cp -f
cp -i
Overwrites files that already exist in the destination directory
prompts before overwriting
mv
mv -f
moves or renames files
overwrites files that already exist
mv -i
mv -n
prompts before overwriting
never overwrites files
rm
removes files from the directory