SlideShare a Scribd company logo
10	
  Awesome	
  Examples	
  for	
  Viewing	
  Huge	
  Log	
  Files	
  in	
  Unix                                                  hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples...




                            Home
                            About
                            Free	
  eBook
                            Archives
                            Best	
  of	
  the	
  Blog
                            Contact


                10	
  Awesome	
  Examples	
  for	
  Viewing	
  Huge	
  Log	
  Files	
  in	
  Unix
                by	
  Ramesh	
  Natarajan	
  on	
  August	
  12,	
  2009

                               10                       Like      7                Tweet         25




                                                                                                                 Viewing	
  huge	
  log	
  files	
  for	
  trouble	
  shooEng	
  is	
  a	
  mundane	
  rouEne	
  tasks	
  for
                sysadmins	
  and	
  programmers.

                In	
  this	
  arEcle,	
  let	
  us	
  review	
  how	
  to	
  effecEvely	
  view	
  and	
  manipulate	
  huge	
  log	
  files	
  using	
  10	
  awesome	
  examples.

                Example	
  1:	
  Display	
  specific	
  lines	
  (based	
  on	
  line	
  number)	
  of	
  a	
  file	
  using	
  sed	
  command

                View	
  only	
  the	
  specific	
  lines	
  menEoned	
  by	
  line	
  numbers.

                Syntax: $ sed -n -e Xp -e Yp FILENAME

                            sed	
  :	
  sed	
  command,	
  which	
  will	
  print	
  all	
  the	
  lines	
  by	
  default.
                            -­‐n	
  :	
  Suppresses	
  output.
                            -­‐e	
  CMD	
  :	
  Command	
  to	
  be	
  executed
                            Xp:	
  Print	
  line	
  number	
  X
                            Yp:	
  Print	
  line	
  number	
  Y
                            FILENAME	
  :	
  name	
  of	
  the	
  file	
  to	
  be	
  processed.




1	
  of	
  10                                                                                                                                                                                                 18	
  Apr	
  12	
  7:30	
  pm
10	
  Awesome	
  Examples	
  for	
  Viewing	
  Huge	
  Log	
  Files	
  in	
  Unix                                                       hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples...


                The	
  example	
  menEoned	
  below	
  will	
  print	
  the	
  lines	
  120,	
  145,	
  1050	
  from	
  the	
  syslog.

                $ sed -n -e 120p -e 145p -e 1050p /var/log/syslog

                In	
  the	
  following	
  example,	
  	
  you	
  can	
  view	
  the	
  content	
  of	
  var/log/cron	
  from	
  line	
  number	
  101	
  to	
  110.

                             M	
  –	
  StarEng	
  line	
  number
                             N	
  –	
  Ending	
  line	
  number

                Syntax: sed -n M,Np FILENAME

                $ sed -n 101,110p /var/log/cron

                Example	
  2:	
  Display	
  first	
  N	
  lines	
  of	
  a	
  file	
  using	
  head	
  command

                This	
  example	
  displays	
  only	
  first	
  15	
  lines	
  of	
  /var/log/maillog	
  file.	
  Change	
  15	
  to	
  10	
  to	
  display	
  the	
  first	
  10	
  lines	
  of	
  a	
  log	
  file.

                Syntax: head -n N FILENAME

                $ head -n 15 /var/log/maillog

                Example	
  3:	
  Ignore	
  last	
  N	
  lines	
  of	
  a	
  file	
  using	
  head	
  command

                This	
  example	
  shows	
  how	
  to	
  ignore	
  the	
  last	
  N	
  lines,	
  and	
  show	
  only	
  the	
  remaining	
  lines	
  from	
  the	
  top	
  of	
  file.

                The	
  following	
  example	
  will	
  display	
  all	
  the	
  lines	
  of	
  the	
  /var/log/secure	
  except	
  the	
  last	
  250	
  lines.

                Syntax: head -n -N FILENAME

                $ head -n -250 /var/log/secure

                Example	
  4:	
  Display	
  last	
  N	
  lines	
  of	
  the	
  file	
  using	
  tail	
  command

                This	
  example	
  displays	
  only	
  last	
  50	
  lines	
  of	
  /var/log/messages	
  file.	
  Change	
  50	
  to	
  100	
  to	
  display	
  the	
  last	
  100	
  lines	
  of	
  the	
  log	
  file.

                Syntax: tail -n N FILENAME

                $ tail -n 50 /var/log/messages

                Example	
  5:	
  Ignore	
  first	
  N-­‐1	
  lines	
  of	
  the	
  file	
  using	
  tail	
  command

                This	
  example	
  shows	
  how	
  to	
  ignore	
  the	
  first	
  N-­‐1	
  lines	
  and	
  show	
  only	
  the	
  remaining	
  of	
  the	
  lines.

                The	
  following	
  example	
  ignores	
  the	
  1st	
  four	
  lines	
  of	
  the	
  /etc/xinetd.conf,	
  which	
  contains	
  only	
  the	
  comments.

                Syntax: tail -n +N FILENAME

                $ tail -n +5 /etc/xinetd.conf
                defaults
                {
                         instances                                                                 =    60
                         log_type                                                                  =    SYSLOG authpriv
                         log_on_success                                                            =    HOST PID
                         log_on_failure                                                            =    HOST
                         cps                                                                       =    25 30
                }
                includedir /etc/xinetd.d

                Example	
  6:	
  View	
  growing	
  log	
  file	
  in	
  real	
  Mme	
  using	
  tail	
  command



2	
  of	
  10                                                                                                                                                                                                            18	
  Apr	
  12	
  7:30	
  pm
10	
  Awesome	
  Examples	
  for	
  Viewing	
  Huge	
  Log	
  Files	
  in	
  Unix                                                      hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples...


                This	
  is	
  probably	
  one	
  of	
  the	
  most	
  used	
  command	
  by	
  sysadmins.To	
  view	
  a	
  growing	
  log	
  file	
  and	
  see	
  only	
  the	
  newer	
  contents	
  use	
  tail	
  -­‐f	
  as
                shown	
  below.

                The	
  following	
  example	
  shows	
  the	
  content	
  of	
  the	
  /var/log/syslog	
  command	
  in	
  real-­‐Eme.

                Syntax: tail -f FILENAME

                $ tail -f /var/log/syslog

                Example	
  7:	
  Display	
  specific	
  lines	
  (based	
  on	
  line	
  number)	
  of	
  a	
  file	
  using	
  head	
  and	
  tail	
  command

                The	
  example	
  below	
  will	
  display	
  line	
  numbers	
  101	
  –	
  110	
  of	
  /var/log/anaconda.log	
  file

                             M	
  –	
  StarEng	
  line	
  number
                             N	
  –	
  Ending	
  line	
  number

                Syntax: cat file | tail -n +N | head -n (M-N+1)

                $ cat /var/log/anaconda.log | tail -n +101 | head -n 10

                             cat	
  :	
  prints	
  the	
  whole	
  file	
  to	
  the	
  stdout.
                             tail	
  -­‐n	
  +101	
  :	
  ignores	
  lines	
  upto	
  the	
  given	
  line	
  number,	
  and	
  then	
  start	
  prinEng	
  lines	
  aaer	
  the	
  given	
  number.
                             head	
  -­‐n	
  10	
  :	
  prints	
  the	
  first	
  10	
  line,	
  that	
  is	
  101	
  to	
  110	
  and	
  ignores	
  the	
  remaining	
  lines.

                Example	
  8:	
  Display	
  lines	
  matching	
  a	
  paPern,	
  and	
  few	
  lines	
  following	
  the	
  match.

                The	
  following	
  example	
  displays	
  the	
  line	
  that	
  matches	
  “IniEalizing	
  CPU”	
  from	
  the	
  /var/log/dmesg	
  and	
  5	
  lines	
  immediately	
  aaer	
  this
                match.

                # grep "Initializing CPU#1" /var/log/dmesg
                Initializing CPU#1
                [Note: The above shows only the line matching the pattern]

                # grep -A 5 "Initializing CPU#1" dmesg
                Initializing CPU#1
                Calibrating delay using timer specific routine.. 3989.96 BogoMIPS (lpj=1994982)
                CPU: After generic identify, caps: bfebfbff 20100000 00000000 00000000
                CPU: After vendor identify, caps: bfebfbff 20100000 00000000 00000000
                monitor/mwait feature present.
                CPU: L1 I cache: 32K, L1 D cache: 32K
                [Note: The above shows the line and 5 lines after the pattern matching]

                Refer	
  our	
  earlier	
  arEcle	
  Get	
  a	
  Grip	
  on	
  the	
  Grep!	
  –	
  15	
  PracEcal	
  Grep	
  Command	
  Examples	
  that	
  explains	
  how	
  to	
  use	
  grep	
  command.

                As	
  explained	
  in	
  our	
  previous	
  grep	
  command	
  arEcle,	
  the	
  following	
  operaEons	
  are	
  possible.

                             Viewing	
  specific	
  lines	
  idenEfied	
  by	
  paWerns,	
  which	
  is	
  grep’s	
  default	
  funcEonality.
                             Viewing	
  only	
  the	
  matched	
  characters.
                             Viewing	
  N	
  lines	
  aaer	
  the	
  match	
  with	
  -­‐A	
  opEon.
                             Viewing	
  N	
  lines	
  before	
  the	
  match	
  with	
  -­‐B	
  opEon.
                             Viewing	
  N	
  lines	
  around	
  the	
  match	
  with	
  -­‐C	
  opEon.

                Example	
  9:	
  Displaying	
  specific	
  bytes	
  from	
  a	
  file.

                The	
  following	
  example	
  explains	
  how	
  to	
  display	
  either	
  the	
  top	
  40	
  or	
  the	
  last	
  30	
  bytes	
  of	
  a	
  file.

                Display	
  first	
  40	
  bytes	
  from	
  syslog.




