Last active
February 20, 2017 13:12
-
-
Save bigsolom/a107c7865f44a6acf177 to your computer and use it in GitHub Desktop.
Useful Commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Find a file in directory and sort by date modified (logs updated for example) | |
| find ./ -name "file_name" -printf "%T+\t%p\n" | sort -r | |
| #Monitor the HTTP requests coming out of shell | |
| tcpflow -p -c -i en0 port 80 | grep -oE '(GET|POST|HEAD) .* HTTP/1.[01]|Host: .*' | |
| #or | |
| httpry -i en0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #select and edit vertically | |
| 1. Ctrl+V #select column | |
| 2. i #insert | |
| 3. type the text you want to replace column with | |
| 4. ESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment