util-linux thuộc dự án phần mềm mã nguồn mở, miễn phí Linux kernel.
util-linux cung cấp rất nhiều lệnh để người dùng thao tác với hệ điều hành Linux.
Học lệnh Linux không thể bỏ qua các lệnh có trong util-linux.
Chúng ta hãy cùng xem 84 lệnh trong util-linux để làm gì nhé.
/usr/bin/cal /usr/bin/linux32 /usr/bin/rev /usr/bin/x86_64 /usr/sbin/ldattach
/usr/bin/chmem /usr/bin/linux64 /usr/bin/script /usr/sbin/addpart /usr/sbin/mkfs
/usr/bin/choom /usr/bin/login /usr/bin/scriptlive /usr/sbin/blkdiscard /usr/sbin/mkfs.cramfs
/usr/bin/col /usr/bin/look /usr/bin/scriptreplay /usr/sbin/blkzone /usr/sbin/mkfs.minix
/usr/bin/colcrt /usr/bin/lsblk /usr/bin/setarch /usr/sbin/cfdisk /usr/sbin/nologin
/usr/bin/colrm /usr/bin/lscpu /usr/bin/setpriv /usr/sbin/chcpu /usr/sbin/pivot_root
/usr/bin/column /usr/bin/lsipc /usr/bin/setterm /usr/sbin/clock /usr/sbin/readprofile
/usr/bin/eject /usr/bin/lsirq /usr/bin/su /usr/sbin/ctrlaltdel /usr/sbin/resizepart
/usr/bin/fallocate /usr/bin/lslocks /usr/bin/ul /usr/sbin/delpart /usr/sbin/rfkill
/usr/bin/fincore /usr/bin/lslogins /usr/bin/uname26 /usr/sbin/fdformat /usr/sbin/rtcwake
/usr/bin/getopt /usr/bin/lsmem /usr/bin/utmpdump /usr/sbin/fdisk /usr/sbin/runuser
/usr/bin/hexdump /usr/bin/lsns /usr/bin/uuidgen /usr/sbin/findfs /usr/sbin/sfdisk
/usr/bin/i386 /usr/bin/mcookie /usr/bin/uuidparse /usr/sbin/fsck.cramfs /usr/sbin/sulogin
/usr/bin/irqtop /usr/bin/mesg /usr/bin/wall /usr/sbin/fsck.minix /usr/sbin/swaplabel
/usr/bin/isosize /usr/bin/namei /usr/bin/wdctl /usr/sbin/fsfreeze /usr/sbin/wipefs
/usr/bin/last /usr/bin/prlimit /usr/bin/whereis /usr/sbin/fstrim /usr/sbin/zramctl
/usr/bin/lastb /usr/bin/rename /usr/bin/write /usr/sbin/hwclock
84
cal (1) - display a calendar
chmem (8) - configure memory
choom (1) - display and adjust OOM-killer score.
col (1) - filter reverse line feeds from input
colcrt (1) - filter nroff output for CRT previewing
colrm (1) - remove columns from a file
column (1) - columnate lists
eject (1) - eject removable media
fallocate (1) - preallocate or deallocate space to a file
fincore (1) - count pages of file contents in core
getopt (1) - parse command options (enhanced)
hexdump (1) - display file contents in hexadecimal, decimal, octal, or ascii
i386 (8) - change reported architecture in new program environment and/or set personality flags
irqtop (1) - utility to display kernel interrupt information
isosize (8) - output the length of an iso9660 filesystem
last (1) - show a listing of last logged in users
lastb (1) - show a listing of last logged in users
linux32 (8) - change reported architecture in new program environment and/or set personality flags
linux64 (8) - change reported architecture in new program environment and/or set personality flags
login (1) - begin session on the system
look (1) - display lines beginning with a given string
lsblk (8) - list block devices
lscpu (1) - display information about the CPU architecture
lsipc (1) - show information on IPC facilities currently employed in the system
lsirq (1) - utility to display kernel interrupt information
lslocks (8) - list local system locks
lslogins (1) - display information about known users in the system
lsmem (1) - list the ranges of available memory with their online status
lsns (8) - list namespaces
mcookie (1) - generate magic cookies for xauth
mesg (1) - display (or do not display) messages from other users
namei (1) - follow a pathname until a terminal point is found
prlimit (1) - get and set process resource limits
rename (1) - rename files
rev (1) - reverse lines characterwise
script (1) - make typescript of terminal session
scriptlive (1) - re-run session typescripts, using timing information
scriptreplay (1) - play back typescripts, using timing information
setarch (8) - change reported architecture in new program environment and/or set personality flags
setpriv (1) - run a program with different Linux privilege settings
setterm (1) - set terminal attributes
su (1) - run a command with substitute user and group ID
ul (1) - do underlining
uname26 (8) - change reported architecture in new program environment and/or set personality flags
utmpdump (1) - dump UTMP and WTMP files in raw format
uuidgen (1) - create a new UUID value
uuidparse (1) - a utility to parse unique identifiers
wall (1) - write a message to all users
wdctl (8) - show hardware watchdog status
whereis (1) - locate the binary, source, and manual page files for a command
write (1) - send a message to another user
x86_64 (8) - change reported architecture in new program environment and/or set personality flags
addpart (8) - tell the kernel about the existence of a partition
blkdiscard (8) - discard sectors on a device
blkzone (8) - run zone command on a device
cfdisk (8) - display or manipulate a disk partition table
chcpu (8) - configure CPUs
clock (8) - time clocks utility
ctrlaltdel (8) - set the function of the Ctrl-Alt-Del combination
delpart (8) - tell the kernel to forget about a partition
fdformat (8) - low-level format a floppy disk
fdisk (8) - manipulate disk partition table
findfs (8) - find a filesystem by label or UUID
fsck.cramfs (8) - fsck compressed ROM file system
fsck.minix (8) - check consistency of Minix filesystem
fsfreeze (8) - suspend access to a filesystem (Ext3/4, ReiserFS, JFS, XFS)
fstrim (8) - discard unused blocks on a mounted filesystem
hwclock (8) - time clocks utility
ldattach (8) - attach a line discipline to a serial line
mkfs (8) - build a Linux filesystem
mkfs.cramfs (8) - make compressed ROM file system
mkfs.minix (8) - make a Minix filesystem
nologin (8) - politely refuse a login
pivot_root (8) - change the root filesystem
readprofile (8) - read kernel profiling information
resizepart (8) - tell the kernel about the new size of a partition
rfkill (8) - tool for enabling and disabling wireless devices
rtcwake (8) - enter a system sleep state until specified wakeup time
runuser (1) - run a command with substitute user and group ID
sfdisk (8) - display or manipulate a disk partition table
sulogin (8) - single-user login
swaplabel (8) - print or change the label or UUID of a swap area
wipefs (8) - wipe a signature from a device
zramctl (8) - set up and control zram devices
Lệnh Linux là 1 bầu trời thương nhớ, không có đối thủ xứng tầm.
Bài tập Linux thực chiến dành cho bạn là
util-linux có phải có 84 lệnh không hay nhiều hơn?
Mời bạn tham gia khóa học Lập trình Bash shell thực chiến của chúng tôi để có câu trả lời.
Học lập trình chuyên sâu – thực chiến và cả khoa học máy tính cho bạn lun.