os.get_terminal_size()

os.get_terminal_size(fd=STDOUT_FILENO) Return the size of the terminal window as (columns, lines), tuple of type terminal_size. The optional argument fd (default STDOUT_FILENO, or standard output) specifies which file descriptor should be queried. If the file descriptor is not connected to a terminal, an OSError is raised. shutil.get_terminal_size() is the high-level function which should normally be used, os.get_terminal_size is the low-level implementation. Availability: Unix, Windows.

os.get_inheritable()

os.get_inheritable(fd) Get the “inheritable” flag of the specified file descriptor (a boolean).

os.get_handle_inheritable()

os.get_handle_inheritable(handle) Get the “inheritable” flag of the specified handle (a boolean). Availability: Windows.

os.get_exec_path()

os.get_exec_path(env=None) Returns the list of directories that will be searched for a named executable, similar to a shell, when launching a process. env, when specified, should be an environment variable dictionary to lookup the PATH in. By default, when env is None, environ is used. New in version 3.2.

os.get_blocking()

os.get_blocking(fd) Get the blocking mode of the file descriptor: False if the O_NONBLOCK flag is set, True if the flag is cleared. See also set_blocking() and socket.socket.setblocking(). Availability: Unix. New in version 3.5.

os.getxattr()

os.getxattr(path, attribute, *, follow_symlinks=True) Return the value of the extended filesystem attribute attribute for path. attribute can be bytes or str. If it is str, it is encoded with the filesystem encoding. This function can support specifying a file descriptor and not following symlinks.

os.getuid()

os.getuid() Return the current process’s real user id. Availability: Unix.

os.getsid()

os.getsid(pid) Call the system call getsid(). See the Unix manual for the semantics. Availability: Unix.

os.getresuid()

os.getresuid() Return a tuple (ruid, euid, suid) denoting the current process’s real, effective, and saved user ids. Availability: Unix. New in version 3.2.

os.getresgid()

os.getresgid() Return a tuple (rgid, egid, sgid) denoting the current process’s real, effective, and saved group ids. Availability: Unix. New in version 3.2.