Files and Directories
Commands
touch
touch
- updates the access and last modification times of each file to the current time.If the specified file does not exist, the touch command will create it.
It is used more to create empty files than to update the file timestamp.
cp
cp
- copy the source file to the destination file
mv
mv
- move fileused for renaming the file/directory in the same directory
rm
rm
- remove files or directoriesdeletes the file forever (does not put it in the recycle bin)
use various options to minimize accidents
mkdir
mkdir
- create directories
rmdir
rmdir
- remove empty directory
Last updated