Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 'lsof' 的结果重定向到一个文件,但它不是这样工作的。
$ sudo ./lsof > result.txt -bash: result.txt:
有没有人为什么它不起作用?
因为可能是您没有写入文件的权限。尝试以下操作:
须藤lsof | sudo tee results.text
或者
须藤-s
lsof | 发球结果.txt