欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  网络运营

linux命令返回值的含义解析

程序员文章站 2022-06-16 23:05:54
linux命令执行后无论成功与否都有一个返回值: 如果为 0,则表示命令执行成功,其它值则表示错误, 具体的错误码含义如下: "os error code...

linux命令执行后无论成功与否都有一个返回值:

如果为 0,则表示命令执行成功,其它值则表示错误,

具体的错误码含义如下:

"os error code  1: operation not permitted"
 "os error code  2: no such file or directory"
 "os error code  3: no such process"
 "os error code  4: interrupted system call"
 "os error code  5: input/output error"
 "os error code  6: no such device or address"
 "os error code  7: argument list too long"
 "os error code  8: exec format error"
 "os error code  9: bad file descriptor"
 "os error code 10: no child processes"
 "os error code 11: resource temporarily unavailable"
 "os error code 12: cannot allocate memory"
 "os error code 13: permission denied"
 "os error code 14: bad address"
 "os error code 15: block device required"
 "os error code 16: device or resource busy"
 "os error code 17: file exists"
 "os error code 18: invalid cross-device link"
 "os error code 19: no such device"
 "os error code 20: not a directory"
 "os error code 21: is a directory"
 "os error code 22: invalid argument"
 "os error code 23: too many open files in system"
 "os error code 24: too many open files"
 "os error code 25: inappropriate ioctl for device"
 "os error code 26: text file busy"
 "os error code 27: file too large"
 "os error code 28: no space left on device"
 "os error code 29: illegal seek"
 "os error code 30: read-only file system"
 "os error code 31: too many links"
 "os error code 32: broken pipe"
 "os error code 33: numerical argument out of domain"
 "os error code 34: numerical result out of range"
 "os error code 35: resource deadlock avoided"
 "os error code 36: file name too long"
 "os error code 37: no locks available"
 "os error code 38: function not implemented"
 "os error code 39: directory not empty"
 "os error code 40: too many levels of symbolic links"
 "os error code 42: no message of desired type"
 "os error code 43: identifier removed"
 "os error code 44: channel number out of range"
 "os error code 45: level 2 not synchronized"
 "os error code 46: level 3 halted"
 "os error code 47: level 3 reset"
 "os error code 48: link number out of range"
 "os error code 49: protocol driver not attached"
 "os error code 50: no csi structure available"
 "os error code 51: level 2 halted"
 "os error code 52: invalid exchange"
 "os error code 53: invalid request descriptor"
 "os error code 54: exchange full"
 "os error code 55: no anode"
 "os error code 56: invalid request code"
 "os error code 57: invalid slot"
 "os error code 59: bad font file format"
 "os error code 60: device not a stream"
 "os error code 61: no data available"
 "os error code 62: timer expired"
 "os error code 63: out of streams resources"
 "os error code 64: machine is not on the network"
 "os error code 65: package not installed"
 "os error code 66: object is remote"
 "os error code 67: link has been severed"
 "os error code 68: advertise error"
 "os error code 69: srmount error"
 "os error code 70: communication error on send"
 "os error code 71: protocol error"
 "os error code 72: multihop attempted"
 "os error code 73: rfs specific error"
 "os error code 74: bad message"
 "os error code 75: value too large for defined data type"
 "os error code 76: name not unique on network"
 "os error code 77: file descriptor in bad state"
 "os error code 78: remote address changed"
 "os error code 79: can not access a needed shared library"
 "os error code 80: accessing a corrupted shared library"
 "os error code 81: .lib section in a.out corrupted"
 "os error code 82: attempting to link in too many shared libraries"
 "os error code 83: cannot exec a shared library directly"
 "os error code 84: invalid or incomplete multibyte or wide character"
 "os error code 85: interrupted system call should be restarted"
 "os error code 86: streams pipe error"
 "os error code 87: too many users"
 "os error code 88: socket operation on non-socket"
 "os error code 89: destination address required"
 "os error code 90: message too long"
 "os error code 91: protocol wrong type for socket"
 "os error code 92: protocol not available"
 "os error code 93: protocol not supported"
 "os error code 94: socket type not supported"
 "os error code 95: operation not supported"
 "os error code 96: protocol family not supported"
 "os error code 97: address family not supported by protocol"
 "os error code 98: address already in use"
 "os error code 99: cannot assign requested address"
 "os error code 100: network is down"
 "os error code 101: network is unreachable"
 "os error code 102: network dropped connection on reset"
 "os error code 103: software caused connection abort"
 "os error code 104: connection reset by peer"
 "os error code 105: no buffer space available"
 "os error code 106: transport endpoint is already connected"
 "os error code 107: transport endpoint is not connected"
 "os error code 108: cannot send after transport endpoint shutdown"
 "os error code 109: too many references: cannot splice"
 "os error code 110: connection timed out"
 "os error code 111: connection refused"
 "os error code 112: host is down"
 "os error code 113: no route to host"
 "os error code 114: operation already in progress"
 "os error code 115: operation now in progress"
 "os error code 116: stale nfs file handle"
 "os error code 117: structure needs cleaning"
 "os error code 118: not a xenix named type file"
 "os error code 119: no xenix semaphores available"
 "os error code 120: is a named type file"
 "os error code 121: remote i/o error"
 "os error code 122: disk quota exceeded"
 "os error code 123: no medium found"
 "os error code 124: wrong medium type"
 "os error code 125: operation canceled"
 "os error code 126: required key not available"
 "os error code 127: key has expired"
 "os error code 128: key has been revoked"
 "os error code 129: key was rejected by service"
 "os error code 130: owner died"
 "os error code 131: state not recoverable"

总结

以上所述是小编给大家介绍的linux命令返回值的含义,希望对大家有所帮助