linux delete file from terminal code example Example 1: shell remove file rm <file_name> Example 2: terminal delete fle rm MyFile.rtf