rm * -R
command to remove all the files I don''t need under Linux in order to be able again to boot the PC (we''ve got a kind of administrating system that only allows us 30Mo so that Linux''s windows managers refuse to start if the space disk is full). I know I mustn''t use this command if I dont wanna have problems but what the hell is it used for???
Thanks for your help.
Prog, Hex & Rock''n''Roll :
I don''t like the Prog but the Prog likes me.
Some nice poetry to sweeten your spirit and relax a bit before programming
Suspicious command. [beginner level]
Hi every-1.
I''ve been told by a stupid guy that I should use the
Prog, Games & Rock'n'Roll :I don't like the Prog but the Prog likes me.
It deletes all files in the current directory, and all sub-directories.
Most linux commands have a man page that you can look at to see what they do. In this case:
man rm
-------
Andrew
PlaneShift - A MMORPG in development.
man rm
quote:
NAME
rm - remove files or directories
...
OPTIONS
-r, -R, --recursive
remove the contents of directories recursively
...
-------
Andrew
PlaneShift - A MMORPG in development.
Just don''t do it when you''re logged in as root , sat in /
Superpig
- saving pigs from untimely fates, and when he''s not doing that, runs The Binary Refinery.
Enginuity1 | Enginuity2 | Enginuity3 | Enginuity4
ry. .ibu cy. .abu ry. dy. "sy. .ubu py. .ebu ry. py. .ibu gy." fy. .ibu ny. .ebu
Superpig
- saving pigs from untimely fates, and when he''s not doing that, runs The Binary Refinery.
Enginuity1 | Enginuity2 | Enginuity3 | Enginuity4
ry. .ibu cy. .abu ry. dy. "sy. .ubu py. .ebu ry. py. .ibu gy." fy. .ibu ny. .ebu
Richard "Superpig" Fine - saving pigs from untimely fates - Microsoft DirectX MVP 2006/2007/2008/2009
"Shaders are not meant to do everything. Of course you can try to use it for everything, but it's like playing football using cabbage." - MickeyMouse
We used to have this problem at school too. Do you have a web browser that you can run from this account? You should delete the cache for this program if you do and then use the preferences to set the cache size to something like 5 M. You probably don't want to rm -R in any old place .
I'd find the music files, mpgs, binary files, etc that you don't need and get rid of those using "rm blahblah.mpg", etc.
You probably have a quota program on that system so you can type "quota" to see how much space you are currently using.
RandomTask
[edited by - RandomTask on October 14, 2003 6:49:20 PM]
I'd find the music files, mpgs, binary files, etc that you don't need and get rid of those using "rm blahblah.mpg", etc.
You probably have a quota program on that system so you can type "quota" to see how much space you are currently using.
RandomTask
[edited by - RandomTask on October 14, 2003 6:49:20 PM]
quote: Original post by superpig
Just don''t do it when you''re logged in as root , sat in /
Just be careful with that command regardless. I, unfortunately, have personal experience that a little typo like "rm -R ~ /someDir" can be disasterous. In the hands of root it just gets worse.
Once I was in / and I wanted to edit an important system file. I don''t know what I was thinking, but instead of typing vi filename, I typed rm filename. Luckily, I found a little tool which generated that system file.
Zorx (a Puzzle Bobble clone)Discontinuity (an animation system for POV-Ray)
Thank you all for your advice. The f***er who told me that nonsense will be thoroughly broken into pieces.
Prog, Hex & Rock''n''Roll :
I don''t like the Prog but the Prog likes me.
Some nice poetry to sweeten your spirit and relax a bit before programming
Prog, Hex & Rock''n''Roll :
I don''t like the Prog but the Prog likes me.
Some nice poetry to sweeten your spirit and relax a bit before programming
Prog, Games & Rock'n'Roll :I don't like the Prog but the Prog likes me.
Yeah, rm can be evil if you make a typo.
A friend was in his source dir, and he wanted to delete all his .o files, so he typed:
rm -f * .o (notice the space between * and .o)
Needless to say, he deleted all his source...
Height Map Editor | Eternal Lands | Fast User Directory
A friend was in his source dir, and he wanted to delete all his .o files, so he typed:
rm -f * .o (notice the space between * and .o)
Needless to say, he deleted all his source...
Height Map Editor | Eternal Lands | Fast User Directory
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement