The 'mv oldfilename newfilename' command renames a file by moving it to a new name in the same directory. 'cp' copies files, 'touch' creates empty files, and 'rm -rf *' deletes everything. The mv command serves dual purpose: moving files between directories OR renaming within the same directory.