gnu图像处理程序
两组实用程序 util-linux
Core实用程序和util-linux
linux-包含许多Linux系统管理员最基本和最常用的工具。 它们的基本功能使系统管理员可以执行管理Linux计算机所需的许多任务,包括文本文件,目录,数据流,存储介质,过程控制,文件系统等的管理和操作。
这些工具是必不可少的,因为没有它们,就无法在Unix或Linux计算机上完成任何有用的工作。 考虑到它们的重要性,让我们对其进行检查。
随着时间的流逝,Unix取得了巨大的成功,贝尔实验室开始从根本上将它分发给大学,然后再由公司分发给媒体和运输。 那时,组织和程序员在系统管理的范围内努力实现共同目标时,就共享系统级软件。
最终,AT&T的PHB决定他们应该在Unix上赚钱,并开始使用限制性更强,价格更高的许可。 这是在软件变得更加专有,受限制和关闭的时候发生的。 与其他用户和组织共享软件已变得不可能。
有些人不喜欢它,而是与自由软件抗争。 理查德·斯托曼(Richard M. Stallman),又名RMS,领导了一群叛军,他们试图编写一个开放且免费的操作系统,他们称之为GNU操作系统。 该小组创建了GNU实用程序,但没有产生可行的内核。
当Linus Torvalds首次编写和编译Linux内核时,他需要一套非常基本的系统实用程序来开始执行微不足道的工作。 内核不提供命令或任何类型的命令外壳,例如Bash。 它本身是没有用的。 因此,Linus使用了免费提供的GNU Core实用程序并将其重新编译为Linux。 这给了他一个完整的,甚至很基本的操作系统。
您可以通过在终端命令行输入命令info coreutils
来了解组成GNU实用程序的所有单个程序。 以下核心实用程序列表是该信息页面的一部分。 实用程序按功能分组,以使特定的实用程序更容易找到; 在终端中,突出显示要获取更多信息的组,然后按Enter键。
* Output of entire files:: cat tac nl od base32 base64
* Formatting file contents:: fmt pr fold
* Output of parts of files:: head tail split csplit
* Summarizing files:: wc sum cksum b2sum md5sum sha1sum sha2
* Operating on sorted files:: sort shuf uniq comm ptx tsort
* Operating on fields:: cut paste join
* Operating on characters:: tr expand unexpand
* Directory listing:: ls dir vdir dircolors
* Basic operations:: cp dd install mv rm shred
* Special file types:: mkdir rmdir unlink mkfifo mknod ln link readlink
* Changing file attributes:: chgrp chmod chown touch
* Disk usage:: df du stat sync truncate
* Printing text:: echo printf yes
* Conditions:: false true test expr
* Redirection:: tee
* File name manipulation:: dirname basename pathchk mktemp realpath
* Working context:: pwd stty printenv tty
* User information:: id logname whoami groups users who
* System context:: date arch nproc uname hostname hostid uptime
* SELinux context:: chcon runcon
* Modified command invocation:: chroot env nice nohup stdbuf timeout
* Process control:: kill
* Delaying:: sleep
* Numeric operations:: factor numfmt seq
此列表上有102个实用程序。 它涵盖了在Unix或Linux主机上执行基本任务所需的许多功能。 但是,缺少许多基本实用程序。 例如, mount
和umount
命令不在此列表中。 那些不在GNU coreutils中的命令以及许多其他命令可以在util-linux
集合中找到。
实用程序的util-linux
软件包包含sysadmins使用的许多其他常见命令。 这些实用程序由Linux内核组织分发,实际上这107个命令中的每一个最初都是三个单独的集合fileutils
, shellutils
和textutils
在2003年合并为单个软件包 util-linux
。
agetty fsck.minix mkfs.bfs setpriv
blkdiscard fsfreeze mkfs.cramfs setsid
blkid fstab mkfs.minix setterm
blockdev fstrim mkswap sfdisk
cal getopt more su
cfdisk hexdump mount sulogin
chcpu hwclock mountpoint swaplabel
chfn ionice namei swapoff
chrt ipcmk newgrp swapon
chsh ipcrm nologin switch_root
colcrt ipcs nsenter tailf
col isosize partx taskset
colrm kill pg tunelp
column last pivot_root ul
ctrlaltdel ldattach prlimit umount
ddpart line raw unshare
delpart logger readprofile utmpdump
dmesg login rename uuidd
eject look renice uuidgen
fallocate losetup reset vipw
fdformat lsblk resizepart wall
fdisk lscpu rev wdctl
findfs lslocks RTC Alarm whereis
findmnt lslogins runuser wipefs
flock mcookie script write
fsck mesg scriptreplay zramctl
fsck.cramfs mkfs setarch
其中一些实用程序已被弃用,将来可能会从集合中淘汰。 您应该查看Wikipedia的util-linux
页面,以获取许多实用程序的信息,并且手册页还提供了有关命令的详细信息。
这两个Linux实用程序集合GNU Core实用程序和util-linux
一起提供了管理Linux系统所需的基本实用程序。 在研究本文时,我发现了一些我从未知道过的有趣的实用程序。 很少需要这些命令,但是当您需要它们时,它们是必不可少的。
在这两个集合之间,有200多个Linux实用程序。 尽管Linux有更多命令,但是这些命令是管理典型Linux主机的基本功能所需的命令。
翻译自: https://opensource.com/article/18/4/gnu-core-utilities
gnu图像处理程序