- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to know what the ‘errno’ means in Linux?
Errno is a value that you get when the command you run returns the value of the call indicating an error. There is a header file that defines the integer variable errno, which is set by the system calls and some library function in the event of an error to let the developer know what’s wrong.
In simple terms, the “errnos” are symptoms of operating system errors. Generally produced by failed operating system calls.
In UNIX, the errnos are defined in upper case letters.
EPERM ENOENT ESRCH EINTR EIO ENXIO
In the above examples, some formatted errnos are mentioned that have different values and meaning attached to them.
While ‘errno’ is present on most Linux based systems, you can still download the tool with the help of the commands shown below.
sudo apt-get install errno
yum install errno
Once we have the errno tool installed we can list out all the errno symbols and their meanings attached with them with the help of the command shown below −
1 EPERM Operation not permitted 2 ENOENT No such file or directory 3 ESRCH No such process 4 EINTR Interrupted system call 5 EIO Input/output error 6 ENXIO No such device or address 7 E2BIG Argument list too long 8 ENOEXEC Exec format error 9 EBADF Bad file descriptor 10 ECHILD No child processes
It should be noted that there are more than 130 entries in the above output, I just listed out the top 10.
As we can see we have the description attached to each errno and with the help of the above output we can easily determine what the ‘errno’ actually means.
Another simpler way is to simply print the numbered errno, instead of printing the entire table.
No such file or directory
- What is the Bisecting K-Means?
- What does /* in MySQL means?
- Standard errno system symbols in Python
- What is K-means clustering?
- How does the k-means algorithm work?
- What are the things to know about new borns?
- What does buffer flush means in C++ ?
- What is the difference between K-Means and DBSCAN?
- How to create the boxplots in base R ordered by means?
- How to find the column means by factor levels in R?
- What is the Linux Equivalent to DOS Pause?
- What are the additional issues of K-Means Algorithm in data mining?
- How to know the current position within a file in Python?
- How to list the directory content in Linux?