Updated: 11 January 2023
Show last 3 lines of a file
tail -n 3 /my/file.cs
Freelance software engineer United Kingdom
Updated: 11 January 2023
Show last 3 lines of a file
tail -n 3 /my/file.cs
Updated: 16 July 2026
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
Top and tail a file with some additional text
cat <(echo @startyaml) deploys.yaml <(echo @endyaml)
Updated: 30 November 2025
Open file scrolled to the end:
less +G app.log
+ run a command when the file is openedG jump to endWith less open, truncate / un-wrap long lines
-S