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 combinegrep
andless
to find some specific pattern. For example:There are many other useful utilities available. Here are some:
head
,tail
, andawk
...