Last active
December 27, 2015 13:19
-
-
Save sujaybhowmick/7332002 to your computer and use it in GitHub Desktop.
DevOps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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