Jump to content

How to make an "Alias" via console?


enb14
 Share

7 posts in this topic

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

 Share

×
×
  • Create New...