Bash - Output the last parts of a file with tail

# Output the last part of files, print the last part (10 lines by default) of each FILE; tail /var/path/some.log # continuously retry the file for more data tail -f /var/path/some.log # output the last 50 lines of file tail -n 50 /var/path/some.log

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.