%general-entities; ]> Util-linux-&util-linux-version; Util-linux <para>The Util-linux package contains miscellaneous utility programs. Among them are utilities for handling file systems, consoles, partitions, and messages.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem><seg>0.2 SBU</seg><seg>16 MB</seg></seglistitem> </segmentedlist> <segmentedlist> <segtitle>Util-linux installation depends on</segtitle> <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed, Zlib</seg></seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>FHS compliance notes The FHS recommends using the /var/lib/hwclock directory instead of the usual /etc directory as the location for the adjtime file. To make the hwclock program FHS-compliant, run the following: sed -i 's@etc/adjtime@var/lib/hwclock/adjtime@g' hwclock/hwclock.c mkdir -p /var/lib/hwclock Installation of Util-linux Util-linux has issues with the Linux 2.6 kernel series. Fix these issues by applying the following patch: patch -Np1 -i ../util-linux-&util-linux-version;-kernel_headers-1.patch Prepare Util-linux for compilation: ./configure Compile the package: make HAVE_KILL=yes HAVE_SLN=yes The meaning of the make parameters: HAVE_KILL=yes This prevents the kill program (already installed by Procps) from being built and installed again. HAVE_SLN=yes This prevents the sln program (a statically linked version of ln already installed by Glibc) from being built and installed again. This package does not come with a test suite. Install the package: make HAVE_KILL=yes HAVE_SLN=yes install Contents of Util-linux Installed programs agetty, arch, blockdev, cal, cfdisk, chkdupexe, col, colcrt, colrm, column, ctrlaltdel, cytune, ddate, dmesg, elvtune, fdformat, fdisk, fsck.cramfs, fsck.minix, getopt, hexdump, hwclock, ipcrm, ipcs, isosize, line, logger, look, losetup, mcookie, mkfs, mkfs.bfs, mkfs.cramfs, mkfs.minix, mkswap, more, mount, namei, pg, pivot_root, ramsize (link to rdev), raw, rdev, readprofile, rename, renice, rev, rootflags (link to rdev), script, setfdprm, setsid, setterm, sfdisk, swapoff (link to swapon), swapon, tunelp, ul, umount, vidmode (link to rdev), whereis and write Short descriptions agetty opens a tty port, prompts for a login name, and then invokes the login program. agetty arch reports the machine's architecture. arch blockdev allows you to call block device ioctls from the command line. blockdev cal displays a simple calendar. cal cfdisk is used to manipulate the partition table of the given device. cfdisk chkdupexe finds duplicate executables. chkdupexe col filters out reverse line feeds. col colcrt is used to filter nroff output for terminals that lack some capabilities such as overstriking and half-lines. colcrt colrm filters out the given columns. colrm column formats a given file into multiple columns. column ctrlaltdel sets the function of the Ctrl+Alt+Del key combination to a hard or a soft reset. ctrlaltdel cytune is used to tune the parameters of the serial line drivers for Cyclades cards. cytune ddate gives the Discordian date, or converts the given Gregorian date to a Discordian one. ddate dmesg dumps the kernel boot messages. dmesg elvtune can be used to tune the performance and interactivity of a block device. elvtune fdformat low-level formats a floppy disk. fdformat fdisk could be used to manipulate the partition table of the given device. fdisk fsck.cramfs performs a consistency check on the Cramfs file system on the given device. fsck.cramfs fsck.minix performs a consistency check on the Minix file system on the given device. fsck.minix getopt parses options in the given command line. getopt hexdump dumps the given file in hexadecimal, or in another given format. hexdump hwclock is used to read or set the system's hardware clock, also called the Real-Time Clock (RTC)) or Basic Input-Output System (BIOS) clock. hwclock ipcrm removes the given Inter-Process Communication (IPC) resource. ipcrm ipcs provides IPC status information. ipcs isosize reports the size of an iso9660 file system. isosize line copies a single line. line logger enters the given message into the system log. logger look displays lines that begin with the given string. look losetup is used to set up and control loop devices. losetup mcookie generates magic cookies (128-bit random hexadecimal numbers) for xauth. mcookie mkfs is used to build a file system on a device (usually a hard disk partition). mkfs mkfs.bfs creates an Santa Cruz Operations (SCO) bfs file system. mkfs.bfs mkfs.cramfs creates a cramfs file system. mkfs.cramfs mkfs.minix creates a Minix file system. mkfs.minix mkswap initializes the given device or file to be used as a swap area. mkswap more is a filter for paging through text one screen at a time. more mount attaches the file system on the given device to a specified directory in the file-system tree. mount namei shows the symbolic links in the given pathnames. namei pg displays a text file one screen full at a time. pg pivot_root makes the given file system the new root file system of the current process. pivot_root ramsize is used to set the size of the RAM disk in a bootable image. ramsize rdev is used to query and set the root device among other things in a bootable image. rdev readprofile reads kernel profiling information. readprofile rename renames the given files, replacing a given string with another. rename renice is used to alter the priority of running processes. renice rev reverses the lines of a given file. rev rootflags is used to set the rootflags in a bootable image. rootflags script makes a typescript of a terminal session (everything printed to the terminal. script setfdprm sets user-provided floppy disk parameters. setfdprm setsid runs the given program in a new session. setsid setterm is used to set terminal attributes. setterm sfdisk is a disk partition table manipulator. sfdisk swapdev is used to set the swap device in a bootable image. swapdev swapoff disables devices and files for paging and swapping. swapoff swapon enables devices and files for paging and swapping. swapon tunelp is used to tune the parameters of the line printer. tunelp ul is a filter for translating underscores into escape sequences indicating underlining for the terminal in use. ul umount disconnects a file system from the system's file tree. umount vidmode could be used to set the video mode in a bootable image. vidmode whereis reports the location of binary, the source, and the manual page for the given command. whereis write sends a message to the given user, if that user has not disabled receipt of such messages. write