Jump to content
InsanelyMac Forum
enb14

How to make an "Alias" via console?

Recommended Posts

Hi guys I would like to know how I can create an Alias via console and how can I edit an existing one.

Share this post


Link to post
Share on other sites
Advertisement

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'

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.



×