How to Alias a Command (in Linux and Mac Terminal)

preview_player
Показать описание
Learn how to create an alias for a command in Mac, Unix, and Linux operating systems which will execute a command(s) when you enter your custom alias.

Check out my vlog channel @TonyFlorida

#aliascommand #mac
Рекомендации по теме
Комментарии
Автор

I watched a lot of tutorials and still couldn't figure out until i stumbled upon your video! thank you so much!

julienheng
Автор

This was an awesome tutorial. Thank you! Exactly what i needed.

keoshawatkins
Автор

Well composed and delivered tutorials, thanks. Subscribed!

veercoo
Автор

i did not have the zshrc file in my home directory for mac, ventura 13 (zsh shell)

I did:

cd ..
cd ..
cd etc
nano zshrc
alias cda='cd Dekstop'

when I want to close the zshrc, it says I do not have "Write" permission. I went back and wrote:

cdmod 755 zshrc

then tried to edit the zshrc but still it says I do not have the "write" permission. I have two questions now:

1. Am I trying to edit the write file (give that my zshrc is in the etc directory)?
2. How can I resolve the "write" permission issue?

hakimakbary
Автор

I do not have the file .zshrc. i have create it manually but anyone could help with what should the contains of the file in order to add aliases in it ? i just added the alias in the file but it did not worked. also when i run the command alias on my mac terminal i see some aliases. i don't know they are saved

joelwafotalom
Автор

hey bro I also wanna run linux/ubuntu in Mac OS terminal how do I do it

vrajpatel
Автор

hey- newb here, awesome video! I got my first alias to work to get me into a directory, but can't get the second one to work which is a command to open a program. Can you help?

ryanmerten
Автор

Love it, then we can execute a short command for a long one.

robertzoufood
Автор

using "ls ." doesn't display hidden files for me

johndon
Автор

for people who dont have .zshrc file just create one in the home directory. You can use "nano .zshrc" to create the file and the save it and exit.

alishmadhvani