ulimit command on 14.04
Ralf Mardorf
silver.bullet at zoho.com
Mon Feb 29 18:00:54 UTC 2016
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:
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