Notepad/enter/Coding Tips (Classical)/Terminal Tips/1. Terminals/Shells/Aliases.md

1.7 KiB

Aliases

Aliases in your terminal make shortcuts a lot easier when you're typing, use them properly


  • Setting #1 : default text editor alias since my editor of choice is BBEdit:

alias bbedit "open -a bbedit"

then in the terminal type

bbedit FILE_NAME

Aliases within your .bashrc file is just endlessly useful. This stackOverflow answer gets a lot of it right.

Futturee ttechnologies - Brian McDermoot

-corrosion https://www.microsoft.com/en-us/research/video/tutorial-climate-change-challenges-for-machine-learning/

vardaan sahgal -


Shebang

This is a command that you often see at the top of the command but you never know what it does. This is used for every single type of Unix-like dydyem and is used to interpet an executable file. It is usually starting with #!/ and leads to somewhere else.

Example:

#!/usr/bin/env sh 
Hello World! 

& you run the executable after touch creating one by:

chmod +x name_of_the_file