a file that represents another object in the file system

learn more… | top users | synonyms (1)

32
votes
2answers
42k views

List all defined aliases in Terminal

A friend who owned my current Mac before me created a lot of alias commands. Is there a way to list all defined aliases and the command that is associated with them? And if so, am I able to edit ...
16
votes
2answers
36k views

How do I create a symbolic link to a directory with a space in it?

I was trying to create a symbolic link using the following command: ln -s "~/Foo Bar/" Foo ... but it didn't work (i.e. when I go into finder and try double clicking it, it says that it's pointing ...
12
votes
1answer
6k views

What's the difference between alias and link?

I see that the size of alias is 167.7kB, whereas symbolic link is just 4kB. What's the difference between the two, or what's the purpose of them? Which one is preferable? For the case that the link/...
11
votes
2answers
10k views

How to create an alias with drag and drop?

In MacOSX, when dragging a file or folder one can force a copy instead of a move by pressing option. I think that there used to be a way to alternatively create an alias but can't find which key to ...
10
votes
1answer
1k views

Why are the alias so big in filesize in Mountain Lion?

I noticed the alias(es) that I create in Mountain Lion are very big in filesize (for example an alias to a folder is 5.8MB!) Compared to Leopard, they were just about 500KB. Why is this? and is ...
9
votes
2answers
32k views

Why must I source .bashrc every time I open terminal for aliases to work? [duplicate]

I added this line into my ~/.bashrc file. alias myserver='ssh davidfaux@davidfaux.com' However, when I open terminal and run myserver, terminal complains that -bash: myserver: command not found ...
8
votes
5answers
18k views

How to persistently define aliases in Terminal

I want to add aliases to my environment so that they are available in all Terminal instances. I got this answer: Yes, you can put it in your .bashrc, .bash_profile or .profile. On some systems ...
8
votes
2answers
300 views

How can I make a soft link in Lion?

I realized today that an alias is not the same thing as a soft link in Lion. I made an alias of a folder in my Dropbox folder and moved the alias to my Desktop. When I try to cd into this alias in ...
7
votes
2answers
20k views

Can I create a Desktop Shortcut/Alias to a Folder from the Terminal?

I'd like to create a desktop shortcut to a specific folder, buried deep within ~/Library/. Library is Hidden by default in Lion, and I'd like to keep it that way, for a variety of reasons. Is there a ...
6
votes
1answer
2k views

Adding SMB share to sidebar in OSX Mountain Lion

Is there a way to add an SMB share to the sidebar in Finder, such that when I click on the alias, it mounts the share and opens it up like a regular folder? You can do this in Linux and Windows, and ...
5
votes
4answers
7k views

How do I fix failed aliases?

I had two external hard disks: External and Backup. External had many aliases which pointed to other files on the same disk. Backup was used to backup External. External failed, and I now use Backup, ...
5
votes
1answer
1k views

Can an alias be added to the dock via the command line?

I found this article but it handles the GUI solution. I would like to automate the setup of a new machine, and do that I've created Dropbox shares of a number of my common configurations. (I could ...
5
votes
3answers
619 views

AppleScript to show package contents of hidden original of alias

I'm attempting to build an Automator workflow (which will be saved as a Service, so that I can both access it from contextual menus and invoke it with a keyboard shortcut), that will function much ...
4
votes
3answers
3k views

OS X won't create any symbolic links, creates aliases instead

No matter how I try to create an symbolic link OS X refuses to play along and instead creates an alias. I've tried several tools and also through the terminal using the ln command. I am on a fresh ...
4
votes
1answer
2k views

How to make an alias (Cmd-L) using command line?

With Finder, Cmd-L is a short-cut to make an alias of a file/directory. How can I use the command line to do that? I tried 'ln -s', but it generates the 'Symbolic Link', not 'Alias'.
4
votes
1answer
70 views

Using 'alias' in bash script in OSX

I write some scripting and I want to make it work on Linux and Mac. The problem is, that "Implementations of sed, readlink, zcat, etc. are different on OS X and Linux." So I tried THIS approach, but ...
4
votes
1answer
116 views

How to find all the aliases within a given file system?

