Essential OS Basics 2: Deleting files & folders in Linux
This series of posts will contain a list of some very useful Linux commands that you might need every now and then. This one is a small tutorial on how to delete files in linux.
First post on Linux networking here
1. Delete files and directories
rm command
Let us assume you want to delete some files in directory /usr/tmp . You first navigate to directory using command
cd /usr/tmp
Now if you want to delete a particular file use rm as following:
rm filename
or you can run following command from whichever directory you are in.
rm /usr/tmp/filename
No comments:
Post a Comment