Linux 常见问题与解决方法
Permission Denied
问题描述
| 1 | -bash: ./xampp.run: Permission denied | 
解决方法
- 用户缺少某种权限 
- $ chmod 777 xampp.run $ chmod +x xampp.run #给xampp.run执行权限 $ chmod +w xampp.run #给xampp.run写权限 $ chmod +r xampp.run #给xampp.run读权限- 1 
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 ## /usr/bin/env: ‘python(3)\r’: No such file or directory
 ### 问题描述
 * DOS系统下和Linux系统下对于换行键的表示不同:
 * windows下,用连续的'\r'和'\n'两个字符进行换行。'\r'为回车符,'\n'为换行符
 * 在Linux下,用'\n'进行换行
 * ```bash
 $ /usr/bin/env: ‘python(3)\r’: No such file or directory
解决方法
- 方法一:vim打开文件,输入 - :set ff=unix后回车,保存文件并退出- :wq
- 方法二: - 1 
 2- $ sudo apt-get install dos2unix 
 $ dos2unix <filename>
 
        