%general-entities; ]> util-linux &util-linux-version;
&util-linux-url;
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>&util-linux-fin-sbu;</seg> <seg>&util-linux-fin-du;</seg> </seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Util-linux First, disable a problematic test: sed -i '/test_mkfds/s/^/#/' tests/helpers/Makemodule.am Prepare Util-linux for compilation: ./configure --bindir=/usr/bin \ --libdir=/usr/lib \ --runstatedir=/run \ --sbindir=/usr/sbin \ --disable-chfn-chsh \ --disable-login \ --disable-nologin \ --disable-su \ --disable-setpriv \ --disable-runuser \ --disable-pylibmount \ --disable-static \ --without-python \ --without-systemd \ --without-systemdsystemunitdir \ ADJTIME_PATH=/var/lib/hwclock/adjtime \ --docdir=/usr/share/doc/util-linux-&util-linux-version; ./configure --bindir=/usr/bin \ --libdir=/usr/lib \ --runstatedir=/run \ --sbindir=/usr/sbin \ --disable-chfn-chsh \ --disable-login \ --disable-nologin \ --disable-su \ --disable-setpriv \ --disable-runuser \ --disable-pylibmount \ --disable-static \ --without-python \ ADJTIME_PATH=/var/lib/hwclock/adjtime \ --docdir=/usr/share/doc/util-linux-&util-linux-version; The --disable and --without options prevent warnings about building components that either require packages not in LFS, or are inconsistent with programs installed by other packages. Compile the package: make If desired, run the test suite as a non-&root; user: Running the test suite as the root user can be harmful to your system. To run it, the CONFIG_SCSI_DEBUG option for the kernel must be available in the currently running system and must be built as a module. Building it into the kernel will prevent booting. For complete coverage, other BLFS packages must be installed. If desired, this test can be run by booting into the completed LFS system and running: bash tests/run.sh --srcdir=$PWD --builddir=$PWD chown -Rv tester . su tester -c "make -k check" The hardlink tests will fail if the host's kernel does not have the option enabled or does not have any options providing a SHA256 implementation (for example, , or if the CPU supports Supplemental SSE3) enabled. In addition, two sub-tests from misc: mbsencode and one sub-test from script: replay are known to fail. Install the package: make install Contents of Util-linux Installed programs Installed libraries Installed directories addpart, agetty, blkdiscard, blkid, blkzone, blockdev, cal, cfdisk, chcpu, chmem, choom, chrt, col, colcrt, colrm, column, ctrlaltdel, delpart, dmesg, eject, fallocate, fdisk, fincore, findfs, findmnt, flock, fsck, fsck.cramfs, fsck.minix, fsfreeze, fstrim, getopt, hardlink, hexdump, hwclock, ionice, ipcmk, ipcrm, ipcs, irqtop, isosize, kill, last, lastb (link to last), ldattach, linux32 (link to setarch), linux64 (link to setarch), logger, look, losetup, lsblk, lscpu, lsipc, lsirq, lsfd, lslocks, lslogins, lsmem, lsns, mcookie, mesg, mkfs, mkfs.bfs, mkfs.cramfs, mkfs.minix, mkswap, more, mount, mountpoint, namei, nsenter, partx, pivot_root, prlimit, readprofile, rename, renice, resizepart, rev, rfkill, rtcwake, script, scriptlive, scriptreplay, setarch, setsid, setterm, sfdisk, sulogin, swaplabel, swapoff, swapon, switch_root, taskset, uclampset, ul, umount, uname26 (link to setarch), unshare, utmpdump, uuidd, uuidgen, uuidparse, wall, wdctl, whereis, wipefs, and zramctl libblkid.so, libfdisk.so, libmount.so, libsmartcols.so, and libuuid.so /usr/include/blkid, /usr/include/libfdisk, /usr/include/libmount, /usr/include/libsmartcols, /usr/include/uuid, /usr/share/doc/util-linux-&util-linux-version;, and /var/lib/hwclock Short Descriptions addpart Informs the Linux kernel of new partitions addpart agetty Opens a tty port, prompts for a login name, and then invokes the login program agetty blkdiscard Discards sectors on a device blkdiscard blkid A command line utility to locate and print block device attributes blkid blkzone Is used to manage zoned storage block devices blkzone blockdev Allows users to call block device ioctls from the command line blockdev cal Displays a simple calendar cal cfdisk Manipulates the partition table of the given device cfdisk chcpu Modifies the state of CPUs chcpu chmem Configures memory chmem choom Displays and adjusts OOM-killer scores, used to determine which process to kill first when Linux is Out Of Memory choom chrt Manipulates real-time attributes of a process chrt col Filters out reverse line feeds col colcrt Filters 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 delpart Asks the Linux kernel to remove a partition delpart dmesg Dumps the kernel boot messages dmesg eject Ejects removable media eject fallocate Preallocates space to a file fallocate fdisk Manipulates the partition table of the given device fdisk fincore Counts pages of file contents in core fincore findfs Finds a file system, either by label or Universally Unique Identifier (UUID) findfs findmnt Is a command line interface to the libmount library for working with mountinfo, fstab and mtab files findmnt flock Acquires a file lock and then executes a command with the lock held flock fsck Is used to check, and optionally repair, file systems fsck 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 fsfreeze Is a very simple wrapper around FIFREEZE/FITHAW ioctl kernel driver operations fsfreeze fstrim Discards unused blocks on a mounted filesystem fstrim getopt Parses options in the given command line getopt hardlink Consolidates duplicate files by creating hard links hardlink hexdump Dumps the given file in hexadecimal, decimal, octal, or ascii hexdump hwclock Reads or sets the system's hardware clock, also called the Real-Time Clock (RTC) or Basic Input-Output System (BIOS) clock hwclock ionice Gets or sets the io scheduling class and priority for a program ionice ipcmk Creates various IPC resources ipcmk ipcrm Removes the given Inter-Process Communication (IPC) resource ipcrm ipcs Provides IPC status information ipcs irqtop Displays kernel interrupt counter information in top(1) style view irqtop isosize Reports the size of an iso9660 file system isosize kill Sends signals to processes kill last Shows which users last logged in (and out), searching back through the /var/log/wtmp file; it also shows system boots, shutdowns, and run-level changes last lastb Shows the failed login attempts, as logged in /var/log/btmp lastb ldattach Attaches a line discipline to a serial line ldattach linux32 A symbolic link to setarch linux32 linux64 A symbolic link to setarch linux64 logger Enters the given message into the system log logger look Displays lines that begin with the given string look losetup Sets up and controls loop devices losetup lsblk Lists information about all or selected block devices in a tree-like format lsblk lscpu Prints CPU architecture information lscpu lsfd Displays information about open files; replaces lsof lsfd lsipc Prints information on IPC facilities currently employed in the system lsipc lsirq Displays kernel interrupt counter information lsirq lslocks Lists local system locks lslocks lslogins Lists information about users, groups and system accounts lslogins lsmem Lists the ranges of available memory with their online status lsmem lsns Lists namespaces lsns mcookie Generates magic cookies (128-bit random hexadecimal numbers) for xauth mcookie mesg Controls whether other users can send messages to the current user's terminal mesg mkfs Builds a file system on a device (usually a hard disk partition) mkfs mkfs.bfs Creates a 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 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 mountpoint Checks if the directory is a mountpoint mountpoint namei Shows the symbolic links in the given paths namei nsenter Runs a program with namespaces of other processes nsenter partx Tells the kernel about the presence and numbering of on-disk partitions partx pivot_root Makes the given file system the new root file system of the current process pivot_root prlimit Gets and sets a process's resource limits prlimit readprofile Reads kernel profiling information readprofile rename Renames the given files, replacing a given string with another rename renice Alters the priority of running processes renice resizepart Asks the Linux kernel to resize a partition resizepart rev Reverses the lines of a given file rev rfkill Tool for enabling and disabling wireless devices rfkill rtcwake Used to enter a system sleep state until the specified wakeup time rtcwake script Makes a typescript of a terminal session script scriptlive Re-runs session typescripts using timing information scriptlive scriptreplay Plays back typescripts using timing information scriptreplay setarch Changes reported architecture in a new program environment, and sets personality flags setarch setsid Runs the given program in a new session setsid setterm Sets terminal attributes setterm sfdisk A disk partition table manipulator sfdisk sulogin Allows root to log in; it is normally invoked by init when the system goes into single user mode sulogin swaplabel Makes changes to the swap area's UUID and label swaplabel swapoff Disables devices and files for paging and swapping swapoff swapon Enables devices and files for paging and swapping, and lists the devices and files currently in use swapon switch_root Switches to another filesystem as the root of the mount tree switch_root taskset Retrieves or sets a process's CPU affinity taskset uclampset Manipulates the utilization clamping attributes of the system or a process uclampset ul 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 uname26 A symbolic link to setarch uname26 unshare Runs a program with some namespaces unshared from parent unshare utmpdump Displays the content of the given login file in a user-friendly format utmpdump uuidd A daemon used by the UUID library to generate time-based UUIDs in a secure and guaranteed-unique fashion uuidd uuidgen Creates new UUIDs. Each new UUID is a random number likely to be unique among all UUIDs created, on the local system and on other systems, in the past and in the future, with extremely high probability (2128 UUIDs are possible) uuidgen uuidparse A utility to parse unique identifiers uuidparse wall Displays the contents of a file or, by default, its standard input, on the terminals of all currently logged in users wall wdctl Shows hardware watchdog status wdctl whereis Reports the location of the binary, source, and man page files for the given command whereis wipefs Wipes a filesystem signature from a device wipefs zramctl A program to set up and control zram (compressed ram disk) devices zramctl libblkid Contains routines for device identification and token extraction libblkid libfdisk Contains routines for manipulating partition tables libfdisk libmount Contains routines for block device mounting and unmounting libmount libsmartcols Contains routines for aiding screen output in tabular form libsmartcols libuuid Contains routines for generating unique identifiers for objects that may be accessible beyond the local system libuuid