Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hoytech
· 5y ago · 0 comments
Not sure how standard it is, but at least on linux you can do "head -3" as a short-cut for "head -n 3". Same with tail.
Comments
[–]
techbio
5y ago
I habitually type
(head|tail) -33
to quickly fill the terminal window with text.
Edit: that | is an OR not a pipe.
[–]
indigodaddy
5y ago
Yes I do the same because in fact on Solaris 10/11, only -X works. There is no -n switch. So I believe -X is more reliable across unixes.
[–]
seanhunter
5y ago
That's the old school unix way. "-n" was introduced with POSIX iinvmm