NETWORKWORLD

Company

Share this profile with your network

Resume
Network world provides news and analysis of enterprise data center technologies, including networking, storage, servers and virtualization.
Video Presentation
Social Network
Latest
Understanding exit codes on Linux

October 4, 2024

Whenever you run a command in a Linux terminal, a numeric exit code is generated – even if you see no sign of it.
The code reports the success or failure of the command.
And, if the command fails, it provides a value that hints at the problem.
If the exit code is 0, all is well.
You will just see the normal output from the command you ran.
Otherwise, you should see some type of error reported – like “permission denied” or “command not found”.
If you want to display the numeric exit code, you can use the echo $? command as shown in the examples below.
$ echo Linux is wonderfulLinux

Profile last updated on September 7th, 2024