How do you delete stuff off linux? I just put linux on my compute and i was wondering how to remove some files that are causeing me trouble.
Printable View
How do you delete stuff off linux? I just put linux on my compute and i was wondering how to remove some files that are causeing me trouble.
rm to remove a file
&
rmdir to remove a directory
try rm --help to explain all the switches
SittingDuck
thanx, now i can instal x windows and pretend i got windows 95 again :D woohoo!
rm -rf directoryname
will remove the contents of a directory recursively, and the diretory itself, without prompting for confirmation...a real time saver. (yes i'm SURE i want to delete that!)
btw, /dev/null/ is the trash bin in linux right?! im wondering cuz i cant find it, heh..
the console says that the dir doesn't exist..
anyone know whats wrong??
In linux, null isn't a directory, it's a device (a filetype). Just like your modem, only your modem sends information out to a destination, null sends information to oblivion.Quote:
Originally posted here by Mephisto
btw, /dev/null/ is the trash bin in linux right?! im wondering cuz i cant find it, heh..
the console says that the dir doesn't exist..
anyone know whats wrong??
The correct path would be:
/dev/null
(no trailing slash. the console was giving you an error because null isn't a directory, it's a device).