Skip to main content
Logo image

Section 14.6 Remove a File

The command rm removes (deletes) a file.
CAUTION: rm does not check whether you actually mean to remove a file... It’ll simply go ahead and do so.

Activity 14.7.

In the Linux window below, change into the directory ~/engs20 (from your home directory, type cd engs20). Then, type ls. Now, delete the file "toBeDeleted.txt" by typing rm toBeDeleted.txt. Type ls and observe that the file is now gone.
There must be a waste basket somewhere? Where is the trash folder? Where did the file "toBeDeleted.txt" go?

If the server window does not load, please click here.