Any one can let me know the possible return codes for the command rm -rf other than zero i.e, possible return codes for failure cases. I want to know more detailed reason for the failure of the command unlike just the command is failed(return other than 0).
migrated from stackoverflow.com Aug 14 '13 at 7:59
This question came from our site for professional and enthusiast programmers.
To see the return code, you can use
To see the actual meaning, some platforms (like Debian Linux) have the
grabbed coreutils from git....
looking at exit we see...
Now looking at the status variable....
looks like there isn't much going on there with the exit status.
I see EXIT_FAILURE and EXIT_SUCCESS and not anything else.
so basically 0 and 1 / -1
To see specific exit() syscalls and how they occur in a process flow try this