Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use an alias' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use an alias
Authored by: crackpip on Oct 14, '02 08:56:35PM

In general it isn't recommended to alias rm -i as rm. The reason for this is that you can get used to relying on it and if you move to another machine or some other situation where your resource file isn't loaded, then you can make a big mistake. Instead its recommended to use an alias like,

alias rmi `rm -i`



[ Reply to This | # ]
Use an alias
Authored by: charles488 on Oct 16, '02 08:26:25PM

Another safer option is to use the alias del 'rm -i' instead of alias rm 'rm -i'. You might also want to add the aliases copy 'cp -i' and move 'mv -i' while
your at it which will provide the same type of warning for the cp and mv commands.



[ Reply to This | # ]