Session and utilities

The ulimit command

Shows or limits the resources your session can consume: open files, processes, memory, etc.

Syntax

ulimit [-a]

Most useful options

-aShows all limits
-nMaximum open files
-uMaximum processes

Copy-ready examples

$ ulimit -aSee the limits

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • Raising some limits requires administrator rights.

Related commands

FAQ

Why do I get 'too many open files'?

Because you exceeded the -n limit; raise it with ulimit -n.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course