How to Copying/Renaming/Deleting a file in unix?
How to Copying/Renaming/Deleting a file in unix?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
Copying a File:
To make a duplicate copy of a file, use the command cp.
cp <source> <destination>
So if you want to copy the file hello.txt to the directory Downloads, just type:
cp hello.txt Downloads
Renaming Files:
To change the name of a file, use the following command format
mv hello.txt hi.txt
Deleting Files:
Deleting files and directories with the rm command.
rm demo.txt