How to delete and remove files on CentOS Linux

Originally published at: https://www.cyberciti.biz/faq/how-to-delete-and-remove-files-on-centos-linux/

I am a new CentOS Linux user. How do I delete and remove a file on CentOS Linux based system?

To remove files on any linux system, type into the terminal : rm <path_to_file>, where the path to the file is the file name, or the path to the file. To move files just type: mv <file you want to move> <destination> where the destination is the name of the directory or folder you want to move that file to.