Ghamura

Linux foundationsLesson 3 of 7

Reading files like an analyst

Read the start, end and size of any file, and tell what a file really is.

0 of 5 tasks · about 9 min

  1. Step 1

    The problem with cat

    The company's online shop runs on this server, and its web server writes one line for every visit to /var/log/nginx/access.log.

    You already know cat. Try it on this log and see what happens:

    cat /var/log/nginx/access.log
    

    (Type cat /var/log/ng and press Tab to save typing.)

    Print the whole web access log with cat.

    Do it in the terminal. This ticks itself off when you have.

4 more steps after this one

Print the whole web access log with cat.
Practice lab for "Reading files like an analyst". Type commands here and press Enter. Run help to list them.