Saturday 4 March 2017

Useful grep commands

netstat -a -n -o | grep "2181"

To get the pid of server running on particular port

sudo ss -lptn 'sport = :2181'

ps aux | grep 'java'

cat /etc/redhat-release
ps -eaf | grep "ssl"
yes | unzip -j dbs-services.war "WEB-INF/classes/test.json" -d "."