Unix/Linux

Bash Shell: Ignore Aliases / Functions When Running A Command

steloflute 2012. 6. 28. 17:22
http://www.cyberciti.biz/faq/ignore-shell-aliases-functions-when-running-command/

 

How to ignore aliases or functions when running a command?

Simply use command called command as follows to ignore aliases or functions. For example, on my system I've following alias set:
alias apt-get='apt-get update && apt-get upgrade'

To ignore apt-get alias, enter:
command apt-get -y install

You can also use any one of the following syntax:
\apt-get -y install
"apt-get" -y install

Both \ and " symbols allows you to run real apt-get command and ignore apt-get alias.

 

 

'Unix/Linux' 카테고리의 다른 글

Cygwin SSHD HowTo (On Windows)  (0) 2012.07.13
Bash For Loop Examples  (0) 2012.06.28
Sh - the Bourne Shell  (0) 2012.06.27
Performing Math calculation in Bash  (0) 2012.06.27
Cygwin - Get that Linux feeling - on Windows!  (0) 2012.06.18