45 lines
957 B
Markdown
45 lines
957 B
Markdown
|
# What was the command again?
|
||
|
|
||
|
For when you run into those inevitable "how do I command to do that again?" moments to your trusty terminal. Remember:
|
||
|
*Communication is key*
|
||
|
|
||
|
find password of public wifi network ;
|
||
|
```
|
||
|
security find-generic password -wa "James Coffee Co" | pbcopy
|
||
|
```
|
||
|
--> returns the password then pbcopy, copies output
|
||
|
|
||
|
change screenshot options:
|
||
|
```
|
||
|
#changes screenshot type
|
||
|
defaults write com.apple.screencapture type jpg
|
||
|
|
||
|
#changes screenshot location folder
|
||
|
defaults write com.apple.screencapture location ~/Desktop/screenshots
|
||
|
```
|
||
|
|
||
|
Show which processes using most CPU/memory
|
||
|
```
|
||
|
top -o rsize
|
||
|
```
|
||
|
|
||
|
|
||
|
Download things:
|
||
|
```
|
||
|
curl urlname > filelocation
|
||
|
```
|
||
|
|
||
|
Use touch id instead of sudo password
|
||
|
```
|
||
|
sudo nano /etc/pam.d/sudo
|
||
|
```
|
||
|
and then
|
||
|
```
|
||
|
auth sufficient pam_tid.so
|
||
|
```
|
||
|
|
||
|
---
|
||
|
|
||
|
- [Book of secrets](https://github.com/trimstray/the-book-of-secret-knowledge/blob/master/README.md#list-of-commands-you-use-most-often)
|
||
|
|