Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [alias]

Use this tag for questions concerning use of alias in macOS

Filter by
Sorted by
Tagged with
7 votes
3 answers
514 views

Link command in terminal vs ln vs symbolic link (ln -s) differences between them?

I've learnt about aliases and symbolic links ages ago, but only recently learnt of the link command from symbolic link vs. alias Is the link command in terminal on my MacOS - version is Sonoma 14.4.1 ...
avenas8808's user avatar
2 votes
1 answer
264 views

Create auto alias of every folder in a specific folder in bash_profile or bash_alias

Using macOS Sonoma 14.2.1 We created an alias in .bash_profile or .zsh_profile and added the alias like this: alias dev='cd ~/Developer' Now there are many folders inside this and for each project I ...
xkeshav's user avatar
  • 245
1 vote
2 answers
67 views

strange issue with aliases for zsh

I'm trying to create an alias in my .zshrc file for an SSH connection. The full command is this: ssh -t pi@raspi5 "cd ~/C-progs/c_trials; exec \$SHELL -l" The command is designed to open an ...
Seamus's user avatar
  • 4,630
1 vote
2 answers
482 views

How to add IP alias in MacOS Sonoma

Seems like Apple decided to remove features, in previous MacOS versions it was very simple to have multiple IP addresses for the same interface, now no more. The duplicate service no longer work ...
user avatar
0 votes
2 answers
101 views

Reveal Symbolic Link in Finder, NOT the file it resolves to?

