3 ms·
$ which time time: shell reserved word $ ls /usr/bin/time /bin/time ls: cannot access '/usr/bin/time': No such file or directory ls: cannot acce
by hobarrera 10y ago
$ which time
time: shell reserved word
$ ls /usr/bin/time /bin/time
ls: cannot access '/usr/bin/time': No such file or directory
ls: cannot access '/bin/time': No such file or directory
Looks like something specific to the author's distribution.
- myrandomcomment 10y agoHe is on MacOS.
- pmontra 10y agoIt's time -l on BSD derivatives and time -v on GNU userlands.
- ams6110 10y agoIt's a BSD thing.
- ramshorns 10y agoThere's a GNU time as well, but it appears not to always be installed by default.
- voltagex_ 10y agoYep. GNU source: http://git.savannah.gnu.org/cgit/time.git/tree/ http://git.savannah.gnu.org/cgit/time.git/tree/ BSD source: https://github.com/freebsd/freebsd/blob/f5d95e1f8d32db4ccccfd5ad9cecb21ed07a695d/usr.bin/time/time.c https://github.com/freebsd/freebsd/blob/f5d95e1f8d32db4ccccf... Busybox source: https://github.com/mirror/busybox/blob/f88e3bfa8ded4f1c7e7d2143a1cfcbbdfe5e8541/miscutils/time.c https://github.com/mirror/busybox/blob/f88e3bfa8ded4f1c7e7d2... Toybox source: https://github.com/landley/toybox/blob/master/toys/posix/time.c https://github.com/landley/toybox/blob/master/toys/posix/tim... This would have been a lot easier if I'd known GitHub has a `filename:` search
- kylek 10y agoExists on a debian(/testing?) system I've: $ time ls / bin boot dev etc home lib lib64 lost+found media mnt opt proc root run sbin srv sys tmp usr var real 0m0.004s user 0m0.000s sys 0m0.000s $ /usr/bin/time ls / bin boot dev etc home lib lib64 lost+found media mnt opt proc root run sbin srv sys tmp usr var 0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata 2304maxresident)k 0inputs+0outputs (0major+109minor)pagefaults 0swaps Edit: formatting
- kevinoid 10y agoSometimes. It depends whether you have the time[1] package installed. 1. https://packages.debian.org/sid/time https://packages.debian.org/sid/time
- dredmorbius 10y agoOn my Android system with Termux installed, the system 'time' is the Busybox implementation, so yes, YMMV. Which gives new meaning to the relativity and vagueries of time....