Re: [newbie] rm-command

2003-12-26 Thread Adolfo Bello
On Thu, 2003-12-25 at 14:03, Kaj Haulrich wrote:
> On Thursday 25 December 2003 16:09, Paul wrote:
> > On 12/25/2003 04:43 PM, Christoph Eckert wrote:
> > >Well, I never do a general ./*
> > >
> > >I always make ls -l and then tell rm to remove - for example -
> > >textfile*.txt.
> > >
> > >I once deleted the content of one whole directory, and since
> > >then I never did this stupid * stuff ;-) .
> >
> > That is _the_ way to learn... My way was the same way, except it
> > was my $HOME. With subdirs... *grin*
> > That is also when my paranoia with backups paid off!
> > Paul
> 
> Allow me to quote the legendary Civileme :
> 
> 
> 
> rm -r /whateverdirectoryname/and/path -f
> the -r is for recursive (i. e. descend into subdirectories) and the 
> -f is for force without asking, While
> 
> rm -rf /whateverdirectoryname/and/path
> 
> will work to the same effect, it is considered bad form.  Imagine 
> that you type this far
> 
> rm -rf /
> 
> and then the household cat launches for your desktop and plops a fat 
> paw on the enter key.  Your entire filesystem(s) are bye-bye, even 
> /mnt/windows_c if you happen to have one and it is writeable.
> 
> Aside from having the household cat for supper, there is no 
> compensation, and of course even less when you fat-finger the enter 
> key yourself.  Take it from someone who has committed that faux 
> pas.
> 
> Civileme
> 
> 
> 
> Merry Christmas all !
> 
> Kaj Haulrich.

Wow! I like it.

I was typing 'rm /any/dir' and adding the '-rf' switches afterward to
get 'rm -rf /any/dir'.

Thanks a lot, Kaj.

-- 
Adolfo A. Bello B. <[EMAIL PROTECTED]>
Make your posts more effective. Learn how at
http://mandrake.vmlinuz.ca/bin/view/Main/MandrakeMailingListEtiquette


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] rm-command

2003-12-25 Thread robin
Christoph Eckert wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Am Donnerstag, 25. Dezember 2003 16:37 schrieb robin:


typing something like "rm ./*"


Well, I never do a general ./*

I always make ls -l and then tell rm to remove - for example - 
textfile*.txt.

Actually I was thinking more of something like that - if I have a 
directory with a load of HTML files and JPGs and only want to get rid of 
the JPGs, then something like

rm -f *.jpg

is a blessing.

In the case I mentioned, my mistake of being in the wrong directory was 
compounded by the fact that the files I wanted to remove were all named 
something like ???efjh234, so I typed "rm -f ./?*", forgetting that "?" 
is also a regular expression!  One of the most embarrassing moments of 
my computing life.

BTW, Civileme's implicit advice to put in the full path is very sound.

Sir Robin

--
"Certitude is possible for those who only own one encyclopedia."
- Robert Anton Wilson
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] rm-command

2003-12-25 Thread robin
Kaj Haulrich wrote:
On Thursday 25 December 2003 16:09, Paul wrote:

On 12/25/2003 04:43 PM, Christoph Eckert wrote:

Well, I never do a general ./*

I always make ls -l and then tell rm to remove - for example -
textfile*.txt.
I once deleted the content of one whole directory, and since
then I never did this stupid * stuff ;-) .
That is _the_ way to learn... My way was the same way, except it
was my $HOME. With subdirs... *grin*
That is also when my paranoia with backups paid off!
Paul


Allow me to quote the legendary Civileme :



rm -r /whateverdirectoryname/and/path -f
the -r is for recursive (i. e. descend into subdirectories) and the 
-f is for force without asking, While

rm -rf /whateverdirectoryname/and/path

will work to the same effect, it is considered bad form.  Imagine 
that you type this far

rm -rf /

and then the household cat launches for your desktop and plops a fat 
paw on the enter key.  Your entire filesystem(s) are bye-bye, even 
/mnt/windows_c if you happen to have one and it is writeable.

True - never understimate the power of cats, children and spouses.  and 
never type "su" when you've had a few.

Sir Robin

--
"Certitude is possible for those who only own one encyclopedia."
- Robert Anton Wilson
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] rm-command

2003-12-25 Thread Ronald J. Hall
On Thursday 25 December 2003 01:03 pm, Kaj Haulrich wrote:

-> Allow me to quote the legendary Civileme :

He ruled - I miss him on this list... :-)

-- 

   /\
 Dark>Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] rm-command

2003-12-25 Thread Kaj Haulrich
On Thursday 25 December 2003 16:09, Paul wrote:
> On 12/25/2003 04:43 PM, Christoph Eckert wrote:
> >Well, I never do a general ./*
> >
> >I always make ls -l and then tell rm to remove - for example -
> >textfile*.txt.
> >
> >I once deleted the content of one whole directory, and since
> >then I never did this stupid * stuff ;-) .
>
> That is _the_ way to learn... My way was the same way, except it
> was my $HOME. With subdirs... *grin*
> That is also when my paranoia with backups paid off!
> Paul

Allow me to quote the legendary Civileme :



rm -r /whateverdirectoryname/and/path -f
the -r is for recursive (i. e. descend into subdirectories) and the 
-f is for force without asking, While

rm -rf /whateverdirectoryname/and/path

will work to the same effect, it is considered bad form.  Imagine 
that you type this far

rm -rf /

and then the household cat launches for your desktop and plops a fat 
paw on the enter key.  Your entire filesystem(s) are bye-bye, even 
/mnt/windows_c if you happen to have one and it is writeable.

Aside from having the household cat for supper, there is no 
compensation, and of course even less when you fat-finger the enter 
key yourself.  Take it from someone who has committed that faux 
pas.

Civileme



Merry Christmas all !

Kaj Haulrich.
-- 
** Sent from a 100 % Microsoft-free computer **


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] rm-command

2003-12-25 Thread Paul
On 12/25/2003 04:43 PM, Christoph Eckert wrote:

Well, I never do a general ./*

I always make ls -l and then tell rm to remove - for example - 
textfile*.txt.

I once deleted the content of one whole directory, and since 
then I never did this stupid * stuff ;-) .

That is _the_ way to learn... My way was the same way, except it was my 
$HOME. With subdirs... *grin*
That is also when my paranoia with backups paid off!
Paul

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] rm-command

2003-12-25 Thread Christoph Eckert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Donnerstag, 25. Dezember 2003 16:37 schrieb robin:

> typing something like "rm ./*"

Well, I never do a general ./*

I always make ls -l and then tell rm to remove - for example - 
textfile*.txt.

I once deleted the content of one whole directory, and since 
then I never did this stupid * stuff ;-) .


Gruß / regards


ce

==
Jabber: [EMAIL PROTECTED]

SuSE 8.0 on a Dell Inspiron 8200:
http://home.t-online.de/home/mchristoph.eckert/inspiron8200/
==


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/6wWogCBqix845w0RAlGPAJ9rHnwYgLzzuzh99WKZvnVKDjmYKACfSWMW
5H8n520NFyzk7Q/mw8p9byM=
=tix+
-END PGP SIGNATURE-


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] rm-command

2003-12-25 Thread robin
Paul wrote:
On 12/25/2003 02:36 PM, Christoph Eckert wrote:

On my Mandrake 9.2 box, every time I try to use rm on multiple files, 
I get asked if I really want to remove the file(s).

The default behaviour of rm is, not to ask.

Can I disable this question in any manner?
 

Have a look at $HOME/.bashrc.
There probably is an alias in it stating alias rm='rm -i'
Replace that by alias rm='rm' and you are fine.
Personally I wouldn't do that.  The time consumed by typing "rm -f" 
instead of "rm" is infinitessimal compared to the time consumed by 
typing something like "rm ./*" then realising you're in the wrong 
directory! (I once got my terminal sessions mixed up and thought I was 
in /mnt/floppy when I was actually telnetting to my web server - bye bye 
website!)

Sir Robin

--
"Certitude is possible for those who only own one encyclopedia."
- Robert Anton Wilson
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] rm-command

2003-12-25 Thread Christoph Eckert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Donnerstag, 25. Dezember 2003 15:42 schrieb Manolo Canga:

>  /etc/profile.d/alias.sh

many thanks, I just found it occasionally.

Changed the file and will see after a relogin if it behaves as 
I'd like it to.


Gruß / regards


ce

==
Jabber: [EMAIL PROTECTED]

SuSE 8.0 on a Dell Inspiron 8200:
http://home.t-online.de/home/mchristoph.eckert/inspiron8200/
==


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/6viqgCBqix845w0RAkrHAJ9N19+hb87+7S7Bk56uJrhUNn8a/gCfZMuf
xaz1RuRIIKWgnlaPBI11CfI=
=ZzR4
-END PGP SIGNATURE-


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] rm-command

2003-12-25 Thread Manolo Canga
El Jueves, 25 de Diciembre de 2003 14:46, Paul escribió:
> Have a look at $HOME/.bashrc.
> There probably is an alias in it stating alias rm='rm -i'
> Replace that by alias rm='rm' and you are fine.


 /etc/profile.d/alias.sh


-- 
Manolo Canga
Mi Jabber: [EMAIL PROTECTED]
Mi web: http://bailandodesvan.webcindario.com
Tu Fortuna:
 # <--- Raspa para saber el premio


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] rm-command

2003-12-25 Thread Christoph Eckert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Donnerstag, 25. Dezember 2003 14:46 schrieb Paul:

> Have a look at $HOME/.bashrc

unfortunately, I have had a look to $HOME/.bashrc, 
$HOME/.profile, /etc/bashrc and /etc/profile.

But there are some aliases in /etc/profile.d/alias.sh.

I changed the file according to my wishes, but unfortunately 
it didn't yet result as wanted. Maybe I'll have to login 
anew, will test this later.

Many thanks for your hint so far (and merry Xmas of courese 
;-).


Gruß / regards


ce

==
Jabber: [EMAIL PROTECTED]

SuSE 8.0 on a Dell Inspiron 8200:
http://home.t-online.de/home/mchristoph.eckert/inspiron8200/
==


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/6vYJgCBqix845w0RAujrAJ9IcVE/qyvRxlABPdzxsF3xsb+umgCdGyfu
YxebxhVCxSXnGEDrRbbZG5k=
=xMzS
-END PGP SIGNATURE-


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] rm-command

2003-12-25 Thread Paul
On 12/25/2003 02:36 PM, Christoph Eckert wrote:

On my Mandrake 9.2 box, every time I try to use rm on multiple 
files, I get asked if I really want to remove the file(s).

The default behaviour of rm is, not to ask.

Can I disable this question in any manner?
 

Have a look at $HOME/.bashrc.
There probably is an alias in it stating alias rm='rm -i'
Replace that by alias rm='rm' and you are fine.
Paul

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] rm-command

2003-12-25 Thread Manolo Canga
El Jueves, 25 de Diciembre de 2003 14:36, Christoph Eckert escribió:
> On my Mandrake 9.2 box, every time I try to use rm on multiple
> files, I get asked if I really want to remove the file(s).
>
> The default behaviour of rm is, not to ask.
>
> Can I disable this question in any manner?

use: rm -f 

-- 
Manolo Canga
Mi Jabber: [EMAIL PROTECTED]
Mi web: http://bailandodesvan.webcindario.com
Tu Fortuna:
Los viejos quimicos nunca mueren, simplemente dejan de reaccionar.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


[newbie] rm-command

2003-12-25 Thread Christoph Eckert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Hi,


short question:

On my Mandrake 9.2 box, every time I try to use rm on multiple 
files, I get asked if I really want to remove the file(s).

The default behaviour of rm is, not to ask.

Can I disable this question in any manner?


Gruß / regards


ce

==
Jabber: [EMAIL PROTECTED]

SuSE 8.0 on a Dell Inspiron 8200:
http://home.t-online.de/home/mchristoph.eckert/inspiron8200/
==


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/6ufSgCBqix845w0RAj9RAJ9O2KxLukFeqV0Sp6iOxa4DI5XrRgCgh8VM
gyywV3TKtpDcpdzT2LBo9xk=
=NLQ3
-END PGP SIGNATURE-


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com