Skip to content

Instantly share code, notes, and snippets.

@sujaybhowmick
Last active December 27, 2015 13:19
Show Gist options
  • Save sujaybhowmick/7332002 to your computer and use it in GitHub Desktop.
Save sujaybhowmick/7332002 to your computer and use it in GitHub Desktop.
DevOps
Quick way to check Service status
-----------------------------------------------------------------------------------------------------
prompt$ echo ruok | nc <hostname> <port>
** Example on a linux machine(for windows install http://sourceforge.net/projects/nmap-ncat/)
prompt$ echo ruok | nc localhost 8080
should return to prompt successfully. If the service is not up it will return connection refused.
*** Read more on nc a.k.a. ncat utility ***
ncat - Concatenate and redirect sockets
Count number of files in a directory
---------------------------------------------------
$ls -l <dir> | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment