Help - Search - Members - Calendar
Full Version: How to make an "Alias" via console?
InsanelyMac Forum > Discuss and Learn > *nix > Darwin
enb14
Hi guys I would like to know how I can create an Alias via console and how can I edit an existing one.
macgirl
for all users in /etc/bashrc

for just one user in their own home directory .bashrc

just add the aliases, example:
alias dir='ls -alFG'
alias rm='rm-i'
enb14
QUOTE (macgirl @ Mar 12 2006, 10:13 PM) *
for all users in /etc/bashrc

for just one user in their own home directory .bashrc

just add the aliases, example:
alias dir='ls -alFG'
alias rm='rm-i'



For example if I wanna create an alias for Unreal Tournament 2004 (ut2004.app) located in

/Volumes/my_Partition/ut2004.app/Contents/MacOS/Unreal Tournament 2004

File to the called by this alias

/Volumes/my_Partition/ut2004.app/System/ut2004-mac-bin

How should I procede?
macgirl
Oh, that kind of alias.

There are to ways, in Finder you select the file and with the Option (Windows) key and Command (Alt) key presed together you drag it to any place you want and automatically it creates an alias of the file, you can move it to whatever you want and rename it as whatever you want.

The other way (the unix way) is this, inTerminal type:

ln -s /path-to-file/real-file /path-to-resulting-file/new-file

ln command create a link.
enb14
Thank you very much, I'll try it tonight.
bluedragon1971
By the way, this is also an excellent way to share an iPhoto or iTunes library between several users on the same system, assuming they both belong to a group that has read-write access to the folder.
blackentangled
lol, what's an "alias"? a 'lil enlightenment would do...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.