> tail -50f myfile.log
This will tail the last 50 lines of the file. The -f option without a number only looks at the last 10 lines of the file. Adding the extra lines makes it easier to find what you're looking for.
Commands used in this post: tail
I decided to try and put together a basic guide for beginners. Using this blog you can learn to use unix, linux, and OSX command line one command at a time. Each post is self contained solving one problem or performing one task that users can easily replicate. Use the command reference located on the right side of the page to quickly focus on the command of your choice.
No comments:
Post a Comment