How to delete and remove files on CentOS Linux

Originally published at:

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.