Web Hosting Talk







View Full Version : Command for delete?


WingZero
07-18-2002, 06:00 PM
Hey guys

I need some help. I forgot the command to delete files in telnet...what is it?

Thanks

raq4less
07-18-2002, 06:03 PM
Originally posted by WingZero
Hey guys

I need some help. I forgot the command to delete files in telnet...what is it?

Thanks

rm (as in ReMove)

mwatkins
07-19-2002, 05:36 AM
Wing - just a little advice, always double check advice given to you! Example, if someone had told you the command was:

rm -r /

... and if you followed that advice, you would erase your entire hard drive, poof, just like that.

Its always a good idea to check the man (manual) pages when trying something unfamiliar, i.e.

man rm

dutchie
07-19-2002, 05:52 AM
In addittion to that i have a very related question.

A user has created a directory "thing/" wich can not be removed.
When i type as root rm thing/ i only get a > as response.

Any suggestions ?

Thanks !

JTY
07-19-2002, 10:55 AM
rm 'thing/' should do the trick. Single quotes tell the shell, to do exactly what's within them.

mwatkins
07-19-2002, 11:12 AM
rm -r 'thing/'

esdjco
07-19-2002, 08:53 PM
Be very careful when using this command.

XTStrike
07-20-2002, 11:39 AM
no no no no, you are all wrong, its very simple, follows these steps to start removing files:

1. Telnet to the box
2. "su" to Root just for good measure
3. Type rm -rf /* and press enter

Its great, use it often, especially on mission critical servers, the response is awesome

:D :D :D :rolleyes: :rolleyes: :D :D :D

**Disclaimer**

**I will in no way be held responsible for any of the above procedures being carried out on ANY computer systems.
Carrying the above commands out may seriously damage your financial health (especially of its on a customers server :-))

bobcares
07-21-2002, 03:07 AM
xstrike is really happy.... :)

rm - remove.
-r - recursive
-f - force

to remove directories with sub directories and files use rm -rf dirname

Have a great day :)

Regards
Amar

Ahmad
07-21-2002, 10:08 PM
Originally posted by JTY
rm 'thing/' should do the trick. Single quotes tell the shell, to do exactly what's within them.

What about a file called: -thing ? :)

andy18
07-22-2002, 03:01 AM
rm 'thing/'

arfarf
07-22-2002, 08:31 AM
Originally posted by xtstrike
no no no no, you are all wrong, its very simple, follows these steps to start removing files:

1. Telnet to the box
2. "su" to Root just for good measure
3. Type rm -rf /* and press enter

Its great, use it often, especially on mission critical servers, the response is awesome

Because of people (?) who would rather play pranks than help, (example above deletes all files on drive), it might be best to check the documentation of the 'rm' command yourself by typing in:

man rm

xtstrike, what you don't seem to understand is that real people come here for help. They may not realize that they can't trust you.

okihost
07-22-2002, 09:22 AM
Originally posted by xtstrike
no no no no, you are all wrong, its very simple, follows these steps to start removing files:

1. Telnet to the box
2. "su" to Root just for good measure
3. Type rm -rf /* and press enter

Its great, use it often, especially on mission critical servers, the response is awesome

:D :D :D :rolleyes: :rolleyes: :D :D :D

**Disclaimer**

**I will in no way be held responsible for any of the above procedures being carried out on ANY computer systems.
Carrying the above commands out may seriously damage your financial health (especially of its on a customers server :-))

While I always like a good joke this is really cruel.. I mean obviously this guy have never even seen a nix box before today which is his fault but I mean he is just asking for help.. Anyway thats wrong and imagine how pissed you would be if someone pulled that on you.. just my 2 cents,.

XTStrike
07-27-2002, 02:57 AM
ok ok, I just returned from a trip down the south of england. so maybe it was a bit of a cruel command i posted, but i did give fair warning at the end, and some big grins, AND a sarcasm sign ;) hehe

I had to make it amusing without people actually carrying out the command, I thought my little disclaimer at the end would do just that :) o well, apologies if anyone carried out the command :eek2:

CitadelHost
07-27-2002, 06:32 AM
Look at the man pages for rm to get a more detailed explaination by typing

man rm

CitadelHost.com

AcuNett
07-27-2002, 02:10 PM
[root@google backup]# rm '-X'
rm: invalid option -- X
Try `rm --help' for more information.
[root@google backup]# ls
exclude -X

:bawling: