New answers tagged


ulimit command not found - occurred as only the root user has the privileges to run this command and I was trying to execute it as a normal user. By running this as root, the command executed successfully. Error Resolved - coredumpsize: Can't set limit (Operation not permitted) The issue was resolved by editing the /etc/security/limits.conf and modifying ...


ulimit is a sh family (so bash, ksh etc) builtin. For csh family the command is limit. (zsh is complicated and allows both.) Normal users can not raise their hard limits. Only root can do that. On a typical Linux machine this is done via pam_limits (e.g. in /etc/security/limits.conf and files in /etc/security/limits.d). These settings will take effect ...


To quote @Tombart's answer These limits will be applied after reboot. If you want to apply changes without reboot, modify /etc/pam.d/common-session by adding this line at the end of file: session required


I tried setting up alias for cpulimit -l 50 ffmpeg in .bashrc alias ffmpegl = "cpulimit -l 50 ffmpeg" and then used it in my script with the following code to source aliases shopt -s expand_aliases source /home/your_user/.bashrc Now i can use cpulimit with ffmpeg anywhere inside the script for multiple commands using the alias. Tested on scientific ...

Top 50 recent answers are included