I was having a problem in a shell script that turned out to be cp being aliased to 'cp -i'. Not a showstopper, once you realise it, but it did beg the question as to where this file is. I was told to look in /etc/profile.d, but that doesn't seem to be the case on my CentOS box. I can list aliases, so I know the file exists, but where? Anne -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. URL: <http://lists.centos.org/pipermail/centos/attachments/20081108/88aad187/attachment-0004.sig>
On Sat, Nov 8, 2008 at 10:57 AM, Anne Wilson <cannewilson at googlemail.com> wrote:> I was having a problem in a shell script that turned out to be cp being > aliased to 'cp -i'. Not a showstopper, once you realise it, but it did beg > the question as to where this file is. I was told to look in /etc/profile.d, > but that doesn't seem to be the case on my CentOS box. I can list aliases, so > I know the file exists, but where? >Try /etc/profile. mhr
Ignacio Vazquez-Abrams
2008-Nov-08 19:00 UTC
[CentOS] Where is the file that sets aliases?
On Sat, 2008-11-08 at 18:57 +0000, Anne Wilson wrote:> I was having a problem in a shell script that turned out to be cp being > aliased to 'cp -i'. Not a showstopper, once you realise it, but it did beg > the question as to where this file is. I was told to look in /etc/profile.d, > but that doesn't seem to be the case on my CentOS box. I can list aliases, so > I know the file exists, but where?~/.bashrc FTR, you can use \cp to get around this. -- Ignacio Vazquez-Abrams <ivazqueznet at gmail.com> PLEASE don't CC me; I'm already subscribed -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20081108/26155e53/attachment-0004.sig>