I would like to avoid any future problems with aliases (empty files created with the Finder, not to be confused with symbolic links) I might have used in the past and which may stay within the system. ...
4
votes
3answers
3k views

Find a specific file with automator

The basic question is: How can I pass a filename to the Spotlight search module in Automator? The essential problem: I have hundreds of broken aliases scattered throughout a particular ...
4
votes
1answer
237 views

Difficulty setting the 'Open with app' to an alias

I am trying to set MacVim, installed via homebrew, to be the default HEX file editor. I started this task by creating an alias to MacVim.app located in /usr/local/Cellar/macvim/7.3-61 and placing the ...
4
votes
2answers
155 views

terminal custom commands source every time

After following this comment I added all my startup/alias commands to ~/.bashrc file and in ~/.bash_profile I added source ~/.bashrc But still my aliases are not working. I have to manually source ~/...
3
votes
5answers
1k views

Make shortcuts to directories via terminal

My problem is: whenever I'm coding, I work inside folders that are inside other folders and it's a long way to type: cd /folder1/folder2/.../folderN I know it's possible to make a shortcut to the ...
3
votes
4answers
1k views

How to go to alias from terminal?

By alias, I mean the folder shortcut created when you right-click a folder in Finder and select "Make Alias". I can traverse symbolic links in Terminal with cd, but it doesn't work on aliases: bash: ...
3
votes
2answers
583 views

Alias for network drive

In the Finder > Connect To Server window I have an IP address I connect to. Is there a way to make a nickname or alias for this server?
3
votes
1answer
27 views

How can I create an alias for Finder in OS X El Capitan?

I want to add a Finder shortcut to my Launchpad, but I am unable to do it. Is there any way to create an alias for Finder in OS X El Capitan?
3
votes
1answer
1k views

Why don't my aliases in .bashrc work?

I have Lion on my Mac Air. I wrote some aliases in ~/.bashrc file, which looks like: # Aliases alias p='pdflatex *.tex;open *.pdf' alias bromine='ssh administrator@bromine.org' I then sourced my ....
3
votes
2answers
1k views

How to move a folder containing aliases to another machine without breaking the aliases?

I've got a large folder of music with lots of aliases to tunes that are spread throughout subfolders of the main tunes folder. For example I might keep the original files sorted by artist, and then ...
3
votes
2answers
167 views

Created a symlink but Finder shows it as an Alias

When I try to backup my iPhone, iTunes gives me an error, saying that it cannot make a Backup because the backup is damaged or not compatible. To move the backup folder I have followed the steps as ...
3
votes
2answers
160 views

Trying to get a Symlink but it turns to be an Alias

I'm trying to move my Backup folder from the SSD to another internal HD via symlink using this command: ln -s /MacintoshHD/Backup ~/Library/"Application Support"/MobileSync the problem is, when i ...
3
votes
1answer
1k views

Apple alias in Mail and iCloud revealing my identity

I've set up a few email aliases in iCloud under pseudonyms. If I receive an email to one of them (e.g. "Alias Name <pseudonym@icloud.com>), and I try to reply in Mail for Mac, it uses the ...
2
votes
3answers
2k views

How to create a shortcut on the desktop to a selected folder

In windows when right clicking a folder there is an option: send to -> desktop (create shortcut). How can I do this on a Mac?
2
votes
2answers
251 views

make it easier to call often used terminal commands

I have a java tool that I use quite often from the command line but to use it I have to type java -jar dsim.jar. I want to make it so that I can call it just by typing dsim regardless of what ...
2
votes
2answers
4k views

How do I create a shortcut link from the dock to an application?

I'm trying to put a link to Outlook Express in my dock but can't see how it's done. When I right-click on the application icon in a finder window, "Make Alias" is not one of the options available, so ...
2
votes
2answers
915 views

How to make aliases go away when main file is deleted?

Is there a way to (automatically) delete all aliases when the file they are an alias to is deleted?
2
votes
1answer
63 views

Can't cd into alias

I have two aliases in my home directory: devbootcamp and bookshelf. I can cd into devbootcamp but not bookshelf but I'm not sure why. I don't remember how I made the alias to devbootcamp but I ...
2
votes
1answer
165 views

Adding a username alias using the command line

