%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 that we use /var/lib/hwclock, instead of the usual /etc, 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 a coding problem that causes mis-compilation of the sfdisk program. This patch fixes the problem: patch -Np1 -i ../util-linux-&util-linux-version;-sfdisk-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 ln already installed by Glibc) from being built and installed again. Now 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 agetty opens a tty port, prompts for a login name, and then invokes the login program. arch arch reports the machine's architecture. blockdev blockdev allows you to call block device ioctls from the command line. cal cal displays a simple calendar. cfdisk cfdisk is used to manipulate the partition table of the given device. chkdupexe chkdupexe finds duplicate executables. col col filters out reverse line feeds. colcrt colcrt is used to filter nroff output for terminals that lack some capabilities such as overstriking and half-lines. colrm colrm filters out the given columns. column column formats a given file into multiple columns. ctrlaltdel ctrlaltdel sets the function of the Ctrl+Alt+Del key combination to a hard or a soft reset. cytune cytune was used to tune the parameters of the serial line drivers for Cyclades cards. ddate ddate gives the Discordian date, or converts the given Gregorian date to a Discordian one. dmesg dmesg dumps the kernel boot messages. elvtune elvtune can be used to tune the performance and interactivity of a block device. fdformat fdformat low-level formats a floppy disk. fdisk fdisk could be used to manipulate the partition table of the given device. fsck.cramfs fsck.cramfs performs a consistency check on the Cramfs file system on the given device. fsck.minix fsck.minix performs a consistency check on the Minix file system on the given device. getopt getopt parses options in the given command line. hexdump hexdump dumps the given file in hexadecimal, or in another given format. hwclock hwclock is used to read or set the system's hardware clock, also called the RTC (Real-Time Clock) or BIOS (Basic Input-Output System) clock. ipcrm ipcrm removes the given IPC resource. ipcs ipcs provides IPC status information. isosize isosize reports the size of an iso9660 file system. line line copies a single line. logger logger enters the given message into the system log. look look displays lines that begin with the given string. losetup losetup is used to set up and control loop devices. mcookie mcookie generates magic cookies, 128-bit random hexadecimal numbers, for xauth. mkfs mkfs is used to build a file system on a device (usually a hard disk partition). mkfs.bfs mkfs.bfs creates an SCO (Santa Cruz Operations) bfs file system. mkfs.cramfs mkfs.cramfs creates a cramfs file system. mkfs.minix mkfs.minix creates a Minix file system. mkswap mkswap initializes the given device or file to be used as a swap area. more more is a filter for paging through text one screen full at a time. But less is much better. mount mount attaches the file system on the given device to a specified directory (thus hiding the contents of that directory) in the file-system tree. namei namei shows the symbolic links in the given pathnames. pg pg displays a text file one screen full at a time. pivot_root pivot_root makes the given file system the new root file system of the current process. ramsize ramsize is used to set the size of the RAM disk in a bootable image. rdev rdev is used to query and set the root device and other things in a bootable image. readprofile readprofile reads kernel profiling information. rename rename renames the given files, replacing a given string with another. renice renice is used to alter the priority of running processes. rev rev reverses the lines of a given file. rootflags rootflags is used to set the rootflags in a bootable image. script script makes a typescript of a terminal session, of everything printed to the terminal. setfdprm setfdprm sets user-provided floppy disk parameters. setsid setsid runs the given program in a new session. setterm setterm is used to set terminal attributes. sfdisk sfdisk is a disk partition table manipulator. swapdev swapdev is used to set the swap device in a bootable image. swapoff swapoff disables devices and files for paging and swapping. swapon swapon enables devices and files for paging and swapping. tunelp tunelp is used to tune the parameters of the line printer. ul ul is a filter for translating underscores into escape sequences indicating underlining for the terminal in use. umount umount disconnects a file system from the system's file tree. vidmode vidmode could be used to set the video mode in a bootable image. whereis whereis reports the location of binary, the source, and the manual page for the given command. write write sends a message to the given user, if that user has not disabled such messages.