/bin/bash
LINK_LIBRERIA=https://github.com/greatscottgadgets/ubertooth/archive/refs/main.sh: line 29: sudo: command not found 此问题与注释命令wget和tar相同 ugo权限包括: $ ls -l-rw-rw-r-- 1main.sh
-rw-rw-r-- 1 k1k4ss0 k1k4s
在bash脚本(运行在REHL5上)中,我使用/usr/bin/time命令(而不是内置时命令)记录在同一脚本中运行的其他命令的运行时间。我面临的问题是,我想记录时间的一些命令不是内置命令或外部脚本,而是在脚本中声明的函数,或者是来自不同脚本的函数。我发现time命令失败时出错,如下所示:
/usr/bin/time: cannot run shared-f