My Software Universe Cheat Sheet
- 1 minList of useful commands for all technologies I regularly use.
Content:
JVM
Show running Java processes:
Show thread stack trace for Java process:
Every 500ms print GC cause of the running JVM process
Remote debugging
Shell
misc
Show all process as a tree
Show processes listening on ports
Watch file size of the file
Find text in files
netcat
listen on specific port and forward output to the file
connect to host and port and send some text
tcpdump
Sniff communication on localhost interface (lo
) and port 5555
and write it to the file
awk
Remove empty lines from a file
Print first column but wrap value in double quotes
sed
Escape quotes in the file $f
Tmux
Set start directory for current tmux session Press Ctrl+B, :
and then write attach -c /path/to/start/directory
Rename current session: Ctrl+B, $
AWS CLI
List all instances with the project tag set to <value>