mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-23 06:02:12 +01:00
Added tail cheatsheet
This commit is contained in:
parent
c6441524b0
commit
8d5954268d
1 changed files with 14 additions and 0 deletions
14
cheatsheets/tail
Normal file
14
cheatsheets/tail
Normal file
|
@ -0,0 +1,14 @@
|
|||
# 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
|
Loading…
Reference in a new issue