File Manipulation and Examination
Every entity in the Unix operating system is a file. It may be called a directory, socket, or stream, but they all have inode numbers and they are all files. As such, file manipulation and examination is an extremely important topic. Below are just a few of the many very important file handling programs.
Tail is very simple. It shows you the tail end of a file; just the last few lines. This is invaluable when it comes to error logs. You can use the âfâ flag to âfollowâ the end of the file so every time a program writes to that log you see it instantly. Use âCTRL+Câ to end execution of tail.
tail -f /var/log/php.log