john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Linux alias an executable for an easier name much like a shortcut

linux-alias-an-executable-for-an-easier-name-much-like-a-shortcut

Alias has been defined as a "parameterless macro"

.bashrc, .bash_aliases or .profile are the locations for the default aliases

NOTE: Aliases created in a shell will not survive across a reboot and an alias created in one shell will not work in another shell.

Thus you must create a nabackup of one of the above 3 files, then modify them... NOTE: normal users keep the above 3 files in /home/username, root is usually at /root sudo su uses the root profile settings...

Then reload them type . .bashrc or . .bash_aliases Note that this is a dot (".") followed by a space and another dot and the file name.

ls is actually an alias, but we can modify it such that alias ls='ls -al'

e.g. use aomx instead of the long command...

alias aomx='WINEPREFIX="/home/paul/.wine " wine "C:\Program Files\Microsoft Games\Age of Mythology\aomx.exe"'


  • « Linux authenticate against windows active directory ldap
  • Apache vsftpd sharing mount links »

Published

Feb 6, 2010

Category

linux

~138 words

Tags

  • a 23
  • alias 1
  • an 5
  • easier 1
  • executable 2
  • for 18
  • like 2
  • linux 249
  • much 1
  • name 5
  • shortcut 3