Linux errno values are the integer error codes returned by system calls and library functions. Each entry below includes the symbolic name, numeric value, typical cause, and a concrete fix with terminal commands you can copy and paste.

Error Codes

ErrorDescriptionFix
EPERM (errno 1)Operation not permitted — missing privileges for the requested actionUse sudo or adjust capabilities with setcap
ENOENT (errno 2)No such file or directory — the target path does not existVerify the file path, check for typos, and confirm symlinks resolve
EIO (errno 5)Input/output error — hardware or filesystem corruptionCheck disk health with smartctl, run fsck, and review dmesg logs
ENOMEM (errno 12)Out of memory — system cannot allocate requested memoryCheck usage with free -h, add swap, or reduce process memory footprint
EACCES (errno 13)Permission denied — insufficient permissions for the operationFix with chmod, chown, or check ACLs with getfacl
ENOSPC (errno 28)No space left on device — disk or inode exhaustionFind large files with du -sh /*, clean up or expand the filesystem

Quick Lookup

To look up any errno code on a Linux system:

# Look up errno by number
python3 -c "import errno; print(errno.errorcode.get(2, 'Unknown'))"

# Or use perror
perror 111