Error:
[will@will Dropbox]$ sudo 'cd Coderepo/'
sudo: cd Coderepo/: command not found
Answer: cd is a shell built-in command. It cannot be run in a child process. The child process simply cannot change the working directory of its parent shell process.
Redirection also does not work with sudo for the same reason (redirection being a shell "thing")
$ sudo 'ls /root/restricted >/root/out.txt'
sudo: ls /root/restricted >/root/out.txt: command not found
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
Error:
当前目录不产生core调试文件, 虽然可以修改/proc/sys/kernel/core_patern 来更改core文件目录,但如何让core dump在程序当前运行的目录产生?
Answer
none
阅读(1317) | 评论(0) | 转发(0) |