a file that represents another object in the file system

learn more… | top users | synonyms (1)

11
votes
1answer
2k 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 ...
9
votes
2answers
12k 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 ...
9
votes
2answers
6k views

List all defined aliases in Terminal

A friend who owned my current mac before me (I bought it from him) created a lot of alias commands. Is there a way of me being able to list all defined aliases and the command that is associated with ...
8
votes
2answers
291 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 ...
8
votes
1answer
629 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 ...
6
votes
1answer
10k views

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

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 ...
5
votes
4answers
4k 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
3answers
79 views

AppleScript to show package contents of hidden original of alias

I'm writing an AppleScript that will be run from within Automator, because ultimately I will define a keyboard shortcut to call it as a Service. I don't know any way to have a Service appear in an ...
4
votes
2answers
8k 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 ...
4
votes
1answer
1k 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
81 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
1answer
162 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 ...
4
votes
1answer
1k 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 ...
3
votes
2answers
720 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 ...
3
votes
2answers
363 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
2answers
633 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
1answer
934 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
3answers
946 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 ...
3
votes
1answer
505 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
959 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
175 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
638 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
2answers
2k 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
1answer
45 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
3k 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
2answers
113 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
2answers
11 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
0answers
223 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
347 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
322 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 ...
1
vote
2answers
443 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
432 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 ...
1
vote
1answer
90 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
113 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?
1
vote
3answers
333 views

How to force a diff format for TextMate?

I have this alias: alias hgd='hg diff|mate' The problem is that for some reason the temporary file thus created will be a .txt, while I'd need it to have the diff syntax highlight. If I manually ...
1
vote
3answers
349 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 ...
1
vote
1answer
48 views

Finding Where Alias Points Even With Deleted File

Can I find where an alias was pointing to, if the file is deleted?
1
vote
1answer
213 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 ...
1
vote
1answer
96 views

How to edit Symbolic Links in OS X?

I had painstakingly gone through and created symlnks to a whole host of files in my system. I couldn't use aliases because they were failing to be copied with RSync, and also certain apps I use to ...
1
vote
1answer
761 views

How to send an email through an outlook.com alias email address on iOS?

Outlook.com (past Live Mail / Hotmail) allows creation of email aliases associated to one main account, which is very convenient. Using Exchange ActiveSync with an iOS device works really well on all ...
1
vote
1answer
99 views

Is there an application that can check for broken aliases in Finder?

I use a lot of aliases in my file system. Many original documents are placed in global repositories and I access them by aliases grouped in "tag" folders. Therefore, when I need to delete such a ...
1
vote
1answer
172 views

How come compiling my .tex file with my alias is lagging?

I have written an alias in ~/.bashrc to compile my tex files into pdfs. I am sure that ~/.bashrc is sourced. alias p='rm -f *.pdf *.log *.aux;pdflatex *.tex;open *.pdf' However, after I edit my ...
1
vote
1answer
611 views

Getting Automator to work with aliases vs. symbolic links on SMB shares

I would like to get automator to mount a volume in a shared SMB server and get all subfolders symlinked within my Documents folder. I thought I could do that easily by creating Finder's so called ...
1
vote
1answer
840 views

“readlink” gets the original path of a symlink; what's the equivalent for Mac aliases?

In the terminal, I can use readlink on a symlink and it prints the target path of the symlink. E.g. ln -s original.txt symlink.txt readlink symlink.txt # prints original.txt How do I do this for ...
1
vote
2answers
256 views

Alias\symbolic link icons

I installed Mavericks on an external SSD drive and now want to point my music, pictures and video to ones on my previous drive. I created a link using ln command, a link was created. I launched ...
1
vote
0answers
45 views

Maintaining alias links when moving original files across drives

When I move the original file that an alias point to, the alias is still able to find the file in it's new position. But not when I move the original files across drives. I'd like to move a bunch of ...
0
votes
3answers
1k 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 ...
0
votes
2answers
3k 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 ...
0
votes
1answer
17 views

How to create an alias for IP address for JDBC connection?

I have the “db” alias in my JDBC connection specified in the Java properties file for MYSQL. This alias does not currently work on my local computer. I would like not to change the properties file ...
0
votes
1answer
35 views

Find the target of an alias or link in Quicksilver

Can I find the target of an alias or symbolic link using Quicksilver? I don't find a way to do so on this Quicksilver reference which is the best source I know of at this point.