Questions tagged [alias]

Use this tag for questions concerning use of alias in macOS

Filter by
Sorted by
Tagged with
24
votes
1answer
10k 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 ...
25
votes
2answers
13k 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/...
18
votes
7answers
45k 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 the ...
10
votes
6answers
5k 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
1k views

How to use AppleScript in a bash script to create an alias for an app?

I need to create an alias on my Desktop to an app in my Applications folder, using a bash script file. As far as I know, it's only possible with AppleScript. Unfortunately, my AppleScript skills are ...
107
votes
2answers
184k views

How can I list and edit 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 ...
28
votes
2answers
102k 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 ...
17
votes
5answers
38k 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 ...
22
votes
2answers
25k 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
2answers
2k 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 ...
7
votes
4answers
11k 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
4answers
4k views

Sierra Finder aliases appearing as generic icons

Since updating to macOS Sierra, many Finder aliases appear as generic document icons rather than as the informative icons that were available in previous versions of OS X. Is there something I can do ...
6
votes
4answers
6k 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
4k 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 ...
2
votes
1answer
351 views

Recreate an alias with the same name and timestamp programmatically

Let us develop a utility to batch process legacy alias files. Implemented as: Finder File Service, Automator Workflow, Applescript, Shellscript, or whatever else that those the job. Per each file ...
1
vote
2answers
66 views

Recreate old aliases in bulk to reduce their file size, keeping their name and creation date

I noticed that in recent versions of macOS, aliases I create are smaller than they used to be. I have a folder full of old aliases whose sizes range from 50 KB to 6 MB, but new aliases seem to be ...
1
vote
1answer
4k 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 ...
0
votes
1answer
441 views

MacOS Sierra vs my installer DMG's icon

I am distributing my (heavily edited in the picture below) app via a read-only installer DMG. Both the app and the DMG are signed and pass the Gateway validation. My build machine is an El Capitan 10....
3
votes
1answer
5k views

How do I change the icon of an alias to a custom ICO file?

I've created a couple of aliases to Wine executables that I put in my dock, but by default they're all coming up with the standard page icon. I would like to customize these icons using custom ICO ...
2
votes
2answers
5k 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
3k views

Stop Finder from creating aliases when moving Applications

In Snow Leopard, Finder treated .app files like any other application. You could drag an application between any two folders at will, and the application would be move. At some point since then (I ...
1
vote
2answers
1k 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
1answer
3k 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 ...
0
votes
1answer
646 views

How to get the shortest file size on aliases?

I realize a bit of why they are so big. Actually, they used to be small enough (around 2kb) and still magical about keeping the file link. I can also see a few ways to "shorten" it, including one I'...