File System Commands
cp copy files and directories
usage: cp source destination
cp i myfile yourfile
With the "i" option, if the file "yourfile" exists, you will be prompted before it is
overwritten.
cp r srcdir destdir
Copy all files from the directory "srcdir" to the directory "destdir" recursively.
●
rmdir Remove an existing directory
●
rm remove files or directories
Usage: rm r name
Removes directories and files within the directories recursively.
usage: cp source destination
cp i myfile yourfile
With the "i" option, if the file "yourfile" exists, you will be prompted before it is
overwritten.
cp r srcdir destdir
Copy all files from the directory "srcdir" to the directory "destdir" recursively.
●
rmdir Remove an existing directory
●
rm remove files or directories
Usage: rm r name
Removes directories and files within the directories recursively.
Comments
Post a Comment