Notepad/enter/Coding Tips (Classical)/Terminal Tips/2. CLI Tools/CLI Tool Collection/Commands + Settings/Command Shortcuts.md

55 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2023-07-05 18:29:11 +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*
An absolutely perfect CLI reference site exists. It is [SS64](https://ss64.com/).
---
2023-07-05 18:29:11 +00:00
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
```
---
More git repos:
2023-07-05 18:29:11 +00:00
- [Book of secrets](https://github.com/trimstray/the-book-of-secret-knowledge/blob/master/README.md#list-of-commands-you-use-most-often)
To typically output the contents of a file you would use `cat file.name` but now there is bat instead!
---