Linux command
errno 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Look up error
errno [22]
Look up error
errno [EINVAL]
List all errors
errno -l
Search error
errno -s [permission]
说明
errno looks up errno values and their descriptions. It translates between error numbers and symbolic names (like EINVAL, ENOENT) used in system calls. The tool is valuable for debugging, helping understand system call failures. Error numbers from strace output or program errors can be quickly translated to meaningful descriptions. errno also provides searching and listing capabilities to explore the full set of defined errors.
参数
- -l, --list
- List all errors.
- -s, --search _TEXT_
- Search descriptions for matching words (case-insensitive).
- -S, --search-all-locales _TEXT_
- Search descriptions across all available locales.
- --help
- Display help information.
FAQ
What is the errno command used for?
errno looks up errno values and their descriptions. It translates between error numbers and symbolic names (like EINVAL, ENOENT) used in system calls. The tool is valuable for debugging, helping understand system call failures. Error numbers from strace output or program errors can be quickly translated to meaningful descriptions. errno also provides searching and listing capabilities to explore the full set of defined errors.
How do I run a basic errno example?
Run `errno [22]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -l, --list do in errno?
List all errors.