Skip to content

Instantly share code, notes, and snippets.

@hemanth415
Last active May 16, 2019 15:28
Show Gist options
  • Save hemanth415/9ba7ef8f9088cffea1203c77eac8247e to your computer and use it in GitHub Desktop.
Save hemanth415/9ba7ef8f9088cffea1203c77eac8247e to your computer and use it in GitHub Desktop.
Helpful Linux commands for debugging logs.
  • List directories only:
    $ ls -d */
  • List hidded files only:
    $ ls -a
  • Linux search for word and show entire line
    $ grep --after-context=15 --before-context=1 'Exception' error.log

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment