bashlsgnu-fileutils

`ls` exit status


EDIT: nothing to see here!!! 127 return means the command wasn't found - had to give an absolute path to the command for some reason :/ (I didn't delete in case someone else has this problem)

Is there a reference of return statuses for common Linux functions like ls? (it doesn't seem to be in the man pages, at least for ls). If not, can someone tell me what ls returning 127 means?


Solution

  • 127 is the error for command not found. In this case, I just had to use an absolute path to the command (/bin/ls)