Things You'll Need:
- Any Unix Variant
-
Step 1
Open a terminal window.
The terminal window is usually found under utilities in the Start Menu. -
Step 2
Go to the directory where the file is located. For the purposes of this article we are going to assume the article is named 'mydocument.txt' and can be found in /home/user/Documents.
cd /home/user/Documents
or
cd ~/Documents -
Step 3
List the contents of the directory, to ensure that your document is there.
ls -a
The -a option tells the ls command to show all files, including hidden files. -
Step 4
Remove the file with the command:
rm mydocument.txt -
Step 5
Exit the terminal with the command:
exit










