thedark Second Lieutenant
Joined: 30 Jul 2005
Posts: 1074
|
Posted: Wed Aug 03, 2005 8:48 pm Post subject: delete files |
|
|
To delete a file you must first have write permission to it. For information about permissions, click here. Once you have write permission, in a terminal run:
rm filename
There is no "Recycle Bin" in Linux so once you delete a file, it's gone for good.
When removing files, you may use an astrix (*) as a wildcard flag to remove certain files, for example if I wanted to remove all files that began with the letter j, I would run rm j*
If anyone tells you to run rm -rf / as root, DO NOT LISTEN TO THEM. Running this command will delete all the files/directories on your Linux system. |
|