fdtools is a set of tools for working with file descriptors. The grabconsole program redirects console messages to a pseudoterminal. The seek0 program rewinds a file descriptor. The setblock program makes a file descriptor blocking or nonblocking. The statfile program sets environment variables according to a file's inode data. The vc-get, vc-lock, and vc-switch commands manipulate virtual consoles. The fdtools library provides grabconsole, seek0, and setblock as C functions.