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.
有人可以为此错误提出解决方法:
cat /bin/ls |xxd -g 1 -i | xxd -r xxd: sorry, cannot seek backwards.
但如果你这样做:
cat /bin/ls |xxd -g 1 | xxd -r
没关系。这是一个错误吗?
过去我能够执行此操作,但现在我只是想知道是否存在任何替代方案?
试试xxd -r -p。这对我有用:
xxd -r -p
:; cat /bin/ls | xxd -g 1 -i | xxd -r -p | md5sum - /bin/ls fd20b8459b80679cddf83adf58277264 - fd20b8459b80679cddf83adf58277264 /bin/ls