Skip to content

Instantly share code, notes, and snippets.

@sujaybhowmick
Last active December 27, 2015 13:19
Show Gist options
  • Select an option

  • Save sujaybhowmick/7332002 to your computer and use it in GitHub Desktop.

Select an option

Save sujaybhowmick/7332002 to your computer and use it in GitHub Desktop.

Revisions

  1. sujaybhowmick renamed this gist Oct 14, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. sujaybhowmick revised this gist Jan 20, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Useful commanda
    Original file line number Diff line number Diff line change
    @@ -15,4 +15,4 @@ ncat - Concatenate and redirect sockets

    Count number of files in a directory
    ---------------------------------------------------
    $ls -1 <dir> | wc -l
    $ls -l <dir> | wc -l
  3. sujaybhowmick renamed this gist Jan 20, 2014. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion Useful command → Useful commanda
    Original file line number Diff line number Diff line change
    @@ -11,4 +11,8 @@ 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
    ncat - Concatenate and redirect sockets

    Count number of files in a directory
    ---------------------------------------------------
    $ls -1 <dir> | wc -l
  4. sujaybhowmick revised this gist Nov 6, 2013. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions Useful command
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,10 @@
    Quick way to check Service status
    ----------------------------------------------------------------------------------
    -----------------------------------------------------------------------------------------------------
    prompt$ echo ruok | nc <hostname> <port>


    ** Example on a linux machine (for windows install ncat utility http://sourceforge.net/projects/nmap-ncat/)
    ** Example on a linux machine(for windows install http://sourceforge.net/projects/nmap-ncat/)

    prompt$ echo ruok | nc localhost 8080


  5. sujaybhowmick revised this gist Nov 6, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Useful command
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ Quick way to check Service status
    prompt$ echo ruok | nc <hostname> <port>


    ** Example on a linux machine
    ** Example on a linux machine (for windows install ncat utility http://sourceforge.net/projects/nmap-ncat/)
    prompt$ echo ruok | nc localhost 8080


  6. sujaybhowmick revised this gist Nov 6, 2013. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions Useful command
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,11 @@ Quick way to check Service status
    ----------------------------------------------------------------------------------
    prompt$ echo ruok | nc <hostname> <port>


    ** Example on a linux machine
    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 ***
  7. sujaybhowmick created this gist Nov 6, 2013.
    8 changes: 8 additions & 0 deletions Useful command
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    Quick way to check Service status
    ----------------------------------------------------------------------------------
    prompt$ echo ruok | nc <hostname> <port>

    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