Piv txwv siv cov lus txib "sijhawm"

Ib qho qhia luv luv

Yog tias koj xav pom ntau npaum li cas CPU lub sij hawm lo lus txib "head -n 10000 largefile.txt" koj yuav siv tau:

lub sij hawm lub taub hau -n 10000 massefile.txt tiag 0m4.866s neeg 0m0.001s sys 0m0.021s CPU lub sijhawm

Yuav kom nkag mus rau GNU version ntawm lub sij hawm hais kom ua koj yuav tsum qhia meej txog txoj kev tag nrho, xws li / usr / bin / lub sij hawm . Qhov no version muab ntau functionality, xws li nco thiab I / O txheeb cais. Piv txwv li:

\ n% \ n% s \ n% \ n% s, \ n% U neeg, \ n% S system, \ n% M nco \ n% x raws li lub taub hau -n 10000 largefile.txt 0: 07.96 dhau los, 0.00 neeg siv, 0.01 system, 1 nco 0 txheej xwm

Rau ntau cov kev xaiv thiab lub chaw ntawm ntau yam kev ntsuas saib lub sij hawm tus txiv neej page .