Bits on Bits on Bits

Command-line

Find What Process is Running on a Given Port

For port 4848, it would be:

1
sudo lsof -P | grep :4848

PbCopy

Use this command to copy terminal text to your OS’s copy buffer. Examples:

1
2
echo 'cool' | pbcopy
cat temp.txt | pbcopy

Tailing

Only show the first 10 lines when you find POST

1
tail -f log/development.log | grep -A 10 "POST"