3	
  of	
  10                                                                                                                                                                                                       18	
  Apr	
  12	
  7:30	
  pm
10	
  Awesome	
  Examples	
  for	
  Viewing	
  Huge	
  Log	
  Files	
  in	
  Unix                                                 hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples...


                $ head -c40 /var/log/syslog

                Display	
  last	
  30	
  bytes	
  from	
  syslog.

                $ tail -c30 /var/log/syslog

                Example	
  10:	
  Viewing	
  compressed	
  log	
  files

                Aaer	
  a	
  specific	
  Eme	
  all	
  the	
  system	
  log	
  files	
  are	
  rotated,	
  and	
  compressed.	
  You	
  can	
  uncompress	
  it	
  on	
  the	
  fly,	
  and	
  pipe	
  the	
  output	
  to
                another	
  unix	
  command	
  to	
  view	
  the	
  file	
  as	
  explained	
  below.

                Refer	
  to	
  our	
  earlier	
  arEcle	
  The	
  Power	
  of	
  Z	
  Commands	
  –	
  Zcat,	
  Zless,	
  Zgrep,	
  Zdiff	
  Examples

                            Display	
  the	
  first	
  N	
  lines	
  of	
  a	
  compressed	
  file.

                            $ zcat file.gz | head -250

                            Display	
  the	
  last	
  N	
  lines	
  of	
  a	
  compressed	
  file.

                            $ zcat file.gz | tail -250

                            Ignoring	
  the	
  last	
  N	
  lines	
  of	
  a	
  compressed	
  file.

                            $ zcat file.gz | head -n -250

                            Ignoring	
  the	
  first	
  N	
  lines	
  of	
  a	
  compressed	
  file.

                            $ zcat file.gz | tail -n +250

                            Viewing	
  the	
  lines	
  matching	
  the	
  paWern

                            $ zcat file.gz | grep -A2 'error'

                            Viewing	
  parEcular	
  range	
  of	
  lines	
  idenEfied	
  by	
  line	
  number.

                            $ zcat file.gz | sed -n -e 45p -e 52p

                If	
  you	
  need	
  to	
  return,	
  bookmark	
  this	
  page	
  at	
  del.icio.us	
  for	
  handy	
  reference.



                               10                   Tweet         25                    Like         7             	
  Share              	
  Comment


                If	
  you	
  enjoyed	
  this	
  arMcle,	
  you	
  might	
  also	
  like..


                        1. 50	
  Linux	
  Sysadmin	
  Tutorials
                                                                                                                                           Awk	
  IntroducEon	
  –	
  7	
  Awk	
  Print	
  Examples
                        2. 50	
  Most	
  Frequently	
  Used	
  Linux	
  Commands	
  (With	
  Examples)
                                                                                                                                           Advanced	
  Sed	
  SubsEtuEon	
  Examples
                        3. Top	
  25	
  Best	
  Linux	
  Performance	
  Monitoring	
  and	
  Debugging
                                                                                                                                           8	
  EssenEal	
  Vim	
  Editor	
  NavigaEon	
  Fundamentals
                           Tools
                                                                                                                                           25	
  Most	
  Frequently	
  Used	
  Linux	
  IPTables	
  Rules
                        4. Mommy,	
  I	
  found	
  it!	
  –	
  15	
  PracEcal	
  Linux	
  Find	
  Command
                                                                                                                                           Examples
                           Examples
                                                                                                                                           Turbocharge	
  PuTTY	
  with	
  12	
  Powerful	
  Add-­‐Ons
                        5. Linux	
  101	
  Hacks	
  2nd	
  EdiEon	
  eBook	
  




4	
  of	
  10                                                                                                                                                                                                     18	
  Apr	
  12	
  7:30	
  pm
10	
  Awesome	
  Examples	
  for	
  Viewing	
  Huge	
  Log	
  Files	
  in	
  Unix                                                   hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples...




                Tags:	
  Linux	
  Log	
  File	
  ManipulaEon,	
  Manage	
  Large	
  Unix	
  Log	
  Files,	
  View	
  Big	
  Linux	
  Files,	
  View	
  ParEal	
  Unix	
  Log	
  Files

                {	
  15	
  comments…	
  read	
  them	
  below	
  or	
  add	
  one	
  }

                1	
  Robert	
  Fisher	
  August	
  12,	
  2009	
  at	
  1:22	
  am

                            I	
  have	
  used	
  example	
  8	
  many	
  Emes	
  looking	
  for	
  a	
  response	
  to	
  a	
  specific	
  error.	
  I	
  have	
  also	
  used	
  the	
  tail	
  and	
  head	
  commands	
  as
                            well,	
  never	
  really	
  got	
  into	
  sed	
  so	
  much,	
  but	
  that	
  example	
  was	
  a	
  good	
  one.	
  Thanks	
  for	
  posEng	
  this	
  informaEon.

                2	
  Nico	
  August	
  12,	
  2009	
  at	
  2:23	
  am

                            FYI:	
  Later	
  versions	
  of	
  less(1)	
  also	
  displays	
  .gz	
  files.

                3	
  Nico	
  August	
  12,	
  2009	
  at	
  2:26	
  am

                            O	
  –	
  and	
  before	
  I	
  forget…	
  You	
  can	
  combine	
  some	
  of	
  the	
  soluEons,	
  for	
  example	
  combine	
  #6	
  and	
  #8:	
  $	
  tail	
  -­‐f	
  /some/file	
  |	
  grep
                            keyword

                            This	
  will	
  give	
  you	
  only	
  the	
  lines	
  containing	
  the	
  keyword	
  as	
  it	
  gets	
  logged.

                4	
  Nicholas	
  Sterling	
  August	
  12,	
  2009	
  at	
  2:40	
  am

                            How	
  about

                            sed	
  -­‐n	
  300,350p	
  foo.log

                            Edit:	
  oops	
  —	
  how	
  embarrassing.	
  You	
  covered	
  it	
  and	
  I	
  missed	
  it	
  somehow.

                5	
  Ashish	
  August	
  12,	
  2009	
  at	
  5:12	
  am

                            Great	
  post,
                            very	
  useful	
  arEcle.

                6	
  Ronald	
  August	
  12,	
  2009	
  at	
  8:45	
  am

                            The	
  “sed	
  -­‐n	
  101,110p	
  /var/log/cron”	
  approach	
  is	
  really	
  useful.	
  Although	
  I	
  have	
  to	
  say	
  that	
  I	
  wouldn’t	
  have	
  come	
  up	
  with	
  that
                            command	
  when	
  looking	
  at	
  the	
  sed-­‐manual….	
  

                            Sed:
                            -­‐n,	
  –quiet,	
  –silent
                            suppress	
  automaEc	
  prinEng	
  of	
  paWern	
  space

                            p	
  Print	
  the	
  current	
  paWern	
  space.

                7	
  Koen	
  De	
  Jaeger	
  August	
  13,	
  2009	
  at	
  9:27	
  am



