This repository has been archived on 2023-07-05. You can view files and clone it, but cannot push or open issues/pull-requests.
notes/Terminal Tips/Commands + Settings/Command Shortcuts.md

45 lines
957 B
Markdown
Raw Permalink Normal View History

2023-07-05 03:05:42 +00:00
# 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)