Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 639 Bytes

oneline.md

File metadata and controls

26 lines (19 loc) · 639 Bytes

Onliners

Inspect network traffic from remote server

ssh remote 'tcpdump -U -i eth0 -w - not tcp port 22' | wireshark -k -i -

Mac: pbcopy will allow you to copy the output of a command right into your clipboard. Vice-versa for pbpaste — it will allow you to paste your clipboard right into your terminal.

# This will copy all the content within a file.
$ cat myfile.txt | pbcopy
# This will output the contents of your clipboard.
$ pbpaste
# Linux version of OSX pbcopy and pbpaste.
alias pbcopy=’xsel — clipboard — input’
alias pbpaste=’xsel — clipboard — output’