Notepad/enter/Coding Tips (Classical)/Terminal Tips/About terminal.md

53 lines
2.4 KiB
Markdown

---
dg-publish: true
dg-permalink: "your-terminal"
---
# Your terminal is everything!
Your terminal is the main way that you interact with the machine. So you have to make sure that it is optimized to be as lightweight as possible.
#### Some Useful Terminal Commands:
These are pretty helpful commands I've found over the years. One example being copying the current working directory:
```bash
pwd | pbcopy
```
This copies contents of all files & subdirectories in a folder/directory to another folder.
```
cp -r /path/to/source/directory /path/to/destination/directory/
```
Find the generic password to a public wifi.
```
security find-generic-password -wa "Wifi-name"
```
Output your ipv4 & ipv6 addresses.
```
ifconfig en0 | grep inet | awk '{ print$2 }'
```
If you ever want to take a screen recording of the terminal just type in:
```
asciinema rec
```
Copy and paste with [xclip](https://github.com/astrand/xclip)! You can even [share](https://www.fosslife.org/2-tools-linux-terminal-sharing?cmid=4a5288c5-330b-4694-a774-0e44f9a5fa28) your terminal screen with multiple users using screen & tmux.
---
Eventually the goal is to port the info I've gather on [this](https://docs.google.com/document/d/1HSj4i64hM6291LXvIoWxMJfYn35geWJaAWY9oXkOmm0/edit#) document over to here...eventually.
- The whole bash versus zsh debate is nicely compared to on [this](https://stackabuse.com/zsh-vs-bash/) site. Both are great, use whichever you prefer.
- There is a near infinite amount of things to play around and improve on in your terminal - thus [Terminal To-do's](obsidian://open?vault=Coding%20Tips&file=Terminal%20To-do's) are born.
Your terminal the main way you create [software](obsidian://open?vault=enter&file=Coding%20Tips%20(Classical)%2FTerminal%20Tips%2FCommands%20%2B%20Settings%2FInternet%2FRepos%2FAbout%20Repositories) interactively to be [hosted](obsidian://open?vault=enter&file=Coding%20Tips%20(Classical)%2FTerminal%20Tips%2FCommands%20%2B%20Settings%2FInternet%2FHosting%2FOn%20Hosts) on the [Internet](obsidian://open?vault=enter&file=Coding%20Tips%20(Classical)%2FTerminal%20Tips%2FCommands%20%2B%20Settings%2FInternet%2FHosting%2FBrowser%20talk%2FAbout%20Browsers)! It is from the terminal that all programs are born as it interfaces with the outside devices! For more information on internet tools, click on any of the previous links to take you to the appropriate area.
Have fun. 😙