Linux – Create, rename and delete files

, <span>Linux – Create, rename and delete files</span>, KandZ
touch filename # create an empty file

touch is used to set or update the access, change and modify times of files.

touch -t 01142000 newfile

January 14th, 2000 hours

mv oldname newname  # rename a file

mv /home/user/file /home/user2/file   # move file

rm is used to remove files

rm -f  # remove a file by force

rm -i  # you will be prompted for every file you will try to delete.

 

 

 

17990cookie-checkLinux – Create, rename and delete filesLinux – Create, rename and delete files

Related posts

Leave a Comment