「util-linux」

  LINUX MANUAL PAGES

Util-linux,该软件包中包含了繁杂的命令。这些命令用于文件系统、控制台、分区和信息。

安装的命令列表

addpart
Informs the Linux kernel of new partitions

agetty
Opens a tty port, prompts for a login name, and then invokes the login program

blkdiscard
Discards sectors on a device

blkid
A command line utility to locate and print block device attributes

blockdev
Allows users to call block device ioctls from the command line

cal
Displays a simple calendar

cfdisk
Manipulates the partition table of the given device

chcpu
Modifies the state of CPUs

chrt
Manipulates real-time attributes of a process

col
过滤掉反向换行符号。

colcrt
Filters nroff output for terminals that lack some capabilities, such as overstriking and half-lines

colrm
Filters out the given columns

column
Formats a given file into multiple columns

ctrlaltdel
Sets the function of the Ctrl+Alt+Del key combination to a hard or a soft reset

delpart
Asks the Linux kernel to remove a partition

dmesg
Dumps the kernel boot messages

eject
Ejects removable media

fallocate
Preallocates space to a file

fdformat
Low-level formats a floppy disk

fdisk
Manipulates the partition table of the given device

findfs
Finds a file system by label or Universally Unique Identifier (UUID)

findmnt
Is a command line interface to the libmount library for work with mountinfo, fstab and mtab files

flock
Acquires a file lock and then executes a command with the lock held

fsck
Is used to check, and optionally repair, file systems

fsck.cramfs
Performs a consistency check on the Cramfs file system on the given device

fsck.minix
Performs a consistency check on the Minix file system on the given device

fsfreeze
Is a very simple wrapper around FIFREEZE/FITHAW ioctl kernel driver operations

fstrim
Discards unused blocks on a mounted filesystem

getopt
Parses options in the given command line

hexdump
Dumps the given file in hexadecimal or in another given format

hwclock
Reads or sets the system’s hardware clock, also called the Real-Time Clock (RTC) or Basic Input-Output System (BIOS) clock

i386
A symbolic link to setarch

ionice
Gets or sets the io scheduling class and priority for a program

ipcmk
Creates various IPC resources

ipcrm
Removes the given Inter-Process Communication (IPC) resource

ipcs
Provides IPC status information

isosize
Reports the size of an iso9660 file system

kill
Sends signals to processes

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

lastb
Shows the failed login attempts, as logged in /var/log/btmp

ldattach
Attaches a line discipline to a serial line

linux32
A symbolic link to setarch

linux64
A symbolic link to setarch

logger
Enters the given message into the system log

look
Displays lines that begin with the given string

losetup
Sets up and controls loop devices

lsblk
以“树”的形式打印所有的或者选中的块设备。

lscpu
Prints CPU architecture information

lsipc
Prints information on IPC facilities currently employed in the system

lslocks
Lists local system locks

lslogins
Lists information about users, groups and system accounts

mcookie
Generates magic cookies (128-bit random hexadecimal numbers) for xauth

mesg
控制其他用户是否可以向当前用户的终端发送消息。

mkfs
Builds a file system on a device (usually a hard disk partition)

mkfs.bfs
Creates a Santa Cruz Operations (SCO) bfs file system

mkfs.cramfs
Creates a cramfs file system

mkfs.minix
Creates a Minix file system

mkswap
Initializes the given device or file to be used as a swap area

more
A filter for paging through text one screen at a time

mount
将文件系统挂在到指定的目录中。

mountpoint
检查目录是否为一个挂载点。

namei
Shows the symbolic links in the given pathnames

nsenter
Runs a program with namespaces of other processes

partx
Tells the kernel about the presence and numbering of on-disk partitions

pg
Displays a text file one screen full at a time

pivot_root
Makes the given file system the new root file system of the current process

prlimit
Get and set a process’ resource limits

raw
Bind a Linux raw character device to a block device

readprofile
Reads kernel profiling information

rename
重命名给出的文件,使用另一个替换给出的字符串。