5	
  of	
  10                                                                                                                                                                                                         18	
  Apr	
  12	
  7:30	
  pm
10	
  Awesome	
  Examples	
  for	
  Viewing	
  Huge	
  Log	
  Files	
  in	
  Unix                                                               hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples...


                             Very	
  nice!

                8	
  Ramesh	
  Natarajan	
  August	
  14,	
  2009	
  at	
  8:56	
  am

                             @Robert,

                             Sed	
  can	
  do	
  lot	
  of	
  amazing	
  things.	
  But	
  it	
  is	
  hard	
  to	
  remember	
  those	
  on	
  top	
  of	
  your	
  head.	
  I	
  have	
  close	
  to	
  100	
  sed	
  command	
  that
                             solves	
  some	
  common	
  problem	
  in	
  a	
  notebook,	
  which	
  I	
  copy/paste	
  whenever	
  nedded.

                             Example	
  1	
  of	
  this	
  arEcle	
  is	
  in	
  that	
  list.	
  

                             @Nico,

                             Thanks	
  for	
  poinEng	
  that	
  out.	
  Most	
  of	
  us	
  forget	
  that	
  grep	
  can	
  be	
  combined	
  with	
  “tail	
  -­‐f ”.	
  This	
  indeed	
  can	
  be	
  very	
  handy.

                             @Nicholas,

                             Don’t	
  worry.	
  I’ve	
  done	
  similar	
  mistakes	
  several	
  Emes.	
  So,	
  I	
  can	
  related	
  to	
  it.	
  

                             @Ashish,	
  @Koen

                             I’m	
  very	
  glad	
  that	
  you	
  found	
  this	
  arEcle	
  helpful.

                             @Ronald,

                             Yeah.	
  That	
  is	
  the	
  beauty	
  of	
  Unix.	
  We	
  can	
  do	
  amazing	
  things	
  with	
  linux	
  commands	
  that	
  were	
  not	
  even	
  clearly	
  menEoned	
  in	
  the
                             manual.	
  This	
  is	
  also	
  the	
  reason	
  Windows	
  admins	
  don’t	
  like	
  Linux,	
  as	
  they	
  hate	
  reading	
  manuals.	
  Even	
  when	
  they	
  read	
  the
                             manuals,	
  it	
  is	
  not	
  really	
  explained	
  very	
  well.

                9	
  ShekarKCB	
  August	
  24,	
  2009	
  at	
  5:13	
  am

                             Nice	
  ArEcle,	
  uses	
  of	
  head,	
  tail,	
  and	
  sed	
  were	
  nicely	
  covered.	
  Thanks	
  for	
  the	
  same.

                10	
  Ted	
  September	
  13,	
  2009	
  at	
  12:06	
  am

                             The	
  sed	
  Ep	
  I	
  will	
  use	
  for	
  sure	
  and	
  I	
  also	
  like	
  the	
  tail	
  -­‐f	
  |grep.	
  Thank	
  you	
  Ramesh.

                             Any	
  chance	
  you	
  will	
  be	
  posEng	
  your	
  most	
  useful	
  sed	
  commands	
  from	
  your	
  note	
  book	
  at	
  some	
  Eme?

                11	
  Bipin	
  May	
  6,	
  2010	
  at	
  5:49	
  am

                             Great	
  stuffs.	
  Thanks	
  for	
  sharing.

                12	
  Brad	
  July	
  14,	
  2010	
  at	
  8:49	
  am

                             You	
  showed	
  zcat,	
  but	
  there	
  is	
  also	
  bzcat	
  and	
  lzcat,	
  and	
  probably	
  a	
  few	
  others.	
  so	
  if	
  you	
  have	
  a	
  file	
  that	
  is	
  bzip2ʹ′d	
  or	
  lzma’d,	
  then
                             you	
  can	
  use	
  bzcat	
  and	
  lzcat	
  respecEvely	
  to	
  display	
  them.	
  Also,	
  it	
  can	
  be	
  piped	
  to	
  the	
  less	
  command	
  so	
  it	
  can	
  be	
  scrolled	
  across
                             the	
  terminal.

                13	
  anton	
  August	
  6,	
  2010	
  at	
  3:24	
  am

                             Is	
  the	
  following	
  any	
  beWer	
  (i.e.	
  more	
  efficient)	
  than	
  zcat	
  logfile.gz	
  |	
  tail	
  ???

                             #	
  emulate	
  ztail	
  ???

                             zless	
  +F	
  logfile.gz

                14	
  logan	
  February	
  21,	
  2011	
  at	
  12:11	
  am

                             or	
  you	
  can	
  always	
  use




6	
  of	
  10                                                                                                                                                                                                                   18	
  Apr	
  12	
  7:30	
  pm
10	
  Awesome	
  Examples	
  for	
  Viewing	
  Huge	
  Log	
  Files	
  in	
  Unix                                                         hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples...


                             cat	
  logfile	
  |	
  less

                             which	
  lets	
  you	
  scroll	
  through	
  it

                             OR

                             cat	
  logfile	
  |	
  less	
  |	
  grep	
  “PATTERN”

                             which	
  lets	
  you	
  scroll	
  through	
  matching	
  entries
                             I	
  search	
  for	
  sshd	
  for	
  my	
  auth.log	
  file	
  and	
  can	
  see	
  all	
  and	
  only	
  the	
  ssh	
  server	
  entries

                15	
  ks	
  March	
  2,	
  2011	
  at	
  5:45	
  pm

                             A	
  nice	
  and	
  handy	
  tutorial.	
  A	
  few	
  comments	
  about	
  the	
  above	
  comment	
  by	
  @logan:

                             $	
  cat	
  logfile	
  |	
  less
                             has	
  the	
  same	
  effect	
  as
                             $	
  less	
  logfile
                             and	
  hence	
  the	
  use	
  of	
  the	
  pipe	
  is	
  redundant	
  (‘$’	
  stands	
  for	
  the	
  command	
  prompt).	
  Both	
  lets	
  you	
  scroll	
  through	
  the	
  logfile	
  and
                             search	
  for	
  paWern	
  using	
  ‘/’	
  and	
  ‘?’	
  (similar	
  to	
  vim).

                             However,	
  the	
  second
                             $	
  cat	
  logfile	
  |	
  less	
  |	
  grep	
  “PATTERN”
                             does	
  not	
  let	
  you	
  scroll,	
  but	
  the	
  following
                             $	
  grep	
  “PATTERN”	
  logfile	
  |	
  less
                             will	
  —	
  through	
  only	
  the	
  the	
  lines	
  that	
  has	
  the	
  matching	
  paWern	
  “PATTERN”.

                Leave	
  a	
  Comment

                                                                                      Name


                                                                                      E-­‐mail


                                                                                      Website




                       	
  NoEfy	
  me	
  of	
  followup	
  comments	
  via	
  e-­‐mail

                    Submit

                Previous	
  post:	
  Google	
  Next-­‐GeneraEon	
  Search	
  Engine	
  is	
  Already	
  Here	
  For	
  You

                Next	
  post:	
  Ubuntu	
  Tips:	
  How	
  To	
  Setup	
  Dual	
  Monitor




7	
  of	
  10                                                                                                                                                                                                   18	
  Apr	
  12	
  7:30	
  pm
10	
  Awesome	
  Examples	
  for	
  Viewing	
  Huge	
  Log	
  Files	
  in	
  Unix                                            hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples...



                         Sign	
  up	
  for	
  our	
  free	
  email	
  newsleWer	
   you@address.com                                    	
  	
  	
  	
  	
     Sign Up


                                                	
  	
  	
  	
  	
     	
  RSS	
     	
  TwiWer	
     	
  Facebook



                                                                                                                     	
     Search

                         EBOOKS




8	
  of	
  10                                                                                                                                                           18	
  Apr	
  12	
  7:30	
  pm
