The <mode> inpector returns file type information and permissions. These are the possible values of mode:S_IFMT 170000 bitmask for the file type bitfieldsS_IFSOCK 140000 socketS_IFLNK 120000 symbolic linkS_IFREG 100000 regular fileS_IFBLK 060000 block deviceS_IFDIR 040000 directoryS_IFCHR 020000 character deviceS_IFIFO 010000 fifoS_ISUID 004000 set UID bitS_ISGID 002000 set GID bitS_ISVTX 001000 sticky bitS_IRWXU 000700 mask for file owner permissionsS_IRUSR 000400 owner has read permissionS_IWUSR 000200 owner has write permissionS_IXUSR 000100 owner has execute permissionS_IRWXG 000070 mask for group permissionsS_IRGRP 000040 group has read permissionS_IWGRP 000020 group has write permissionS_IXGRP 000010 group has execute permissionS_IRWXO 000007 mask for permissions for others (not in group)S_IROTH 000004 others have read permissionS_IWOTH 000002 others have write permissionS_IXOTH 000001 others have execute permission

Version Platforms
8.0.584.0 AIX, HP-UX, Red Hat, SUSE, Solaris
8.1.535.0 Debian, Ubuntu Raspbian


mode of <filesystem object> : mode


group mask of <mode> : mode_mask
other mask of <mode> : mode_mask
setgid of <mode> : boolean
setuid of <mode> : boolean
sticky of <mode> : boolean
user mask of <mode> : mode_mask


<mode> as octal string : string
<mode> as string : string