Setting Ulimit

I never found a solution to do it live (nothing worked that I found) so it looks like a relogin is required.

Check your maximum file limit

 cat /proc/sys/fs/file-max
824460

 

This is different than your actual's user limit which you'll see below

ulimit -n
1024

Try and set it higher but it won't work

ulimit -n 65000
-bash: ulimit: open files: cannot modify limit: Operation not permitted

Set system wide defaults

sudo vi /etc/security/limits.conf
*             hard    nofiles           600000
*             soft    nofiles           500000

Making it live from a shell session (it won't work for your GNOME/XWindows session itself)
sudo su
root@homebox:/home/one# ulimit -n
1024
root@homebox:/home/one# ulimit -n 60000

ulimit -n
60000

root@homebox:/home/one# ulimit -n 60000
root@homebox:/home/one# ulimit -n
60000
root@homebox:/home/one# su - one
one@homebox:~$ ulimit -n
 


Tags:

ulimiti, relogin, maximum, proc, sys, fs, user, ll, ulimit, bash, modify, permitted, defaults, sudo, vi, etc, conf, nofiles, shell, gnome, xwindows, su, homebox,

Latest Articles

  • qemu-kvm error "Could not initialize SDL(No available video device) - exiting"
  • Centos 7 tftpd will not work with selinux enabled
  • Debian Ubuntu Mint Howto Create Bridge (br0)
  • How To Control Interface that dhcpd server listens to on Debian based Linux like Mint and Ubuntu
  • LUKS unable to type password to unlock during boot on Debian, Ubuntu and Mint
  • Debian Ubuntu and Linux Mint Broken Kernel After Date - New Extra Module Naming Convention
  • Wordpress overwrites and wipes out custom htaccess rules and changes soluton
  • Apache htaccess and mod_rewrite how to redirect and force all URLs and visitors to the SSL / HTTPS version
  • python 3 pip cannot install mysql module
  • QEMU-KVM won't boot Windows 2016 or 2019 server on an Intel Core i3
  • Virtualbox vbox not starting "No suitable module for running kernel found"
  • Bind / named not responding to queries solution
  • Linux Mint How To Set Desktop Background Image From Bash Prompt CLI
  • ImageMagick Convert PDF Not Authorized
  • ImageMagick Converted PDF to JPEG some files have a black background solution
  • Linux Mint Mate Customize the Lock screen messages and hide username and real name
  • Ubuntu/Gnome/Mint/Centos How To Take a partial screenshot
  • ssh how to verify your host key / avoid MIM attacks
  • Cisco IP Phone CP-8845 8800/8900 Series How To Reset To Factory Settings Instructions
  • ls how to list ONLY directories