renice
Alters the priority of running processes

resizepart
Asks the Linux kernel to resize a partition

rev
Reverses the lines of a given file

rtcwake
Used to enter a system sleep state until specified wakeup time

script
Makes a typescript of a terminal session

scriptreplay
Plays back typescripts using timing information

setarch
Changes reported architecture in a new program environment and sets personality flags

setsid
Runs the given program in a new session

setterm
设置终端的属性。

sfdisk
A disk partition table manipulator

sulogin
Allows root to log in; it is normally invoked by init when the system goes into single user mode

swaplabel
Allows to change swaparea UUID and label

swapoff
Disables devices and files for paging and swapping

swapon
Enables devices and files for paging and swapping and lists the devices and files currently in use

switch_root
Switches to another filesystem as the root of the mount tree

tailf
Tracks the growth of a log file; displays the last 10 lines of a log file, then continues displaying any new entries in the log file as they are created

taskset
Retrieves or sets a process’ CPU affinity

ul
A filter for translating underscores into escape sequences indicating underlining for the terminal in use

umount
Disconnects a file system from the system’s file tree

uname26
A symbolic link to setarch

unshare
Runs a program with some namespaces unshared from parent

utmpdump
Displays the content of the given login file in a more user-friendly format

uuidd
A daemon used by the UUID library to generate time-based UUIDs in a secure and guranteed-unique fashion

uuidgen
Creates new UUIDs. Each new UUID can reasonably be considered unique among all UUIDs created, on the local system and on other systems, in the past and in the future

wall
Displays the contents of a file or, by default, its standard input, on the terminals of all currently logged in users

wdctl
Shows hardware watchdog status

whereis
Reports the location of the binary, source, and man page for the given command

wipefs
Wipes a filesystem signature from a device

x86_64
A symbolic link to setarch

zramctl
A program to set up and control zram (compressed ram disk) devices

write

手册长度统计(暂存)

# find . -type f -name ‘*.txt’ | grep -v ‘(‘ | xargs wc -l | sort –numeric-sort -k 1,1 | pager > /tmp/tmp

5 ./pg.txt

5 ./tailf.txt

5 ./uname26.txt

# 66 ./pivot_root.txt
# 68 ./raw.txt
# 70 ./fdformat.txt
# 70 ./ipcrm.txt
# 71 ./mkfs.minix.txt
# 73 ./mkfs.cramfs.txt
# 75 ./chcpu.txt
# 75 ./namei.txt
# 76 ./scriptreplay.txt
# 79 ./fstrim.txt
# 80 ./uuidd.txt
# 83 ./taskset.txt
# 84 ./ipcs.txt
86 ./script.txt

88 ./lslocks.txt

89 ./i386.txt

89 ./linux32.txt

89 ./linux64.txt

89 ./setarch.txt

90 ./mkswap.txt

91 ./fsck.minix.txt

95 ./ionice.txt

98 ./fallocate.txt

98 ./zramctl.txt

99 ./cal.txt

101 ./readprofile.txt

102 ./lastb.txt

103 ./chrt.txt

103 ./last.txt

103 ./wipefs.txt

104 ./lsipc.txt

107 ./flock.txt

108 ./blockdev.txt

120 ./cfdisk.txt

121 ./lslogins.txt

121 ./swapoff.txt

121 ./swapon.txt

125 ./ldattach.txt

126 ./rtcwake.txt

127 ./partx.txt

131 ./nsenter.txt

135 ./lscpu.txt

135 ./prlimit.txt

149 ./unshare.txt

153 ./lsblk.txt

155 ./losetup.txt

155 ./umount.txt

158 ./setterm.txt

161 ./dmesg.txt

161 ./fsck.txt

170 ./getopt.txt

183 ./eject.txt

189 ./hexdump.txt

206 ./blkid.txt

208 ./findmnt.txt

222 ./fdisk.txt

222 ./logger.txt

336 ./agetty.txt

344 ./sfdisk.txt

448 ./hwclock.txt

1949 ./mount.txt

参考文献