How do I add a username alias using the command line? I can do it fine using the preferences dialog through the "Advanced Options", but I need to do it during an installation script. Can someone ...
2
votes
2answers
12k views

How can I exit “bash”?

I don't know how to get my .profile aliases back in to the terminal every time I try them, this error massage comes up: apaw:~ apaw$ cdp -bash: cdp: command not found How do i exit this -bash? I ...
2
votes
1answer
117 views

How do I replace an alias by the original file it is linking to?

I have a folder containing several alias for pdf's that each have > 200 mb. Each pdf is in a different location on my drive. I need to compress all of those files. What is the fastest way to do it? ...
2
votes
2answers
407 views

Finder treating symbolic links differently than terminal MacBook Pro Retina OS X 10.9.4

I created symbolic link jboss7 for hard link jboss-as-7.1.1.Final-downloaded and it worked fine in Finder. Then I made backup before modifying JBoss... ln -s jboss-as-7.1.1.Final-downloaded jboss7 ...
2
votes
2answers
121 views

How to drag icon in Preview to a folder and copy instead of aliasing?

After downloading a PDF, Preview automatically opens and I'm able to look at the file. Often times I want to move the file to somewhere other than Downloads. In Mavericks I'm able to click on the ...
2
votes
2answers
4k views

How to make an alias link to a Windows server folder

On our server (windows 2012) we have a folder for Scan files called server/scans/(username). I know how to setup link from windows PC so that user can access the scans. How do I setup the same thing ...
2
votes
0answers
179 views

Spotlight not finding .app created with appify

I've used a script called appify described here https://mathiasbynens.be/notes/shell-script-mac-apps to create /Applications/Emacs.app that runs the actual Emacs.app at /usr/local/Cellar/emacs/24.4/...
2
votes
0answers
243 views

update to 10.8.3 from 10.7.5 broke many (all?) existing aliases

I depend a lot on aliases to files and folders. Just after upgrading, most of those I've checked, aliases that worked before the upgrade, fail now. I get the usual error message, "...the original ...
2
votes
1answer
730 views

can I point my Pictures folder to a folder in an external hard drive?

I would like to save some space on my laptop and to do so I was thinking of moving my Pictures folder on an external hard drive. As OSX doesn't want me to mess around with the main folders in my home, ...
2
votes
0answers
505 views

How can I use application aliases pointing to a secondary partition and launch them via Spotlight menu?

I have an SSD with two (bootable OS X) partitions. I don't want to have duplicate installations of most of my applications. So I made some OS X proprietary aliases in one of the two /Applications ...
2
votes
2answers
989 views

How to make Rsync copy alias files?

System specs: 2011 iMac, OS X Mountain Lion 10.8.4 I have come to understand that Rsync does not handle Mac Alises properly, and have now discovered that hundreds of aliases I've previously copied ...
1
vote
2answers
8k views

How do I use arguments together with bash aliases

Today, I learned the very handy trick: man [some command] -t | open -f -a Preview I'd like to create an alias in my .bash_profile file as a shortcut. In order for this to work, I need to pass an ...
1
vote
2answers
784 views

Can I create Windows-style alias in Finder?

In Windows, we can hold down Ctrl or use right mouse button while dragging the file in Explorer. When we release mouse button we see a menu where we can choose 'Create shortcut'. It's quite handy, I ...
1
vote
2answers
587 views

Can the Finder be tricked into assigning symlinks and aliases different icons?

It seems to me that the Finder does not (on the surface) distinguish between aliases and symbolic links. (In particular, in the Get Info window for a symlink the Finder claims the symlink is an alias.)...
1
vote
1answer
182 views

Add color to custom ls alias

I created an alias to display permissions in octet format: alias lso="ls -l | awk ' { k=0; for (i=0;i<=8;i++) k+=((substr($1,i+2,1)~/[rwx]/)*2^(8-i)); if (k) printf("%0o ",k); ...
1
vote
2answers
380 views

Alias to ssh and cd into a specific directory

I want an alias to SSH into another machine and then CD into a specific directory. I try: alias appl="ssh 9@lon.orb.com; cd /opt/tomcat/instances/" It does not work. Any ideas?