10	
  Awesome	
  Examples	
  for	
  Viewing	
  Huge	
  Log	
  Files	
  in	
  Unix                                            hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples...




                         POPULAR	
  POSTS

                                     12	
  Amazing	
  and	
  EssenEal	
  Linux	
  Books	
  To	
  Enrich	
  Your	
  Brain	
  and	
  Library
                                     50	
  UNIX	
  /	
  Linux	
  Sysadmin	
  Tutorials
                                     50	
  Most	
  Frequently	
  Used	
  UNIX	
  /	
  Linux	
  Commands	
  (With	
  Examples)
                                     How	
  To	
  Be	
  ProducEve	
  and	
  Get	
  Things	
  Done	
  Using	
  GTD
                                     30	
  Things	
  To	
  Do	
  When	
  you	
  are	
  Bored	
  and	
  have	
  a	
  Computer
                                     Linux	
  Directory	
  Structure	
  (File	
  System	
  Structure)	
  Explained	
  with	
  Examples
                                     Linux	
  Crontab:	
  15	
  Awesome	
  Cron	
  Job	
  Examples
                                     Get	
  a	
  Grip	
  on	
  the	
  Grep!	
  –	
  15	
  PracEcal	
  Grep	
  Command	
  Examples
                                     Unix	
  LS	
  Command:	
  15	
  PracEcal	
  Examples
                                     15	
  Examples	
  To	
  Master	
  Linux	
  Command	
  Line	
  History
                                     Top	
  10	
  Open	
  Source	
  Bug	
  Tracking	
  System
                                     Vi	
  and	
  Vim	
  Macro	
  Tutorial:	
  How	
  To	
  Record	
  and	
  Play
                                     Mommy,	
  I	
  found	
  it!	
  -­‐-­‐	
  15	
  PracEcal	
  Linux	
  Find	
  Command	
  Examples
                                     15	
  Awesome	
  Gmail	
  Tips	
  and	
  Tricks
                                     15	
  Awesome	
  Google	
  Search	
  Tips	
  and	
  Tricks
                                     RAID	
  0,	
  RAID	
  1,	
  RAID	
  5,	
  RAID	
  10	
  Explained	
  with	
  Diagrams
                                     Can	
  You	
  Top	
  This?	
  15	
  PracEcal	
  Linux	
  Top	
  Command	
  Examples
                                     Top	
  5	
  Best	
  System	
  Monitoring	
  Tools
                                     Top	
  5	
  Best	
  Linux	
  OS	
  DistribuEons
                                     How	
  To	
  Monitor	
  Remote	
  Linux	
  Host	
  using	
  Nagios	
  3.0
                                     Awk	
  IntroducEon	
  Tutorial	
  –	
  7	
  Awk	
  Print	
  Examples
                                     How	
  to	
  Backup	
  Linux?	
  15	
  rsync	
  Command	
  Examples
                                     The	
  UlEmate	
  Wget	
  Download	
  Guide	
  With	
  15	
  Awesome	
  Examples
                                     Top	
  5	
  Best	
  Linux	
  Text	
  Editors
                                     Packet	
  Analyzer:	
  15	
  TCPDUMP	
  Command	
  Examples
                                     The	
  UlEmate	
  Bash	
  Array	
  Tutorial	
  with	
  15	
  Examples
                                     3	
  Steps	
  to	
  Perform	
  SSH	
  Login	
  Without	
  Password	
  Using	
  ssh-­‐keygen	
  &	
  ssh-­‐copy-­‐id
                                     Unix	
  Sed	
  Tutorial:	
  Advanced	
  Sed	
  SubsEtuEon	
  Examples
                                     UNIX	
  /	
  Linux:	
  10	
  Netstat	
  Command	
  Examples
                                     The	
  UlEmate	
  Guide	
  for	
  CreaEng	
  Strong	
  Passwords
                                     6	
  Steps	
  to	
  Secure	
  Your	
  Home	
  Wireless	
  Network
                                     Turbocharge	
  PuTTY	
  with	
  12	
  Powerful	
  Add-­‐Ons

                         About	
  The	
  Geek	
  Stuff




                                                 	
  My	
  name	
  is	
  Ramesh	
  Natarajan.	
  I	
  will	
  be	
  posEng	
  instrucEon	
  guides,	
  how-­‐to,	
  troubleshooEng	
  Eps	
  and	
  tricks
                         on	
  Linux,	
  database,	
  hardware,	
  security	
  and	
  web.	
  My	
  focus	
  is	
  to	
  write	
  arEcles	
  that	
  will	
  either	
  teach	
  you	
  or	
  help	
  you	
  resolve	
  a




9	
  of	
  10                                                                                                                                                                                               18	
  Apr	
  12	
  7:30	
  pm
10	
  Awesome	
  Examples	
  for	
  Viewing	
  Huge	
  Log	
  Files	
  in	
  Unix                                              hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples...


                            problem.	
  Read	
  more	
  about	
  Ramesh	
  Natarajan	
  and	
  the	
  blog.

                            Support	
  Us


                            Support	
  this	
  blog	
  by	
  purchasing	
  one	
  of	
  my	
  ebooks.

                            Bash	
  101	
  Hacks	
  eBook

                            Sed	
  and	
  Awk	
  101	
  Hacks	
  eBook

                            Vim	
  101	
  Hacks	
  eBook

                            Nagios	
  Core	
  3	
  eBook

                            Contact	
  Us


                            Email	
  Me	
  :	
  Use	
  this	
  Contact	
  Form	
  to	
  get	
  in	
  touch	
  me	
  with	
  your	
  comments,	
  quesEons	
  or	
  suggesEons	
  about	
  this	
  site.	
  You	
  can
                            also	
  simply	
  drop	
  me	
  a	
  line	
  to	
  say	
  hello!.

                            Follow	
  us	
  on	
  TwiWer

                            Become	
  a	
  fan	
  on	
  Facebook	
  	
  

                 Copyright	
  ©	
  2008–2012	
  Ramesh	
  Natarajan.	
  All	
  rights	
  reserved	
  |	
  Terms	
  of	
  Service	
  |	
  AdverEse




10	
  of	
  10                                                                                                                                                                                              18	
  Apr	
  12	
  7:30	
  pm

More Related Content

What's hot

Symfony live 2017_php7_performances
Symfony live 2017_php7_performancesSymfony live 2017_php7_performances
Symfony live 2017_php7_performances
julien pauli
 
UNIX - Class1 - Basic Shell
UNIX - Class1 - Basic ShellUNIX - Class1 - Basic Shell
UNIX - Class1 - Basic Shell
Nihar Ranjan Paital
 
python-message-0.1.0
python-message-0.1.0python-message-0.1.0
python-message-0.1.0
勇浩 赖
 
Php7 extensions workshop
Php7 extensions workshopPhp7 extensions workshop
Php7 extensions workshop
julien pauli
 
CyberLink LabelPrint 2.5 Exploitation Process
CyberLink LabelPrint 2.5 Exploitation ProcessCyberLink LabelPrint 2.5 Exploitation Process
CyberLink LabelPrint 2.5 Exploitation Process
Thomas Gregory
 
Exploit Development: EzServer Buffer Overflow oleh Tom Gregory
Exploit Development: EzServer Buffer Overflow oleh Tom GregoryExploit Development: EzServer Buffer Overflow oleh Tom Gregory
Exploit Development: EzServer Buffer Overflow oleh Tom Gregory
zakiakhmad
 
235689260 oracle-forms-10g-tutorial
235689260 oracle-forms-10g-tutorial235689260 oracle-forms-10g-tutorial
235689260 oracle-forms-10g-tutorial
homeworkping3
 
เขียนโปรแกรมใช้คำสั่ง Printf scanf
เขียนโปรแกรมใช้คำสั่ง  Printf scanfเขียนโปรแกรมใช้คำสั่ง  Printf scanf
เขียนโปรแกรมใช้คำสั่ง Printf scanfธงชัย พาศรี
 
C: A Humbling Language
C: A Humbling LanguageC: A Humbling Language
C: A Humbling Language
guestaa63aa
 

What's hot (11)

Symfony live 2017_php7_performances
Symfony live 2017_php7_performancesSymfony live 2017_php7_performances
Symfony live 2017_php7_performances
 
UNIX - Class1 - Basic Shell
UNIX - Class1 - Basic ShellUNIX - Class1 - Basic Shell
UNIX - Class1 - Basic Shell
 