I wrote the following script to select copied/pasted Finder items in the target folder I pasted them into. tell application "Finder" set thePath to POSIX path of (insertion location as ...
Max Well's user avatar
  • 269
3 votes
1 answer
762 views

Where can I find the alias file in macOS

When running the command alias in Terminal.app, it outputs a few aliases that I am unable to find within my $HOME and /etc directories. The output of the current alias is run-help=man which-command=...
Bill Joe's user avatar
0 votes
1 answer
122 views

After update to MacOS Big Sur 11.7.7 desktop aliases fail to open the original folders

After the upgrade to BigSur 11.7.7. all of the folder aliases on my desktop fail to open the original folders in Finder. Similar bug to the one reported in "MacOS 11.4 Big Sur has issues with ...
Timothy Childers's user avatar
0 votes
1 answer
318 views

zsh alias doesn't always take arguments

I have the following aliases set in my zsh config: alias artisan='[ -f vendor/bin/sail ] && sail artisan || php artisan' alias sail='[ -f sail ] && bash sail || bash vendor/bin/sail' ...
tinyoverflow's user avatar
0 votes
0 answers
100 views

How to recover a quciktime screen recording if you run out of storage while recording?

I just recorded a few hours worth of footage on QuickTime. At one point, the recording automatically stopped because I ran out of space. I deleted a few files, and made some room. After restarting the ...
Michael Macaulay's user avatar
0 votes
3 answers
2k views

How to point to a file in a different folder on iOS/iPadOS?

On my iPad, I use iCloud Drive and the Files app. My files are organized in folders in iCloud Drive so that I can access them on all of my devices. I frequently want to point to a file that is stored ...
John's user avatar
  • 567
1 vote
1 answer
437 views

How can I reverse lookup an alias, ie. find what links to a file or folder?

Suppose I have a folder /my/dir/ and an alias in ~/Documents (called thisdir) pointing to /my/dir/. How can I find the alias (ie. find all aliases) that points to /my/dir/? This question is unlike a ...
Alex Ixeras's user avatar
  • 1,368
2 votes
0 answers
173 views

Terminal: Recursively search directory of aliases with "find” command

Probably answered in some I don't know to search for. I am using find ~/. -type f | wc -l as a quick-and-dirty way to count files. Can I get Terminal to search macOS aliases as if they were hard ...
Jim Witte's user avatar
1 vote
2 answers
858 views

Move File to External Storage and Create Alias in Place on Mac

I am looking for setting up a backup system such that in which I can conveniently move the original file to the backup location, but it creates an alias (pointing towards the file now in the backup ...
Salman Tahir's user avatar
0 votes
1 answer
60 views

How to deal with two mail binaries?

I recently installed both msmtp (smtp client) and mailutils on an M1 iMac via MacPorts. I couldn't get msmtp to work until I realized that there were two mail binaries on the machine, one that, I ...
Buadhai's user avatar
  • 499
0 votes
0 answers
368 views

aliases working in terminal but not in iterm

i use iterm and ohmyzsh. this is what i have in my ~/.zshrc (after all the other stuff) # Set personal aliases, overriding those provided by oh-my-zsh libs, # plugins, and themes. Aliases can be ...
rita1989's user avatar
0 votes
0 answers
3k views

Removing an unwanted iCloud.com alias address "This is an alias of your Apple ID email address" error

I've been using my Apple ID since 2017 with "[email protected]". In an experiment to use iCloud custom domains I created "[email protected]" which is now tied to the account as Alias. I ...
TestAsk's user avatar
7 votes
1 answer
1k views

difference ZSH and BASH for $RANDOM?

I just switched from Ubuntu to macOS (due to work reasons). And I wanted to transfer my bash aliases to zsh, but they are not working completely. alias HPC1='ssh -l [username] [server1]' alias HPC2='...
gernophil's user avatar
  • 349
0 votes
0 answers
35 views

Is there a simple way to put a Catalina user folder on a external volume and be able to clone/BU using TNM/CCC?

i was hoping to ask if there a simple way to put a Catalina user folder on a external volume and be able to clone/BU using Time machine or CarbonCopy Cloner etc I read some comments about using the ...
Gabriel Raphael's user avatar
0 votes
1 answer
49 views

Starting an Application via LaunchPad vs. starting via Alias from Console

Mac Mini Monterey: I have defined an Alias "jedit" to jEdit.app. If I start "jedit" from the commandline, jEdit starts and allows to edit all of my files. If I start jEdit by ...
Andreas's user avatar
5 votes
2 answers
2k views

Limit number for "Hide my Email"?

I am in the process of modifying all my accounts to assign a unique email address to each one via the "Hide my Email" function. I am currently at 273 addresses created for the occasion but I ...
JuCos's user avatar
  • 51
0 votes
1 answer
2k views

How to use input variable in .zshrc alias?

I'm trying to create this alias: alias mrc="php artisan make:controller $(user_input) --resource" so that I can just type mrc ControllerName in the terminal to produce: php artisan make:...
Artur Müller Romanov's user avatar
1 vote
1 answer
421 views

follow an alias link to a directory, using zsh and ohmyzsh

Is it possible to follow an alias link in Terminal using zsh and ohmyzsh? My Terminal states: 'zsh: permission denied:' or 'cd: not a directory:' . The alias is of course a little file and not a ...
cobrp's user avatar
  • 11
7 votes
2 answers
11k views

Limitations of iCloud+ own domain

What are the limitations of iCloud+ own domain in regard to emails? Use Custom Email Domain with iCloud Mail https://support.apple.com/en-us/HT212514 I am looking for: a single domain which I ...
lzap's user avatar
  • 297
1 vote
2 answers
349 views

Is there a way to export aliases in macOS in the Korn Shell (ksh)?

Earlier versions of the Korn shell (ksh) allowed aliases to be exported to subshells by using the -x option, for example: alias -x dog=cat With the current version of macOS the ksh man page says: &...
KS_on_StackExchange's user avatar
1 vote
1 answer
4k views

How do you manage your zsh aliases?

I guess I should just put all my alises in the ~/.zshrc, correct? Or are there other places that's a better fit for personal alises? Also wondering how you manage your list of aliases as you move ...
Riri's user avatar
  • 113
1 vote
1 answer
570 views

Send email from alias by default, Mail app

In the Mail app, I would like to automatically send new emails from my alias. I have the alias set up so that it appears as one of the options in the "From" menu when composing an email, but ...
Simon Alford's user avatar
1 vote
1 answer
240 views

How can I find out which file(s) links to another file

This is a question about the reverse of a file link, which I can easily see in either Terminal or Get Info, ie. this lrwxr-xr-x 1 Alex admin 35 7 Aug 23:35 envsubst -> ../Cellar/gettext/...
Alex Ixeras's user avatar
  • 1,368
1 vote
0 answers
250 views

Can't move files into aliases stored on the Finder's Favorites sidebar?

I'm trying to make some aliases and add them to my Finder favorites so that they can be renamed without altering the original folder in any way (the original folder is on a shared work network). I'm ...
NicholasGFX's user avatar
1 vote
2 answers
143 views

Why do aliases with words not expand in big sur?

I have some aliases in my ~/.bashrc and ~/.bash_profile (I tried with and without .bash_profile), they were both sourced. alias ll=‘ls -l’ alias al=‘ls -ahl’ alias iridium=“~/git/iridium” alias ...
Nickotine's user avatar
  • 340
0 votes
1 answer
91 views

cannot use the mac_alias package to generate an alias

I have about 3000 files and I need to turn them into aliases so doing it by hand is not an option plus in the future I want to be able to do this automatically. I'm trying to use this package https://...
bobsmith76's user avatar
0 votes
2 answers
1k views

Is there a way to input values and then run aliases in iterm2

I just came to know about the alias option and I have this code which would download any youtube vid in the highest quality. But the problem is I have to enter the url of the youtube vid. Is there any ...
Nibin's user avatar
  • 23
0 votes
0 answers
409 views

Cannot open folders in ~/Documents via alias or recent items

I am having a similar issue as outlined in A "Library"-folder appeared in my Documents folder on Mac, Is that normal? but with the added problem of I cannot open any folder located in ~/...
rayo3d's user avatar
  • 1
1 vote
1 answer
1k views

For the life of me can't find where terminal alias's are stored

So I have been playing around with aliases in bash and it is easy enough to add them. alias lsl="ls -l" My question is, where are they stored? I am using the bash shell, so I looked in the ...
adamf's user avatar
  • 13
0 votes
0 answers
88 views

"locate" returns relative instead of absolute paths

I have the following entry in root's crontab: 0 */4 * * * cd /private/var/root && ./locate.updatedb I have an alias for locate in ~/.zshrc: alias locate='locate -d /var/db/locate.database' ...
user avatar
1 vote
1 answer
3k views

How can I open my Downloads folder in one click? [duplicate]

How can I open my Downloads folder in one click? Downloads are my most important folder because that's where the new files go. Yet, it is the only folder I can't make an alias for, meaning I can open ...
Jamie Slate's user avatar
0 votes
0 answers
764 views

macOS Big Sur can't remove ghost icon from deleted application

I've deleted TextMate and its alias from Launchpad and Library - still have a "ghost" icon showing in all windows (see screenshot). When I enter Launchpad that ghost icon (in last screen) ...
Beely's user avatar
  • 1
8 votes
1 answer
11k views

What is the "On My Mac" folder in macOS Big Sur?

I have recently upgraded to macOS Big Sur 11.0.1 from macOS 10.15.7 on my 2016 MacBook Pro. In Finder, there is a new (?) folder called "On My Mac" which I have never seen before. It ...
NotationMaster's user avatar
1 vote
1 answer
1k views

Creating an alias for Python in bash/zsh

I have often seen people recommending to setup an alias in one's .bash_profile or .zshrc along the lines of alias python='python3' This seems like a convenient idea, however, as far as I understand, ...
ersbygre1's user avatar
  • 132
0 votes
1 answer
568 views

iOS & iCloud File Aliases?

Anyone have any luck using iCloud file aliases with iOS Files?? Seems the aliases created on the Mac are nothing more than nearly empty text files that are useless in iOS?
Dan Brooks's user avatar
1 vote
1 answer
626 views

Any way to make symlinks or aliases resolve over a network with macOS?

So I like to move my big folders from the home folder on the macOS System SSD to a hard drive and keep the SSD mainly for the system files and apps, a fairly common practice. Problem is when I want to ...
Kez's user avatar
  • 31
0 votes
0 answers
1k views

How to use variable in alias termux?

my alias for opening Google is is like this alias g="termux-open-url https://google.com" for search url look like this http://google.com/search?q=what+I+search I wanted that if I write g what I ...
Rishu Pandey's user avatar
4 votes
1 answer
4k views

How can I place a shortcut to a network folder in my sidebar?

My ultimate goal here is very simple: I want to place a shortcut to a specific network folder (on another machine my home network), in the sidebar of my personal machine. But I am getting some very ...
JVC's user avatar
  • 2,871
0 votes
4 answers
465 views

Opening Randomized Images From Multiple Folders With Preview Application

Basically what I am trying to achieve is the following: Create an alias list of any amount of folders with the Finder's selection. Get all images from those folders with a shell script. Randomize ...
David's user avatar
  • 53
4 votes
2 answers
2k views

List all aliases starting with a particular string

To improve on the steps I have to take to complete some actions on my Mac, I have created many aliases. Example: To open System Preferences, which I have to do often to manage multiple monitors, I ...
displayName's user avatar
  • 2,670
1 vote
0 answers
93 views

How to copy all content of a folder excluding one filetype?

I have a folder containing 74 subfolders, that has a number of aliases strewn about within it. I'm trying to copy the entire top-level folder (and all of its contents, obviously) over to Google File ...
JVC's user avatar
  • 2,871
0 votes
0 answers
271 views

Applescript alias is not updating after renaming a folder

I am still learning Applescript, but I am trying to script some automation for me. I am trying to get it to create a folder based on user input and then create a sub-folder with contents duplicated ...
Chris's user avatar
  • 1
0 votes
0 answers
153 views

Fixing aliases for hidden files

Had to migrate to a new Mac and all of the aliases I have for hidden files are broken. When I try to navigate to the original file when I click "fix alias", I can't see the file in question in the ...
ShrewdSimian's user avatar
0 votes
1 answer
242 views

Is there a way to configure Finder to move files to external drives by default, rather than copying them?

I was recently helping somebody move their Mac's information to Google Drive, and the best solution turned out to be using the Google Drive client for Mac. I moved the relevant files to their Google ...
Jake3231's user avatar
  • 1,943
0 votes
1 answer
12k views

Turn Bluetooth On & Off via Terminal [duplicate]

I'm trying to find out how to turn Bluetooth On or Off by using the Terminal on macOS Catalina. I used to be able to do it with the following commands: alias bton="sudo defaults write /Library/...
esaruoho's user avatar
  • 1,170
0 votes
1 answer
62 views

trying to run FSF emacs in character based mode ( -nw ) on Catalina

After installing Catalina on my laptop emacs vanished so I installed the latest version from FSF. Running it in a window (gui mode) works fine but I can't get it to reliably work in character mode in ...
Russell Fulton's user avatar