Ø Show first x lines from file
ü
$head
–n 10 data.txt
Ø Show all lines in filename except
the last x
ü
$head
–n -15 data.txt
Ø Show last x lines from file
ü
$tail
–f –n 10 data.txt
ü
-f
option show new data immediately
Ø Show the entire contents of file
ü
$tail
–n +10 data.txt
ü
$tail
–f logfile
ü
$ps -ef
ü
$ps
–ef | tail –n+2
No comments:
Post a Comment