python-message-0.1.0
python-message-0.1.0python-message-0.1.0
python-message-0.1.0
 
Php7 extensions workshop
Php7 extensions workshopPhp7 extensions workshop
Php7 extensions workshop
 
Mysql
MysqlMysql
Mysql
 
CyberLink LabelPrint 2.5 Exploitation Process
CyberLink LabelPrint 2.5 Exploitation ProcessCyberLink LabelPrint 2.5 Exploitation Process
CyberLink LabelPrint 2.5 Exploitation Process
 
Exploit Development: EzServer Buffer Overflow oleh Tom Gregory
Exploit Development: EzServer Buffer Overflow oleh Tom GregoryExploit Development: EzServer Buffer Overflow oleh Tom Gregory
Exploit Development: EzServer Buffer Overflow oleh Tom Gregory
 
235689260 oracle-forms-10g-tutorial
235689260 oracle-forms-10g-tutorial235689260 oracle-forms-10g-tutorial
235689260 oracle-forms-10g-tutorial
 
เขียนโปรแกรมใช้คำสั่ง Printf scanf
เขียนโปรแกรมใช้คำสั่ง  Printf scanfเขียนโปรแกรมใช้คำสั่ง  Printf scanf
เขียนโปรแกรมใช้คำสั่ง Printf scanf
 
C: A Humbling Language
C: A Humbling LanguageC: A Humbling Language
C: A Humbling Language
 
โครงสร้างภาษาซี
โครงสร้างภาษาซีโครงสร้างภาษาซี
โครงสร้างภาษาซี
 

Viewers also liked

50 most frequently used unix linux commands (with examples)
50 most frequently used unix   linux commands (with examples)50 most frequently used unix   linux commands (with examples)
50 most frequently used unix linux commands (with examples)
Rodrigo Maia
 
Is this "thing" connected?
Is this "thing" connected?Is this "thing" connected?
Is this "thing" connected?
Ross Garrett
 
ISTE Interactive Video Presentation
ISTE Interactive Video PresentationISTE Interactive Video Presentation
ISTE Interactive Video Presentation
Graham Johnson
 
Building apps 10x faster with whispir
Building apps 10x faster with whispirBuilding apps 10x faster with whispir
Building apps 10x faster with whispir
Whispir
 
Axway Managed Services for Exchange and Integration Platform
Axway Managed Services for Exchange and Integration PlatformAxway Managed Services for Exchange and Integration Platform
Axway Managed Services for Exchange and Integration Platform
Jean-Claude Bellando
 
Unix tips and tricks
Unix tips and tricksUnix tips and tricks
Unix tips and tricks
Aleksandar Bilanovic
 
Test and Protect Your API
Test and Protect Your APITest and Protect Your API
Test and Protect Your API
SmartBear
 
How API became key to Whispir's growth strategy - Gartner AADI 2016
How API became key to Whispir's growth strategy - Gartner AADI 2016How API became key to Whispir's growth strategy - Gartner AADI 2016
How API became key to Whispir's growth strategy - Gartner AADI 2016
Jordan Walsh
 
Putting order to your API ecosystem
Putting order to your API ecosystemPutting order to your API ecosystem
Putting order to your API ecosystem
Toni Tassani
 
Practical unix utilities for text processing
Practical unix utilities for text processingPractical unix utilities for text processing
Practical unix utilities for text processingAnton Arhipov
 
Chap 4 platform as a service (paa s)
Chap 4 platform as a service (paa s)Chap 4 platform as a service (paa s)
Chap 4 platform as a service (paa s)
Raj Sarode
 
Unix Command Line Productivity Tips
Unix Command Line Productivity TipsUnix Command Line Productivity Tips
Unix Command Line Productivity Tips
Keith Bennett
 
Open API and API Management - Introduction and Comparison of Products: TIBCO ...
Open API and API Management - Introduction and Comparison of Products: TIBCO ...Open API and API Management - Introduction and Comparison of Products: TIBCO ...
Open API and API Management - Introduction and Comparison of Products: TIBCO ...
Kai Wähner
 
Unix command-line tools
Unix command-line toolsUnix command-line tools
Unix command-line toolsEric Wilson
 
Critical Communications as a Service - Moving Whispir to the Cloud
Critical Communications as a Service - Moving Whispir to the CloudCritical Communications as a Service - Moving Whispir to the Cloud
Critical Communications as a Service - Moving Whispir to the Cloud
Amazon Web Services
 
Practical Example of grep command in unix
Practical Example of grep command in unixPractical Example of grep command in unix
Practical Example of grep command in unix
Javin Paul
 

Viewers also liked (18)

50 most frequently used unix linux commands (with examples)
50 most frequently used unix   linux commands (with examples)50 most frequently used unix   linux commands (with examples)
50 most frequently used unix linux commands (with examples)
 
Is this "thing" connected?
Is this "thing" connected?Is this "thing" connected?
Is this "thing" connected?
 
ISTE Interactive Video Presentation
ISTE Interactive Video PresentationISTE Interactive Video Presentation
ISTE Interactive Video Presentation
 
Lte
LteLte
Lte
 
Building apps 10x faster with whispir
Building apps 10x faster with whispirBuilding apps 10x faster with whispir
Building apps 10x faster with whispir
 
Axway Managed Services for Exchange and Integration Platform
Axway Managed Services for Exchange and Integration PlatformAxway Managed Services for Exchange and Integration Platform
Axway Managed Services for Exchange and Integration Platform
 
Unix tips and tricks
Unix tips and tricksUnix tips and tricks
Unix tips and tricks
 
Test and Protect Your API
Test and Protect Your APITest and Protect Your API
Test and Protect Your API
 
How API became key to Whispir's growth strategy - Gartner AADI 2016
How API became key to Whispir's growth strategy - Gartner AADI 2016How API became key to Whispir's growth strategy - Gartner AADI 2016
How API became key to Whispir's growth strategy - Gartner AADI 2016
 
Putting order to your API ecosystem
Putting order to your API ecosystemPutting order to your API ecosystem
Putting order to your API ecosystem
 
Practical unix utilities for text processing
Practical unix utilities for text processingPractical unix utilities for text processing
Practical unix utilities for text processing
 
Chap 4 platform as a service (paa s)
Chap 4 platform as a service (paa s)Chap 4 platform as a service (paa s)
Chap 4 platform as a service (paa s)
 
In-Memory DataBase
In-Memory DataBaseIn-Memory DataBase
In-Memory DataBase
 
Unix Command Line Productivity Tips
Unix Command Line Productivity TipsUnix Command Line Productivity Tips
Unix Command Line Productivity Tips
 
Open API and API Management - Introduction and Comparison of Products: TIBCO ...
Open API and API Management - Introduction and Comparison of Products: TIBCO ...Open API and API Management - Introduction and Comparison of Products: TIBCO ...
Open API and API Management - Introduction and Comparison of Products: TIBCO ...
 
Unix command-line tools
Unix command-line toolsUnix command-line tools
Unix command-line tools
 
Critical Communications as a Service - Moving Whispir to the Cloud
Critical Communications as a Service - Moving Whispir to the CloudCritical Communications as a Service - Moving Whispir to the Cloud
Critical Communications as a Service - Moving Whispir to the Cloud
 
Practical Example of grep command in unix
Practical Example of grep command in unixPractical Example of grep command in unix
Practical Example of grep command in unix
 

Similar to 10 awesome examples for viewing huge log files in unix

50 Most Frequently Used UNIX Linux Commands -hmftj
50 Most Frequently Used UNIX  Linux Commands -hmftj50 Most Frequently Used UNIX  Linux Commands -hmftj
50 Most Frequently Used UNIX Linux Commands -hmftj
LGS, GBHS&IC, University Of South-Asia, TARA-Technologies
 
Examples -partII
Examples -partIIExamples -partII
Examples -partII
Kedar Bhandari
 
RHCSA EX200 - Summary
RHCSA EX200 - SummaryRHCSA EX200 - Summary
RHCSA EX200 - Summary
Nugroho Gito
 
IntroCommandLine.ppt
IntroCommandLine.pptIntroCommandLine.ppt
IntroCommandLine.ppt
GowthamRaju15
 
