man timeดีแม้ว่าคุณจะไม่ชอบมันผมจะทำให้คุณอ่านอีกครั้งกับความสนใจมากขึ้น ในตอนท้ายของEXAMPLESส่วนคุณจะพบ:
  Users of the bash shell need to use an explicit path in order to run
  the external time command and not the shell builtin variant.  On system
  where time is installed in /usr/bin, the first example would become
       /usr/bin/time wc /etc/hosts
ดังนั้นฉันสมมติว่าคุณใช้ bash shell ซึ่งใช้เวอร์ชันภายในของtimeซึ่งเป็นคำหลักของเชลล์ คุณสามารถตรวจสอบสิ่งนี้ได้โดยใช้คำสั่งต่อไปนี้:
type time
และผลลัพธ์อาจจะเป็น:
time is a shell keyword
หากเป็นกรณีนี้แล้วมีความชัดเจนที่จะใช้จริง คำสั่งคุณต้องใช้เส้นทางที่ชัดเจนของมันtime/usr/bin/time
นอกจากนี้หากคุณไม่ต้องการใช้คำหลักของเชลล์อีกต่อไปtimeคุณสามารถสร้างชื่อแทนถาวรได้ดังนี้:
alias time='/usr/bin/time'
สิ่งนี้จะเขียนทับคีย์เวิร์ดเชลล์timeเนื่องจากคำสั่ง:
type time
จะให้ผลลัพธ์ต่อไปนี้ตอนนี้:
time is aliased to `/usr/bin/time'
               
              
sudo apt-get install --reinstall timeช่วย?