Click to See Complete Forum and Search --> : Deleting files from the command line.
chadm1967
11-12-2000, 08:39 AM
Hi all,
I know that I could just open the file manager and delete single files or multiple files but how would I do it from the command line?
Thanks.
Derango
11-12-2000, 08:43 AM
the command is rm
For example, if you wanted to delete the file "bigfile" in the directory /home/you/ you would type rm /home/you/bigfile
You can also use this to delete directories...but that requires the use of the -r option For example rm -r /home/you/mydir (mydir is a directory)
------------------
This space For Rent
chadm1967
11-12-2000, 10:18 AM
Thanks!!!
That did it.
http://www.linuxnewbie.org/ubb/smile.gif
D-Termind
11-12-2000, 11:59 AM
Originally posted by Derango:
the command is rm
For example, if you wanted to delete the file "bigfile" in the directory /home/you/ you would type rm /home/you/bigfile
You can also use this to delete directories...but that requires the use of the -r option For example rm -r /home/you/mydir (mydir is a directory)
Right now I am looking at different distros and each time I go to install a new one it tells me that I don't have enough space...because I'm still filled up from the last one.
How do I clear my drives for a new/fresh install?
BTW, I am installing on to 2x 1G drives.
TIA,
------------------
D-Termind
Sensei
11-12-2000, 12:36 PM
when you install a new distro you can play with the partition manager and delete or/and reformat partitions.
------------------
Sensei
LNO Seti Black Belts Team Stats
http://setiathome.ssl.berkeley.edu/stats/team/team_11027.html
Join the Linuxnewbie.org SETI Black Belts!
http://setiathome.ssl.berkeley.edu/cgi-bin/cgi?cmd=team_join_form&id=11027