/ usr / bin / time:没有这样的文件或目录

时间:2021-09-03 19:26:34

I'm trying to run the time command for a file on a virtual machine running Fedora 19 64-bit and I get the message "/usr/bin/time: No such file or directory". I tried googling, but it appears it's something that I should already have. How do I get this on my computer?

我正在尝试为运行Fedora 19 64位的虚拟机上的文件运行time命令,我收到消息“/ usr / bin / time:没有这样的文件或目录”。我试过谷歌搜索,但它似乎是我应该已经拥有的东西。我怎么在我的电脑上得到这个?

2 个解决方案

#1


2  

For those on a raspberry pi or similar debian-based distributions, I found that I could install the package time (sudo apt install time) to obtain access to the time command.

对于那些使用树莓派或类似的基于debian的发行版的人,我发现我可以安装包时间(sudo apt install time)来获取对time命令的访问权限。

#2


0  

It might be in other locations. I'd start by typing:

它可能在其他地方。我先输入:

which time

This command will give you the path to time, if it's anywhere in your path.

如果路径中的任何位置,此命令将为您提供时间路径。

If you need to build it yourself, you can get the source here:

如果您需要自己构建它,可以在这里获取源代码:

http://directory.fsf.org/wiki/Time

http://directory.fsf.org/wiki/Time

#1


2  

For those on a raspberry pi or similar debian-based distributions, I found that I could install the package time (sudo apt install time) to obtain access to the time command.

对于那些使用树莓派或类似的基于debian的发行版的人,我发现我可以安装包时间(sudo apt install time)来获取对time命令的访问权限。

#2


0  

It might be in other locations. I'd start by typing:

它可能在其他地方。我先输入:

which time

This command will give you the path to time, if it's anywhere in your path.

如果路径中的任何位置,此命令将为您提供时间路径。

If you need to build it yourself, you can get the source here:

如果您需要自己构建它,可以在这里获取源代码:

http://directory.fsf.org/wiki/Time

http://directory.fsf.org/wiki/Time