aboutsummaryrefslogtreecommitdiff
path: root/cheat/.cheat/tail
blob: 264931500513a565bf91189640d81ebb255d1298 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# To show the last 10 lines of file
tail file

# To show the last N lines of file
tail -n N file

# To show the last lines of file starting with the Nth
tail -n +N file

# To show the last N bytes of file
tail -c N file

# To show the last 10 lines of file and to wait for file to grow
tail -f file

# To show the last 5 lines of file
tail -5 file