Mailinglist Archive: opensuse (924 mails)

< Previous Next >
Re: [opensuse] add prompt to rm command
  • From: Cristian Rodríguez <crrodriguez@xxxxxxxxxxxx>
  • Date: Mon, 22 Oct 2012 00:43:25 -0300
  • Message-id: <>
El 18/10/12 04:25, e-letter escribió:

How to add a verification prompt to the command 'rm', asking whether
the file is really to be deleted?

That happends when you use the wrong shell, do not do that ! :-)

use something proper like ZSH.

$ rm *
zsh: sure you want to delete all the files in ./logs [yn]?

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups