Linux下执行py文件提示"No such file or directory"
找到了hash-identifier(Software to identify the different types of hashes used to encrypt data and especially passwords.)的源码,在Windows下创建文本复制进去,再将“hash-identifier.py”传到Linux(Ubuntu)执行"./hash-identifier.py",提示"No such file or directory",而"python hash-identifier.py"则可以,最后发现是文件格式问题,vim中查看":set fileformat"果然是dos,vim中"set ff=unix"解决:可直接执行"./hash-identifier.py"
Labels: Coding, Linux, Operation and Maintenance, Windows
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home