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

56 lines
1.7 KiB
Markdown

# 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](obsidian://open?vault=Coding%20Tips&file=Computers%2FMac%20OS%20X%2FBBEdit%2FBBEdit):
``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 ](https://stackoverflow.com/questions/16199581/open-sublime-text-from-terminal-in-macos/19556342#19556342)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/](https://www.microsoft.com/en-us/research/video/tutorial-climate-change-challenges-for-machine-learning/ "https://www.microsoft.com/en-us/research/video/tutorial-climate-change-challenges-for-machine-learning/")
- [https://impact.earthdata.nasa.gov/project/ml.html](https://impact.earthdata.nasa.gov/project/ml.html "https://impact.earthdata.nasa.gov/project/ml.html")
- [https://open-dac.github.io/#overview](https://open-dac.github.io/#overview "https://open-dac.github.io/#overview")
vardaan sahgal -
- carbon storage of carbon
- carol wilcox,
- NCARR
- https://mldata.pangeo.io/
---
### 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
```