tail

Updated: 11 January 2023

Show last 3 lines of a file

tail -n 3 /my/file.cs

cat

Updated: 21 May 2023

Append contents of all matching files to sum.log

cat *.log >> sum.log

Overwrite sum.log with contents of all matching files

cat *.log > sum.log

less

Updated: 20 April 2023

Open file scrolled to the end:

less +G app.log
  • + run a command when the file is opened
  • G jump to end