[Gllug] Query on Aliases
Richard Hall
r.j.hall at rhul.ac.uk
Tue Aug 3 15:31:52 UTC 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
andrew wrote:
| Hi
| I have noticed on my machine (Mandrake 9 ) that an number of aliases are
| defined as
| alias mv='mv -i'
| I find this rather confusing and dangerous - if you get into the habit
| of doing mv and assuming it has a -i you might get a nasty shock on
| someone elses machine that doesnt have this defined.
|
| If I define another alias based on mv it picks up the -i version.
|
| How can I define an alias based on the vanilla mv (ie not -i)
|
|
if you don't want the alias set then remove it from the config files.
Assuming your using bash shell it's usually in /etc/profile or
/etc/bash.bashrc for system wide settings or ~/.bashrc, ~/.profile for
user defined bash settings. if you don't want it set for new users you
may need to change it in /etc/skel/ as well as this is where the new
home directories are modeled from. Alternativly typing \mv at the
command prompt will ensure it is using the actual mv rather than the alias.
Rich
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBD6/oGsqIEvBVvy8RAp67AJ99RkIkm8lfw1RrqVv/zE7cXq1W/QCfSUYy
L+Yqc8fzxn2KSkpDPIsEky0=
=duZL
-----END PGP SIGNATURE-----
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list