Linux – How to view formatted iotop log file in terminal with a cat

iolinux

So I have logged the history of Disk usage with a iotop > iohis.log

How can I view the file so it is formatted nicely and I can actually find the issue.
I thought I could use the cat but it just fast worwards the whole text. =(.
Could you give me any hints on how to view log file in a nice way?

Best Answer

You should not use cat. It just displays the whole file content and then it exits.

You have to use less. Also, you can combine grep and less to find some specific pattern. For example:

$ grep error /path/to/file | less

There are many other useful utilities available. Here are some: head, tail, and awk...

Related Topic