IntroCommandLine.ppt
IntroCommandLine.pptIntroCommandLine.ppt
IntroCommandLine.ppt
TECHWORLDwithphotoed
 
Workshop on command line tools - day 1
Workshop on command line tools - day 1Workshop on command line tools - day 1
Workshop on command line tools - day 1
Leandro Lima
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
Mufaddal Haidermota
 
Linux commands
Linux commandsLinux commands
Linux commands
Meenu Chopra
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
Harikrishnan Ramakrishnan
 
Lnx
LnxLnx
Doscommands
DoscommandsDoscommands

Similar to 10 awesome examples for viewing huge log files in unix (20)

50 Most Frequently Used UNIX Linux Commands -hmftj
50 Most Frequently Used UNIX  Linux Commands -hmftj50 Most Frequently Used UNIX  Linux Commands -hmftj
50 Most Frequently Used UNIX Linux Commands -hmftj
 
Examples -partII
Examples -partIIExamples -partII
Examples -partII
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
 
50 most frequently used unix
50 most frequently used unix50 most frequently used unix
50 most frequently used unix
 
Unix
UnixUnix
Unix
 
RHCSA EX200 - Summary
RHCSA EX200 - SummaryRHCSA EX200 - Summary
RHCSA EX200 - Summary
 
Mips
MipsMips
Mips
 
IntroCommandLine.ppt
IntroCommandLine.pptIntroCommandLine.ppt
IntroCommandLine.ppt
 
IntroCommandLine.ppt
IntroCommandLine.pptIntroCommandLine.ppt
IntroCommandLine.ppt
 
Workshop on command line tools - day 1
Workshop on command line tools - day 1Workshop on command line tools - day 1
Workshop on command line tools - day 1
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
 
Linux com
Linux comLinux com
Linux com
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Linux
LinuxLinux
Linux
 
Linux
LinuxLinux
Linux
 
Linux
LinuxLinux
Linux
 
Linux
LinuxLinux
Linux
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Lnx
LnxLnx
Lnx
 
Doscommands
DoscommandsDoscommands
Doscommands
 

More from chinkshady

25 most frequently used linux ip tables rules examples
25 most frequently used linux ip tables rules examples25 most frequently used linux ip tables rules examples
25 most frequently used linux ip tables rules exampleschinkshady
 
15 practical grep command examples in linux : unix
15 practical grep command examples in linux : unix15 practical grep command examples in linux : unix
15 practical grep command examples in linux : unixchinkshady
 
10 useful sar (sysstat) examples for unix : linux performance monitoring
10 useful sar (sysstat) examples for unix : linux performance monitoring10 useful sar (sysstat) examples for unix : linux performance monitoring
10 useful sar (sysstat) examples for unix : linux performance monitoringchinkshady
 
9 steps to install and configure postgre sql from source on linux
9 steps to install and configure postgre sql from source on linux9 steps to install and configure postgre sql from source on linux
9 steps to install and configure postgre sql from source on linuxchinkshady
 
7 strace examples to debug the execution of a program in linux
7 strace examples to debug the execution of a program in linux7 strace examples to debug the execution of a program in linux
7 strace examples to debug the execution of a program in linuxchinkshady
 
7 linux fdisk command examples to manage hard disk partition
7 linux fdisk command examples to manage hard disk partition7 linux fdisk command examples to manage hard disk partition
7 linux fdisk command examples to manage hard disk partitionchinkshady
 
6 examples to backup linux using dd command (including disk to disk)
6 examples to backup linux using dd command (including disk to disk)6 examples to backup linux using dd command (including disk to disk)
6 examples to backup linux using dd command (including disk to disk)chinkshady
 
4 effective methods to disable se linux temporarily or permanently
4 effective methods to disable se linux temporarily or permanently4 effective methods to disable se linux temporarily or permanently
4 effective methods to disable se linux temporarily or permanentlychinkshady
 
36 items to capture for practical hardware asset tracking
36 items to capture for practical hardware asset tracking36 items to capture for practical hardware asset tracking
36 items to capture for practical hardware asset trackingchinkshady
 

More from chinkshady (9)

25 most frequently used linux ip tables rules examples
25 most frequently used linux ip tables rules examples25 most frequently used linux ip tables rules examples
25 most frequently used linux ip tables rules examples
 
15 practical grep command examples in linux : unix
15 practical grep command examples in linux : unix15 practical grep command examples in linux : unix
15 practical grep command examples in linux : unix
 
10 useful sar (sysstat) examples for unix : linux performance monitoring
10 useful sar (sysstat) examples for unix : linux performance monitoring10 useful sar (sysstat) examples for unix : linux performance monitoring
10 useful sar (sysstat) examples for unix : linux performance monitoring
 
9 steps to install and configure postgre sql from source on linux
9 steps to install and configure postgre sql from source on linux9 steps to install and configure postgre sql from source on linux
9 steps to install and configure postgre sql from source on linux
 
7 strace examples to debug the execution of a program in linux
7 strace examples to debug the execution of a program in linux7 strace examples to debug the execution of a program in linux
7 strace examples to debug the execution of a program in linux
 
7 linux fdisk command examples to manage hard disk partition
7 linux fdisk command examples to manage hard disk partition7 linux fdisk command examples to manage hard disk partition
7 linux fdisk command examples to manage hard disk partition
 
6 examples to backup linux using dd command (including disk to disk)
6 examples to backup linux using dd command (including disk to disk)6 examples to backup linux using dd command (including disk to disk)
6 examples to backup linux using dd command (including disk to disk)
 
4 effective methods to disable se linux temporarily or permanently
4 effective methods to disable se linux temporarily or permanently4 effective methods to disable se linux temporarily or permanently
4 effective methods to disable se linux temporarily or permanently
 
36 items to capture for practical hardware asset tracking
36 items to capture for practical hardware asset tracking36 items to capture for practical hardware asset tracking
36 items to capture for practical hardware asset tracking
 

Recently uploaded

How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 

Recently uploaded (20)

How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 

