GNU Core Utilities
Encyclopedia
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 system
s. It is a combination of a number of earlier packages, including textutils, shellutils, and fileutils, along with some other miscellaneous utilities.
Software package (installation)
In package management systems, which are commonly used with Linux-based operating systems, a package is a specific piece of software which the system can install and uninstall....
of GNU
GNU
GNU is a Unix-like computer operating system developed by the GNU project, ultimately aiming to be a "complete Unix-compatible software system"...
software containing many of the basic tools, such as cat
Cat (Unix)
The cat command is a standard Unix program used to concatenate and display files. The name is from catenate, a synonym of concatenate.- Specification :...
, ls
Ls
In computing, ls is a command to list files in Unix and Unix-like operating systems. ls is specified by POSIX and the Single UNIX Specification.- History :An ls utility appeared in the original version of AT&T UNIX...
, and rm
Rm (Unix)
rm is a basic UNIX command used to remove objects such as files, directories, device nodes, symbolic links, and so on from the filesystem...
, needed for Unix-like
Unix-like
A Unix-like operating system is one that behaves in a manner similar to a Unix system, while not necessarily conforming to or being certified to any version of the Single UNIX Specification....
operating system
Operating system
An operating system is a set of programs that manage computer hardware resources and provide common services for application software. The operating system is the most important type of system software in a computer system...
s. It is a combination of a number of earlier packages, including textutils, shellutils, and fileutils, along with some other miscellaneous utilities.
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.Programs included in coreutils
File Utilities | |
---|---|
chcon |
Change file security context (SELinux) |
chgrp |
Changes file group ownership |
chown |
Changes file ownership |
chmod |
Changes the permissions of a file or directory |
cp |
Copies a file or directory |
dd |
Copies and converts a file |
df |
Shows disk free space on filesystems |
dir |
Is exactly like "ls -C -b ". (Files are by default listed in columns and sorted vertically.) |
dircolors |
Setup color for ls |
install |
Copies files and set attributes |
ln |
Creates a link to a file |
ls |
Lists the files in a directory |
mkdir |
Creates a directory |
mkfifo |
Makes named pipe Named pipe In computing, a named pipe is an extension to the traditional pipe concept on Unix and Unix-like systems, and is one of the methods of inter-process communication. The concept is also found in Microsoft Windows, although the semantics differ substantially... s (FIFOs) |
mknod |
Makes block or character special files |
mktemp |
Create a temporary file Temporary file Temporary files may be created by computer programs for a variety of purposes; principally when a program cannot allocate enough memory for its tasks, when the program is working on data bigger than the architecture's address space, or as a primitive form of inter-process communication.- Auxiliary... or directory |
mv |
Moves files or rename files |
rm |
Removes (deletes) files |
rmdir |
Removes empty directories |
shred |
Overwrites a file to hide its contents, and optionally delete it |
sync |
Flushes file system buffers |
touch |
Changes file timestamps |
truncate |
Shrink or extend the size of a file to the specifed size |
vdir |
Is exactly like "ls -l -b ". (Files are by default listed in long format.) |
Text utilities | |
base64 |
base64 encode/decode data and print to standard output |
cat |
Concatenates and prints files on the standard output |
cksum |
Checksums and count the bytes in a file |
comm |
Compares two sorted files line by line |
csplit |
Splits a file into sections determined by context lines |
cut |
Removes sections from each line of files |
expand |
Converts tabs to spaces |
fmt |
Simple optimal text formatter |
fold |
Wraps each input line to fit in specified width |
head |
Outputs the first part of files |
join |
Joins lines of two files on a common field |
md5sum |
Computes and checks MD5 message digest |
nl |
Numbers lines of files |
od |
Dumps files in octal and other formats |
paste |
Merges lines of files |
ptx |
Produces a permuted index of file contents |
pr |
Converts text files for printing |
sha1sum ,sha224sum ,sha256sum ,sha384sum ,sha512sum |
Computes and checks SHA-1, SHA-224/256/384/512 message digest |
shuf |
generate random permutations |
sort |
sort lines of text files |
split |
split a file into pieces |
sum |
Checksums and counts the blocks in a file |
tac |
Concatenates and prints files in reverse |
tail |
Outputs the last part of files |
tr |
Translates or deletes characters |
tsort |
Performs a topological sort |
unexpand |
Converts spaces to tabs |
uniq |
Removes duplicate lines from a sorted file |
wc |
Prints the number of bytes, words, and lines in files |
Shell utilities | |
arch |
print machine hardware name (same as uname -m) |
basename |
Removes the path prefix from a given pathname |
chroot |
Changes the root directory |
date |
Prints/sets the system date and time |
dirname |
Strips non-directory suffix from file name |
du |
Shows disk usage on file systems |
echo |
Displays a specified line of text |
env |
Displays and modifies environment variable Environment variable Environment variables are a set of dynamic named values that can affect the way running processes will behave on a computer.They can be said in some sense to create the operating environment in which a process runs... s |
expr |
Evaluates expressions |
factor |
Factors numbers Integer factorization In number theory, integer factorization or prime factorization is the decomposition of a composite number into smaller non-trivial divisors, which when multiplied together equal the original integer.... |
false |
Does nothing, but exits unsuccessfully |
groups |
Prints the groups Group identifier (Unix) In Unix-like systems, multiple users can be categorized into groups. POSIX and conventional Unix file system permissions are organized into three classes, user, group, and others. The use of groups allows additional abilities to be delegated in an organized fashion, such as access to disks,... of which the user is a member |
hostid |
Prints the numeric identifier for the current host |
id |
Prints real/effective UID and GID Group identifier (Unix) In Unix-like systems, multiple users can be categorized into groups. POSIX and conventional Unix file system permissions are organized into three classes, user, group, and others. The use of groups allows additional abilities to be delegated in an organized fashion, such as access to disks,... |
link |
Creates a link Hard link In computing, a hard link is a directory entry that associates a name with a file on a file system. . The term is used in file systems which allow multiple hard links to be created for the same file. This has the effect of creating multiple names for the same file, causing an aliasing effect: e.g... to a file |
logname |
Print the user's login name |
nice |
Modifies scheduling Scheduling (computing) In computer science, a scheduling is the method by which threads, processes or data flows are given access to system resources . This is usually done to load balance a system effectively or achieve a target quality of service... priority |
nohup |
Allows a command to continue running after logging out |
pathchk |
Checks whether file names are valid or portable |
pinky |
A lightweight version of finger Finger protocol In computer networking, the Name/Finger protocol and the Finger user information protocol are simple network protocols for the exchange of human-oriented status and user information.-Name/Finger protocol:... |
printenv |
Prints environment variable Environment variable Environment variables are a set of dynamic named values that can affect the way running processes will behave on a computer.They can be said in some sense to create the operating environment in which a process runs... s |
printf |
Formats and prints data |
pwd |
Prints the current working directory |
readlink |
Displays value of a symbolic link Symbolic link In computing, a symbolic link is a special type of file that contains a reference to another file or directory in the form of an absolute or relative path and that affects pathname resolution. Symbolic links were already present by 1978 in mini-computer operating systems from DEC and Data... |
runcon |
Run command with specified security context |
seq |
Prints a sequence of numbers |
sleep |
Delays for a specified amount of time |
stat |
Returns useful data about an inode Inode In computing, an inode is a data structure on a traditional Unix-style file system such as UFS. An inode stores all the information about a regular file, directory, or other file system object, except its data and name.... |
stty |
Changes and prints terminal line settings |
su |
Run a shell or command with substitute user and group IDs |
tee |
Sends output to multiple files |
test |
Evaluates an expression |
timeout |
Run a command with a time limit |
true |
Does nothing, but exits successfully |
tty |
Prints terminal name |
uname |
Prints system information |
unlink |
Removes the specified file using the unlink function |
uptime |
Tell how long the system has been running |
users |
Prints the user names of users currently logged in to the current host |
who |
Prints a list of all users currently logged in. |
whoami |
Prints the effective userid |
yes |
Prints a string repeatedly |
Other Utilities | |
|
A synonym for test Test (Unix) test is a command in Unix that evaluates conditional expressions.-Description:The test command evaluates the expression parameter. In some shells , it is actually a shell builtin, even though external version still exists. In the second form of the command, the [ ] must be surrounded by blank... , this program permits expressions like |
System Utilities | |
See also
- List of Unix programs
- BusyBoxBusyBoxBusyBox provides several stripped-down Unix tools in a single executable. It runs in a variety of POSIX environments such as Linux, Android, FreeBSD and others, such as proprietary kernels, although many of the tools it provides are designed to work with interfaces provided by the Linux kernel. It...
, a coreutils-like package for embedded Linux - GNU Binary UtilitiesGNU Binary UtilitiesThe GNU Binary Utilities, or binutils, comprise a collection of programming tools for the manipulation of object code in various object file formats. The current versions were originally written by programmers at Cygnus Solutions using the Binary File Descriptor library...