cp interactive by default

Marcelo Magno T. Sales marcelo.sales at sefaz.pe.gov.br
Tue Oct 11 18:52:36 UTC 2005


Hi,

Em Ter, 2005-10-11 às 11:43 -0700, Brian D. McGrew escreveu:
> I have an entry in ~/.bash_alias
> 
> cp () {
>     /bin/cp -i $*
> }
> 
> So when I call cp it's a shell function that executes the above command
> and I can override it with an absolute call of /bin/cp.
> 
> -brian
> 
> Brian D. McGrew ( brian at visionpro.com || brian at doubledimension.com )
> ---
> > Those of you who think you know it all,
>   Really annoy those of us who do.
> 
> -----Original Message-----
> From: fedora-list-bounces at redhat.com
> [mailto:fedora-list-bounces at redhat.com] On Behalf Of Paul Smith
> Sent: Tuesday, October 11, 2005 11:41 AM
> To: For users of Fedora Core releases
> Subject: cp interactive by default
> 
> Dear All
> 
> Is there some way of setting, by default, the interactive mode for
> command cp?
> 
> Thanks in advance,
> 
> Paul

Or you can just create an alias:
alias cp='cp -i'

Add the above line to ~/.bashrc if you want to setup this for your user
only, or add it to /etc/bashrc for all users.

[]'s
Marcelo




More information about the fedora-list mailing list