GNU Core Utilities
From AmericolaWiki
The GNU Core Utilities or coreutils is a package of GNU software containing many of the basic tools such as cat, ls, and rm needed for Unix-like operating systems. It is a combination of a number of earlier packages, including textutils, shellutils, and fileutils along with some other miscellaneous utilities.
Contents |
[edit] GNU coreutils capabilities
The GNU core utilities support long options as parameters to the commands, as well as (unless the POSIXLY_CORRECT environment variable is set) the relaxed convention allowing options even after the regular arguments. Note that this environment variable enables a different functionality in BSD.
Additionally, as the GNU philosophy shifts information away from manual pages (and uses tools such as info), usage information is more extensive.
[edit] Programs included in coreutils
The Debian package coreutils 5.2.1-2 contains these programs:
File Utilities
- chgrp Changes file group ownership.
- chown Changes file ownership.
- chmod changes the permissions of a file or folder
- cp copies a file or folder
- dd Copies and converts a file.
- df Shows disk free space on filesystems.
- dir functions exactly the same as
ls - dircolors color setup for ls
- install copy files and set attributes
- ln Create a link to a file.
- ls lists the files in a directory
- mkdir creates a directory
- mkfifo make FIFOs (named pipes)
- mknod make block or character special files
- mv Moves files.
- rm Removes (deletes) files.
- rmdir Removes empty directories.
- shred overwrite a file to hide its contents, and optionally delete it
- sync flush file system buffers
- touch Changes file timestamps.
- vdir list directory contents
Text utilities
- cat concatenates and prints files on the standard output
- cksum checksum and count the bytes in a file
- comm compares two sorted files line by line
- csplit split a file into sections determined by context lines
- cut remove sections from each line of files
- expand convert tabs to spaces
- fmt simple optimal text formatter
- fold wrap each input line to fit in specified width
- head output the first part of files
- join join lines of two files on a common field
- md5sum compute and check MD5 message digest
- nl number lines of files
- od dump files in octal and other formats
- paste merge lines of files
- ptx produce a permuted index of file contents
- pr convert text files for printing
- sha1sum compute and check SHA1 message digest
- sort sort lines of text files
- split split a file into pieces
- sum checksum and count the blocks in a file
- tac concatenate and print files in reverse
- tail outputs the last part of files
- tr translates or deletes characters
- tsort perform topological sort
- unexpand convert spaces to tabs
- uniq remove duplicate lines from a sorted file
- wc prints the number of bytes, words, and lines in files
Shell utilities
- basename Removes the path prefix from a given pathname.
- chroot Changes the root directory.
- date Prints/sets the system date and time.
- dirname strip non-directory suffix from file name
- du Shows disk usage on filesystems.
- echo display a line of text
- env Displays/modifies the environment.
- expr evaluate expressions
- factor factor numbers
- false do nothing, unsuccessfully
- groups print the groups a user is in
- hostid print the numeric identifier for the current host
- id Print real/effective uid/gid.
- link call the link function to create a link to a file
- logname print user's login name
- nice Modify scheduling priority.
- nohup Allows a command to continue running after logging out.
- pathchk check whether file names are valid or portable
- pinky lightweight finger
- printenv print all or part of environment
- printf format and print data
- pwd Print the current working directory.
- readlink display value of a symbolic link
- seq print a sequence of numbers
- sleep delay for a specified amount of time
- stat returns useful data about an inode.
- stty change and print terminal line settings
- tee Sends output to multiple files.
- test Evaluates an expression.
- true do nothing, successfully
- tty Print terminal name.
- uname Print system information.
- unlink call the unlink function to remove the specified file
- users print the user names of users currently logged in to the current host
- who Print a list of all users currently logged in.
- whoami print effective userid
- yes Print a string repeatedly.
In addition, coreutils contains a program called [. It is a synonym for test, permitting expressions like [ expression ].
[edit] See also
- List of Unix programs
- BusyBox coreutils like package for embedded Linux.
- GNU Binary Utilities
[edit] External link
| Unix command line programs and builtins (more) | |||
| File and file system management: | cat | cd | chmod | chown | chgrp | cp | du | df | file | fsck | ln | ls | lsof | mkdir | mount | mv | pwd | rm | rmdir | split | touch | ||
| Process management: | at | chroot | crontab | exit | kill | killall | nice | pgrep | pidof | pkill | ps | sleep | time | top | wait | watch | ||
| User Management/Environment: | env | finger | id | mesg | passwd | su | sudo | uname | uptime | w | wall | who | whoami | write | ||
| Text processing: | awk | comm | cut | ex | head | iconv | join | less | more | paste | sed | sort | tail | tr | uniq | wc | xargs | ||
| Shell programming: | echo | expr | printf | unset | Printing: | lp |
| Communications: inetd | netstat | ping | rlogin | traceroute | Searching: find | grep | strings | Miscellaneous: banner | bc | cal | man | size | yes | |
History: GNU Manifesto • GNU Project • Free Software Foundation (FSF)
GNU licenses: GNU General Public License (GPL) • GNU Lesser General Public License (LGPL) • GNU Free Documentation License (FDL)
Software: GNU operating system • bash • GNU Compiler Collection • Emacs • GNU C Library • Coreutils • GNU build system • other GNU packages and programs
Speakers: Robert J. Chassell • Loïc Dachary • Ricardo Galli • Georg C. F. Greve • Federico Heinz • Bradley M. Kuhn • Eben Moglen • Richard Stallman • Len Tower

