sudo: ulimit: command not found
来源:互联网 发布:航天远景 无人机软件 编辑:程序博客网 时间:2024/05/29 18:34
10 down vote
ulimit
is a shell builtin like cd
, not a separate program.sudo
looks for a binary to run, but there is noulimit
binary, which is why you get the error message. You need to run it in a shell.
However, while you do need to be root to raise the limit to 65535, you probably don’t want to run your program as root. So after you raise the limit you should switch back to the current user.
To do this, run:
sudo sh -c "ulimit -n 65535 && exec su $LOGNAME"
and you will get a new shell, without root privileges, but with the raised limit. Theexec
causes the new shell to replace the process withsudo
privileges, so after you exit that shell, you won’t accidentally end up as root again.
- sudo: ulimit: command not found
- sudo: ulimit: command not found
- sudo: ulimit: command not found
- sudo cd command not found
- sudo: cd: command not found
- sudo xxx command not found
- sudo: cd: command not found
- sudo: cd: command not found
- sudo: mvn: command not found
- CentOS6 sudo: (whatever): command not found
- ubuntu sudo java command not found问题解决
- sudo: mkfs.vfat: command not found
- sudo执行提示Command not found
- ubutu sudo pip command not found
- sudo: add-apt-repository: command not found
- 执行sudo报错command not found
- sudo 找不到 (-bash sudo : command not found)
- ubuntu 下sudo cd 会报command not found
- Dicom学习之一:大尾和小尾LittleEndian/BigEndian
- Why doesn't AlTER SYSTEM SET EVENTS set the events or tracing immediately?
- IOCP+WinSock2新函数打造高性能SOCKET池
- Martin Odersky Scala编程公开课 第三周作业
- evernote-bak
- sudo: ulimit: command not found
- Linux3.0.8 Kernel Configure(make menuconfig配置一)
- google浏览器打开百度搜索结果后为弹出窗口解决方法
- iOS7控件变化及页面效果变化总结
- Android有趣的全透明效果--Activity及Dialog的全透明(附android系统自带图标大全)
- MFC&ATL&STL比较
- FCKeditor工具栏设置、自动换行、换行间距 的解决办法
- OCP-1Z0-053-V12.02-494题
- RAC 起停管理