ulimit command on 14.04

Ralf Mardorf silver.bullet at zoho.com
Mon Feb 29 18:08:28 UTC 2016


On Mon, 29 Feb 2016 19:00:54 +0100, Ralf Mardorf wrote:
>I don't know why you can't run
>
>  ulimit -a
>
>as user, but 
>
>  sudo ulimit -a
>
>can't work, because ulimit is part of the shell and not an external
>program, but sudo executes a command and doesn't pass the command to
>the invoked shell, OTOH
>
>  su -c "ulimit -a"
>
>works, assumed you've set up a root account, since it passes the
>COMMAND to the invoked shell. If you'll use sudo, do it like this:

PS:

   sudo -s ulimit -a

>  sudo bash -c "ulimit -a"
>
>  sudo dash -c "ulimit -a"
>
>  sudo sh -c "ulimit -a"
>
>  sudo -i
>  ulimit -a
>
>Regards,
>Ralf





More information about the ubuntu-users mailing list