Home Blog Archive Software Delete file on Linux - how to

Delete file on Linux - how to

  • Oct 01, 2025
  • 553
  • 0

The following tip shows you how to delete in Linux is a file.

Files in Linux using the Terminal to delete

As an Alternative to the traditional method right click > "move to trash", you can delete directly from the console of your files.
  • You can open the console by pressing the key combination [Ctrl] + [Alt] + [T] or type in the search bar "Terminal".
  • Navigate to the directory where the file is located with the cd command.
  • If you still don't know what files are in the folder, the command "ls". You will receive a list of files.
  • Now enter "rm file name.File extension" to. An example of rm chipTest.txt would be "" (see image).
  • Linux is case-sensitive and pays attention to upper and lowercase.
  • Note: The files do not end up in the trash, but completely deleted.
The command "rm" deletes files
Do you want to a large file, delete it and don't know the exact path, you will learn, in a further practical tip, how to Linux find large files.

YOU MAY ALSO LIKE

0 COMMENTS

LEAVE A COMMENT

Human?
1 + 3 =