我通过progress
安装了brew install progress
% progress -v
progress version 0.13
当我使用mv
命令时,我使用了progress -w
,但由于权限错误,它失败了。
progress -w
No command currently running: cp, mv, dd, tar, cat, rsync, grep, fgrep, egrep, cut, sort, md5sum, sha1sum, sha224sum, sha256sum, sha384sum, sha512sum, adb, gzip, gunzip, bzip2, bunzip2, xz, unxz, lzma, unlzma, zcat, bzcat, lzcat, or wrong permissions.
我应该在某个地方更改使用progress
的权限吗?我做错了什么?
我使用的是macOS塞拉利昂版10.12.6
。
在progress -w
命令之后,我执行了mv
命令,该命令将大约30 to的数据从内部SSD转移到外部HDD。我检查了progress
的错误消息之后,mv
命令仍然有效。
% which mv
/usr/local/opt/coreutils/libexec/gnubin/mv
% mv --version
mv (GNU coreutils) 8.27
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Parker, David MacKenzie, and Jim Meyering.
发布于 2021-08-28 04:13:13
与sudo一起运行的Coreutil命令要求progress
与sudo一起运行,以便查看当前进度。
换句话说,如果您以sudo的形式运行cp、mv等,则需要运行sudo progress
。
发布于 2017-08-18 10:10:38
我觉得很好
progress -w
No command currently running: cp, mv, dd, tar, cat, rsync, grep, fgrep, egrep, cut, sort, md5sum, sha1sum, sha224sum, sha256sum, sha384sum, sha512sum, adb, gzip, gunzip, bzip2, bunzip2, xz, unxz, lzma, unlzma, zcat, bzcat, lzcat, or wrong permissions.
意味着当前没有mv,cp进程正在运行。
可能在运行进度-w之前文件已被移动。
https://unix.stackexchange.com/questions/386732
复制相似问题