10 awesome examples for viewing huge log files in unix

  • 1. 10  Awesome  Examples  for  Viewing  Huge  Log  Files  in  Unix hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples... Home About Free  eBook Archives Best  of  the  Blog Contact 10  Awesome  Examples  for  Viewing  Huge  Log  Files  in  Unix by  Ramesh  Natarajan  on  August  12,  2009 10 Like 7 Tweet 25 Viewing  huge  log  files  for  trouble  shooEng  is  a  mundane  rouEne  tasks  for sysadmins  and  programmers. In  this  arEcle,  let  us  review  how  to  effecEvely  view  and  manipulate  huge  log  files  using  10  awesome  examples. Example  1:  Display  specific  lines  (based  on  line  number)  of  a  file  using  sed  command View  only  the  specific  lines  menEoned  by  line  numbers. Syntax: $ sed -n -e Xp -e Yp FILENAME sed  :  sed  command,  which  will  print  all  the  lines  by  default. -­‐n  :  Suppresses  output. -­‐e  CMD  :  Command  to  be  executed Xp:  Print  line  number  X Yp:  Print  line  number  Y FILENAME  :  name  of  the  file  to  be  processed. 1  of  10 18  Apr  12  7:30  pm
  • 2. 10  Awesome  Examples  for  Viewing  Huge  Log  Files  in  Unix hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples... The  example  menEoned  below  will  print  the  lines  120,  145,  1050  from  the  syslog. $ sed -n -e 120p -e 145p -e 1050p /var/log/syslog In  the  following  example,    you  can  view  the  content  of  var/log/cron  from  line  number  101  to  110. M  –  StarEng  line  number N  –  Ending  line  number Syntax: sed -n M,Np FILENAME $ sed -n 101,110p /var/log/cron Example  2:  Display  first  N  lines  of  a  file  using  head  command This  example  displays  only  first  15  lines  of  /var/log/maillog  file.  Change  15  to  10  to  display  the  first  10  lines  of  a  log  file. Syntax: head -n N FILENAME $ head -n 15 /var/log/maillog Example  3:  Ignore  last  N  lines  of  a  file  using  head  command This  example  shows  how  to  ignore  the  last  N  lines,  and  show  only  the  remaining  lines  from  the  top  of  file. The  following  example  will  display  all  the  lines  of  the  /var/log/secure  except  the  last  250  lines. Syntax: head -n -N FILENAME $ head -n -250 /var/log/secure Example  4:  Display  last  N  lines  of  the  file  using  tail  command This  example  displays  only  last  50  lines  of  /var/log/messages  file.  Change  50  to  100  to  display  the  last  100  lines  of  the  log  file. Syntax: tail -n N FILENAME $ tail -n 50 /var/log/messages Example  5:  Ignore  first  N-­‐1  lines  of  the  file  using  tail  command This  example  shows  how  to  ignore  the  first  N-­‐1  lines  and  show  only  the  remaining  of  the  lines. The  following  example  ignores  the  1st  four  lines  of  the  /etc/xinetd.conf,  which  contains  only  the  comments. Syntax: tail -n +N FILENAME $ tail -n +5 /etc/xinetd.conf defaults { instances = 60 log_type = SYSLOG authpriv log_on_success = HOST PID log_on_failure = HOST cps = 25 30 } includedir /etc/xinetd.d Example  6:  View  growing  log  file  in  real  Mme  using  tail  command 2  of  10 18  Apr  12  7:30  pm
  • 3. 10  Awesome  Examples  for  Viewing  Huge  Log  Files  in  Unix hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples... This  is  probably  one  of  the  most  used  command  by  sysadmins.To  view  a  growing  log  file  and  see  only  the  newer  contents  use  tail  -­‐f  as shown  below. The  following  example  shows  the  content  of  the  /var/log/syslog  command  in  real-­‐Eme. Syntax: tail -f FILENAME $ tail -f /var/log/syslog Example  7:  Display  specific  lines  (based  on  line  number)  of  a  file  using  head  and  tail  command The  example  below  will  display  line  numbers  101  –  110  of  /var/log/anaconda.log  file M  –  StarEng  line  number N  –  Ending  line  number Syntax: cat file | tail -n +N | head -n (M-N+1) $ cat /var/log/anaconda.log | tail -n +101 | head -n 10 cat  :  prints  the  whole  file  to  the  stdout. tail  -­‐n  +101  :  ignores  lines  upto  the  given  line  number,  and  then  start  prinEng  lines  aaer  the  given  number. head  -­‐n  10  :  prints  the  first  10  line,  that  is  101  to  110  and  ignores  the  remaining  lines. Example  8:  Display  lines  matching  a  paPern,  and  few  lines  following  the  match. The  following  example  displays  the  line  that  matches  “IniEalizing  CPU”  from  the  /var/log/dmesg  and  5  lines  immediately  aaer  this match. # grep "Initializing CPU#1" /var/log/dmesg Initializing CPU#1 [Note: The above shows only the line matching the pattern] # grep -A 5 "Initializing CPU#1" dmesg Initializing CPU#1 Calibrating delay using timer specific routine.. 3989.96 BogoMIPS (lpj=1994982) CPU: After generic identify, caps: bfebfbff 20100000 00000000 00000000 CPU: After vendor identify, caps: bfebfbff 20100000 00000000 00000000 monitor/mwait feature present. CPU: L1 I cache: 32K, L1 D cache: 32K [Note: The above shows the line and 5 lines after the pattern matching] Refer  our  earlier  arEcle  Get  a  Grip  on  the  Grep!  –  15  PracEcal  Grep  Command  Examples  that  explains  how  to  use  grep  command. As  explained  in  our  previous  grep  command  arEcle,  the  following  operaEons  are  possible. Viewing  specific  lines  idenEfied  by  paWerns,  which  is  grep’s  default  funcEonality. Viewing  only  the  matched  characters. Viewing  N  lines  aaer  the  match  with  -­‐A  opEon. Viewing  N  lines  before  the  match  with  -­‐B  opEon. Viewing  N  lines  around  the  match  with  -­‐C  opEon. Example  9:  Displaying  specific  bytes  from  a  file. The  following  example  explains  how  to  display  either  the  top  40  or  the  last  30  bytes  of  a  file. Display  first  40  bytes  from  syslog. 3  of  10 18  Apr  12  7:30  pm
  • 4. 10  Awesome  Examples  for  Viewing  Huge  Log  Files  in  Unix hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples... $ head -c40 /var/log/syslog Display  last  30  bytes  from  syslog. $ tail -c30 /var/log/syslog Example  10:  Viewing  compressed  log  files Aaer  a  specific  Eme  all  the  system  log  files  are  rotated,  and  compressed.  You  can  uncompress  it  on  the  fly,  and  pipe  the  output  to another  unix  command  to  view  the  file  as  explained  below. Refer  to  our  earlier  arEcle  The  Power  of  Z  Commands  –  Zcat,  Zless,  Zgrep,  Zdiff  Examples Display  the  first  N  lines  of  a  compressed  file. $ zcat file.gz | head -250 Display  the  last  N  lines  of  a  compressed  file. $ zcat file.gz | tail -250 Ignoring  the  last  N  lines  of  a  compressed  file. $ zcat file.gz | head -n -250 Ignoring  the  first  N  lines  of  a  compressed  file. $ zcat file.gz | tail -n +250 Viewing  the  lines  matching  the  paWern $ zcat file.gz | grep -A2 'error' Viewing  parEcular  range  of  lines  idenEfied  by  line  number. $ zcat file.gz | sed -n -e 45p -e 52p If  you  need  to  return,  bookmark  this  page  at  del.icio.us  for  handy  reference. 10 Tweet 25 Like 7  Share  Comment If  you  enjoyed  this  arMcle,  you  might  also  like.. 1. 50  Linux  Sysadmin  Tutorials Awk  IntroducEon  –  7  Awk  Print  Examples 2. 50  Most  Frequently  Used  Linux  Commands  (With  Examples) Advanced  Sed  SubsEtuEon  Examples 3. Top  25  Best  Linux  Performance  Monitoring  and  Debugging 8  EssenEal  Vim  Editor  NavigaEon  Fundamentals Tools 25  Most  Frequently  Used  Linux  IPTables  Rules 4. Mommy,  I  found  it!  –  15  PracEcal  Linux  Find  Command Examples Examples Turbocharge  PuTTY  with  12  Powerful  Add-­‐Ons 5. Linux  101  Hacks  2nd  EdiEon  eBook   4  of  10 18  Apr  12  7:30  pm
  • 5. 10  Awesome  Examples  for  Viewing  Huge  Log  Files  in  Unix hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples... Tags:  Linux  Log  File  ManipulaEon,  Manage  Large  Unix  Log  Files,  View  Big  Linux  Files,  View  ParEal  Unix  Log  Files {  15  comments…  read  them  below  or  add  one  } 1  Robert  Fisher  August  12,  2009  at  1:22  am I  have  used  example  8  many  Emes  looking  for  a  response  to  a  specific  error.  I  have  also  used  the  tail  and  head  commands  as well,  never  really  got  into  sed  so  much,  but  that  example  was  a  good  one.  Thanks  for  posEng  this  informaEon. 2  Nico  August  12,  2009  at  2:23  am FYI:  Later  versions  of  less(1)  also  displays  .gz  files. 3  Nico  August  12,  2009  at  2:26  am O  –  and  before  I  forget…  You  can  combine  some  of  the  soluEons,  for  example  combine  #6  and  #8:  $  tail  -­‐f  /some/file  |  grep keyword This  will  give  you  only  the  lines  containing  the  keyword  as  it  gets  logged. 4  Nicholas  Sterling  August  12,  2009  at  2:40  am How  about sed  -­‐n  300,350p  foo.log Edit:  oops  —  how  embarrassing.  You  covered  it  and  I  missed  it  somehow. 5  Ashish  August  12,  2009  at  5:12  am Great  post, very  useful  arEcle. 6  Ronald  August  12,  2009  at  8:45  am The  “sed  -­‐n  101,110p  /var/log/cron”  approach  is  really  useful.  Although  I  have  to  say  that  I  wouldn’t  have  come  up  with  that command  when  looking  at  the  sed-­‐manual….   Sed: -­‐n,  –quiet,  –silent suppress  automaEc  prinEng  of  paWern  space p  Print  the  current  paWern  space. 7  Koen  De  Jaeger  August  13,  2009  at  9:27  am 5  of  10 18  Apr  12  7:30  pm
  • 6. 10  Awesome  Examples  for  Viewing  Huge  Log  Files  in  Unix hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples... Very  nice! 8  Ramesh  Natarajan  August  14,  2009  at  8:56  am @Robert, Sed  can  do  lot  of  amazing  things.  But  it  is  hard  to  remember  those  on  top  of  your  head.  I  have  close  to  100  sed  command  that solves  some  common  problem  in  a  notebook,  which  I  copy/paste  whenever  nedded. Example  1  of  this  arEcle  is  in  that  list.   @Nico, Thanks  for  poinEng  that  out.  Most  of  us  forget  that  grep  can  be  combined  with  “tail  -­‐f ”.  This  indeed  can  be  very  handy. @Nicholas, Don’t  worry.  I’ve  done  similar  mistakes  several  Emes.  So,  I  can  related  to  it.   @Ashish,  @Koen I’m  very  glad  that  you  found  this  arEcle  helpful. @Ronald, Yeah.  That  is  the  beauty  of  Unix.  We  can  do  amazing  things  with  linux  commands  that  were  not  even  clearly  menEoned  in  the manual.  This  is  also  the  reason  Windows  admins  don’t  like  Linux,  as  they  hate  reading  manuals.  Even  when  they  read  the manuals,  it  is  not  really  explained  very  well. 9  ShekarKCB  August  24,  2009  at  5:13  am Nice  ArEcle,  uses  of  head,  tail,  and  sed  were  nicely  covered.  Thanks  for  the  same. 10  Ted  September  13,  2009  at  12:06  am The  sed  Ep  I  will  use  for  sure  and  I  also  like  the  tail  -­‐f  |grep.  Thank  you  Ramesh. Any  chance  you  will  be  posEng  your  most  useful  sed  commands  from  your  note  book  at  some  Eme? 11  Bipin  May  6,  2010  at  5:49  am Great  stuffs.  Thanks  for  sharing. 12  Brad  July  14,  2010  at  8:49  am You  showed  zcat,  but  there  is  also  bzcat  and  lzcat,  and  probably  a  few  others.  so  if  you  have  a  file  that  is  bzip2ʹ′d  or  lzma’d,  then you  can  use  bzcat  and  lzcat  respecEvely  to  display  them.  Also,  it  can  be  piped  to  the  less  command  so  it  can  be  scrolled  across the  terminal. 13  anton  August  6,  2010  at  3:24  am Is  the  following  any  beWer  (i.e.  more  efficient)  than  zcat  logfile.gz  |  tail  ??? #  emulate  ztail  ??? zless  +F  logfile.gz 14  logan  February  21,  2011  at  12:11  am or  you  can  always  use 6  of  10 18  Apr  12  7:30  pm
  • 7. 10  Awesome  Examples  for  Viewing  Huge  Log  Files  in  Unix hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples... cat  logfile  |  less which  lets  you  scroll  through  it OR cat  logfile  |  less  |  grep  “PATTERN” which  lets  you  scroll  through  matching  entries I  search  for  sshd  for  my  auth.log  file  and  can  see  all  and  only  the  ssh  server  entries 15  ks  March  2,  2011  at  5:45  pm A  nice  and  handy  tutorial.  A  few  comments  about  the  above  comment  by  @logan: $  cat  logfile  |  less has  the  same  effect  as $  less  logfile and  hence  the  use  of  the  pipe  is  redundant  (‘$’  stands  for  the  command  prompt).  Both  lets  you  scroll  through  the  logfile  and search  for  paWern  using  ‘/’  and  ‘?’  (similar  to  vim). However,  the  second $  cat  logfile  |  less  |  grep  “PATTERN” does  not  let  you  scroll,  but  the  following $  grep  “PATTERN”  logfile  |  less will  —  through  only  the  the  lines  that  has  the  matching  paWern  “PATTERN”. Leave  a  Comment Name E-­‐mail Website  NoEfy  me  of  followup  comments  via  e-­‐mail Submit Previous  post:  Google  Next-­‐GeneraEon  Search  Engine  is  Already  Here  For  You Next  post:  Ubuntu  Tips:  How  To  Setup  Dual  Monitor 7  of  10 18  Apr  12  7:30  pm
  • 8. 10  Awesome  Examples  for  Viewing  Huge  Log  Files  in  Unix hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples... Sign  up  for  our  free  email  newsleWer   you@address.com           Sign Up            RSS    TwiWer    Facebook   Search EBOOKS 8  of  10 18  Apr  12  7:30  pm
  • 9. 10  Awesome  Examples  for  Viewing  Huge  Log  Files  in  Unix hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples... POPULAR  POSTS 12  Amazing  and  EssenEal  Linux  Books  To  Enrich  Your  Brain  and  Library 50  UNIX  /  Linux  Sysadmin  Tutorials 50  Most  Frequently  Used  UNIX  /  Linux  Commands  (With  Examples) How  To  Be  ProducEve  and  Get  Things  Done  Using  GTD 30  Things  To  Do  When  you  are  Bored  and  have  a  Computer Linux  Directory  Structure  (File  System  Structure)  Explained  with  Examples Linux  Crontab:  15  Awesome  Cron  Job  Examples Get  a  Grip  on  the  Grep!  –  15  PracEcal  Grep  Command  Examples Unix  LS  Command:  15  PracEcal  Examples 15  Examples  To  Master  Linux  Command  Line  History Top  10  Open  Source  Bug  Tracking  System Vi  and  Vim  Macro  Tutorial:  How  To  Record  and  Play Mommy,  I  found  it!  -­‐-­‐  15  PracEcal  Linux  Find  Command  Examples 15  Awesome  Gmail  Tips  and  Tricks 15  Awesome  Google  Search  Tips  and  Tricks RAID  0,  RAID  1,  RAID  5,  RAID  10  Explained  with  Diagrams Can  You  Top  This?  15  PracEcal  Linux  Top  Command  Examples Top  5  Best  System  Monitoring  Tools Top  5  Best  Linux  OS  DistribuEons How  To  Monitor  Remote  Linux  Host  using  Nagios  3.0 Awk  IntroducEon  Tutorial  –  7  Awk  Print  Examples How  to  Backup  Linux?  15  rsync  Command  Examples The  UlEmate  Wget  Download  Guide  With  15  Awesome  Examples Top  5  Best  Linux  Text  Editors Packet  Analyzer:  15  TCPDUMP  Command  Examples The  UlEmate  Bash  Array  Tutorial  with  15  Examples 3  Steps  to  Perform  SSH  Login  Without  Password  Using  ssh-­‐keygen  &  ssh-­‐copy-­‐id Unix  Sed  Tutorial:  Advanced  Sed  SubsEtuEon  Examples UNIX  /  Linux:  10  Netstat  Command  Examples The  UlEmate  Guide  for  CreaEng  Strong  Passwords 6  Steps  to  Secure  Your  Home  Wireless  Network Turbocharge  PuTTY  with  12  Powerful  Add-­‐Ons About  The  Geek  Stuff  My  name  is  Ramesh  Natarajan.  I  will  be  posEng  instrucEon  guides,  how-­‐to,  troubleshooEng  Eps  and  tricks on  Linux,  database,  hardware,  security  and  web.  My  focus  is  to  write  arEcles  that  will  either  teach  you  or  help  you  resolve  a 9  of  10 18  Apr  12  7:30  pm
  • 10. 10  Awesome  Examples  for  Viewing  Huge  Log  Files  in  Unix hWp://www.thegeekstuff.com/2009/08/10-­‐awesome-­‐examples... problem.  Read  more  about  Ramesh  Natarajan  and  the  blog. Support  Us Support  this  blog  by  purchasing  one  of  my  ebooks. Bash  101  Hacks  eBook Sed  and  Awk  101  Hacks  eBook Vim  101  Hacks  eBook Nagios  Core  3  eBook Contact  Us Email  Me  :  Use  this  Contact  Form  to  get  in  touch  me  with  your  comments,  quesEons  or  suggesEons  about  this  site.  You  can also  simply  drop  me  a  line  to  say  hello!. Follow  us  on  TwiWer Become  a  fan  on  Facebook     Copyright  ©  2008–2012  Ramesh  Natarajan.  All  rights  reserved  |  Terms  of  Service  |  AdverEse 10  of  10 18  Apr  12  7:30  pm