{{short description|Package of Linux utilities from the Linux Kernel Organization}} {{lowercase title}} {{Infobox software | name = util-linux | discontinued = no | latest release version = {{wikidata|property|preferred|references|edit|P348|P548=Q2804309}} | latest release date = {{Start date and age|{{wikidata|qualifier|preferred|single|P348|P548=Q2804309|P577}}|df=yes}} | programming_language = C | operating system = Linux | language = 31 languages, 7 full translations<ref>{{cite web | title = Translation Project util-linux textual domain | url = https://translationproject.org/domain/util-linux.html | date = 2022 | access-date = 2022-06-04}}</ref> | genre = Utility software | license = Portions variously under GNU General Public License (v2+ or v2 only), GNU Lesser General Public License (v2+) and BSD License.<ref>{{cite web | url = https://git.kernel.org/cgit/utils/util-linux/util-linux.git/tree/README.licensing | title = README.licensing | work = util-linux source tree | access-date = 20 February 2016}}</ref> | website = {{URL|https://www.kernel.org/pub/linux/utils/util-linux/}}<br />{{URL|https://git.kernel.org/cgit/utils/util-linux/util-linux.git}} }}

{{mono|'''util-linux'''}} is a package of utilities distributed by the Linux Kernel Organization for use in a Linux operating system. A fork, {{mono|'''util-linux-ng'''}} (with {{mono|'''ng'''}} meaning "next generation"), was created when development stalled,<ref>{{cite web | title = [ANNOUNCE] util-linux-ng fork | url = https://lkml.org/lkml/2006/12/18/19 | date = 2006-12-18 | author = Karel Zak | access-date = 2014-04-12}}</ref> but {{as of|2011|01|lc=on}} has been renamed back to {{mono|'''util-linux'''}}, and is the official version of the package.<ref>{{cite web | title = [ANNOUNCE] util-linux without -ng | url = https://lkml.org/lkml/2010/12/1/464 | date = 2010-12-01 | author = Karel Zak | access-date = 2014-04-12}}</ref>

==Content== The package includes the following utilities: {{div col|colwidth=15em}} {{not a typo| * addpart * agetty * bits * blkdiscard<ref>{{cite web | url = http://man7.org/linux/man-pages/man8/blkdiscard.8.html | title = blkdiscard(8) - Linux manual page | date = July 2014 | access-date = 2020-01-13}}</ref> * blkid * blkpr * blkzone * blockdev * cal * cfdisk * chcpu * chfn * chmem * choom * chrt * chsh * col (legacy)<ref name="legacy">{{cite web | url = https://git.kernel.org/cgit/utils/util-linux/util-linux.git/tree/Documentation/deprecated.txt | title = Documentation/deprecated.txt | date = 2014-04-07 | work = util-linux | access-date = 2015-07-01}}</ref> * colcrt * colrm * column * copyfilerange * coresched * ctrlaltdel * delpart * dmesg * eject * enosys * exch * fadvise * fallocate * fdformat * fdisk * fincore * findfs * findmnt * flock * fsck * fsck.cramfs * fsck.minix * fsfreeze * fstrim * getino * getopt * hardlink * hexdump * hwclock{{efn|cquery and set the hardware clock (RTC)}} * ionice * ipcmk * ipcrm * ipcs * irqtop<ref>{{cite web | url = https://lwn.net/Articles/826866/ | title = Release v2.36 notes}}</ref> * isosize * kill * last * lastlog2 * ldattach * line (legacy)<ref name="legacy"/> * logger * login * look * losetup * lsblk * lsclocks * lscpu<ref>{{cite web | url = https://man.linuxreviews.org/man1/lscpu.1.html | title = lscpu manual }}</ref> * lsfd{{efn|modern replacement for lsof}} * lsipc * lsirq<ref>{{cite web | url = https://lwn.net/Articles/826866/ | title = Release v2.36 notes}}</ref> * lslocks * lslogins * lsmem * lsns * mcookie * mesg * mkfs (legacy)<ref name="legacy"/> * mkfs.bfs * mkfs.cramfs * mkfs.minix * mkswap * more * mount * mountpoint * namei * newgrp * nologin * nsenter * partx * pg (legacy)<ref name="legacy"/> * pipesz * pivot_root * prlimit<ref>{{cite web | url = https://karelzak.blogspot.com/2012/01/prlimit1.html | title = prlimit(1) | author = Karel Zak | date = 2012-01-25 | access-date = 2020-01-13}}</ref> * raw * readprofile * rename * renice * reset (legacy)<ref name="legacy"/> * resizepart * rev * rfkill * rtcwake * runuser * script * scriptlive * scriptreplay * setarch{{efn|including architecture symlinks such as i386, linux32, linux64, x86_64, etc.}} * setpgid * setpriv * setsid * setterm * sfdisk * su * sulogin * swaplabel * swapoff * swapon * switch_root * taskset * tunelp (deprecated)<ref>{{cite web | url = https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=1342ffcbeb0dbad6ec12026f1dad27a26d27248f | title = tunelp: deprecation: remove command from default build | author = Sami Kerola | date = 2012-12-16 | work = util-linux | access-date = 2014-04-12}}</ref> * uclampset * ul * umount * unshare * utmpdump * uuidd * uuidgen * uuidparse * vipw{{efn|including symlink to vigr}} * waitpid * wall * wdctl * whereis * wipefs * write * zramctl {{div col end}} }}

==Removed content== Utilities formerly included, but removed {{as of|2015|07|01|lc=on}}: {{div col|colwidth=25em}} * arch<ref>{{cite web | url = https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=27abd8094845b4b2002a8ed5c3dd212999902c8f | title = arch: remove the command, deprecated since 2.13, use coreutils version | author = Karel Zak | date = 2013-03-14 | work = util-linux | access-date = 2015-07-01}}</ref> * chkdupexe<ref>{{cite web | url = https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=58a3cee647c30ee23c887a1763ab9e4504a1ec88 | title = chkdupexe: remove, deprecated for years | author = Karel Zak | date = 2013-03-14 | work = util-linux | access-date = 2015-07-01}}</ref> * clock<ref>{{cite web | url = https://git.kernel.org/cgit/utils/util-linux/util-linux.git/tree/NEWS?id=f2f731deb883299880ac16a1dccb3a3865c9f7cd#n1296 | title = clock: Dropped entirely. Use hwclock | author = Karel Zak | work = util-linux | access-date = 2015-07-01}}</ref> * cytune<ref>{{cite web | url = https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=198556b76caadc90286db2f489fbfafffc4bb3cb | title = cytune: remove from util-linux | author = Sami Kerola | date = 2014-05-11 | work = util-linux | access-date = 2015-07-01}}</ref> * ddate{{efn|removed from default build<ref>{{cite web | url = https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=4a8962f3a7cb970b28add7d770528edebbe03635 | title = build-sys: add --enable-ddate | author = Karel Zak | date = 2011-08-18 | work = util-linux | access-date = 2014-04-12}}</ref> before being removed<ref>{{cite web | url = https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=4cf02b65109029a38f708148dea8d2bdf2fa19de | title = ddate: remove from util-linux | author = Sami Kerola | date = 2012-10-08 | work = util-linux | access-date = 2015-07-01}}</ref> altogether}} * elvtune<ref>{{cite web | url = https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=a272c5747c08495187d4f1b7fb1c9874af597b32 | title = build-sys: complete elvtune removal | author = Sami Kerola | date = 2013-08-17 | work = util-linux | access-date = 2015-07-01}}</ref> * fastboot<ref name="simpleinit">{{cite web | url = https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=0ff9e65ea30ee7e3548d11992a180d95d0a02fe9 | title = simpleinit: remove this deprecated set of utils | author = Karel Zak | date = 2011-06-08 | work = util-linux | access-date = 2014-04-12}}</ref> * fasthalt<ref name="simpleinit"/> * halt<ref name="simpleinit"/> * initctl<ref name="simpleinit"/> * ramsize{{efn|name=to-rdev|formerly a symlink to rdev<ref name="rdev"/>}} * rdev<ref name="rdev">{{cite web | url = https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=a3e40c14651fccf18e7954f081e601389baefe3f | title = rdev: remove this deprecated command | author = Karel Zak | date = 2010-05-13 | work = util-linux | access-date = 2014-04-12}}</ref> * reboot<ref name="simpleinit"/> * rootflags{{efn|name=to-rdev}} * shutdown<ref name="simpleinit"/> * simpleinit<ref name="simpleinit"/> * tailf<ref name="tailf">{{cite web | url = https://www.spinics.net/lists/util-linux-ng/msg13779.html | title = tailf: remove deprecated utility | author = Sami Kerola | date = 2017-04-02 | work = util-linux}}</ref> * vidmode{{efn|name=to-rdev}} {{div col end}}

==See also== * {{Annotated link|BusyBox}} * {{Annotated link|CUPS}} * {{Annotated link|GNU Core Utilities}} * {{Annotated link|Toybox}} * {{Annotated link|uname}}

==Notes== {{notelist}}

==References== {{Reflist|30em}}

==External links== * [https://git.kernel.org/cgit/utils/util-linux/util-linux.git/ The util-linux code repository.] * [https://www.kernel.org/pub/linux/utils/util-linux/ pub/linux/utils/util-linux] on Kernel.org * [http://vger.kernel.org/vger-lists.html#util-linux util-linux development discussion and bug reporting mailing list] * [https://karelzak.blogspot.com/ Karel Zak's blog], the blog of the current maintainer

{{Unix commands}}

Category:Linux Category:Hardware in Linux Category:Free system software Category:Free software programmed in C