Differences between revisions 10 and 11
Revision 10 as of 2007-12-30 12:01:34
Size: 4992
Comment: adding Category
Revision 11 as of 2008-01-02 12:27:11
Size: 4994
Editor: MarkHobley
Comment: list order correction (minor)
Deletions are marked like this. Additions are marked like this.
Line 96: Line 96:
 * head - output the first part of files
Line 113: Line 114:
 * head - output the first part of files

["GNU"] --- The GNU Core Utilities are the basic file, shell and text manipulation utilities of the GNU operating system. These are the core utilities which are expected to exist on every operating system.

Previously these utilities were offered as three individual sets of GNU utilities, fileutils, shellutils, and textutils. Those three have been combined into a single set of utilities called the coreutils.

Debian Woody shipped with the fileutils, shellutils, and textutils packages. Sarge shipped with coreutils. In Sarge and Etch the fileutils, shellutils, and textutils were dummy transition packages to facilitate uggrades. In Etch and later they may be safely removed.

File utilities

GNU file utilities

The tools supplied with this package are:

  • ["chgrp"] - Changes file group ownership.
  • ["chown"] - Changes file ownership.
  • ["chmod"] - Changes file permissions.
  • ["cp"] - Copies files.
  • ["dd"] - Copies and converts a file.
  • ["df"] - Shows disk free space on filesystems.
  • ["dir"] - Gives a brief directory listing.
  • ["dircolors"] - Setup program for the color output of GNU ls.
  • ["du"] - Shows disk usage on filesystems.
  • ["install"] - Copies file and sets its permissions.
  • ["link"] - Creates a single file hardlink
  • ["ln"] - Creates file links.
  • ["ls"] - Lists directory contents.
  • ["mkdir"] - Creates directories.
  • ["mkfifo"] - Creates FIFOs (named pipes).
  • ["mknod"] - Creates special files.
  • ["mv"] - Moves files.
  • ["rm"] - Removes (deletes) files.
  • ["rmdir"] - Removes empty directories.
  • ["shred"] - Destroy data in files.
  • ["sync"] - Synchronizes filesystem buffers and disk.
  • ["touch"] - Changes file timestamps.
  • ["unlink"] - Removes a single file or a hardlink
  • ["vdir"] - Long directory listing.

Shell utilities

The tools supplied with this package are:

  • [ - Check file types and compare values
  • ["basename"] - Removes the path prefix from a given pathname.
  • ["chroot"] - Changes the root directory.
  • date - Prints/sets the system date and time.
  • dirname - Removes the last level or filename from a given pathname.
  • echo - Prints a line of text.
  • env - Displays/modifies the environment.
  • expr - Evaluates expressions.
  • factor - Prints prime factors.
  • false - Returns an unsuccessful exit status.
  • groups - Print the groups that the user is a member of.
  • hostid - Print the numeric identifier for the current host
  • hostname - Print or set the machine name.
  • id - Print real/effective ["uid"]/["gid"].
  • logname - Print current login name.
  • nice - Modify scheduling priority.
  • nohup - Allows a command to continue running after logging out.
  • pathchk - Check file name portability.
  • pinky - Lightweight finger
  • printenv - Prints environment variables.
  • printf - Formats and prints data.
  • pwd - Print the current working directory.
  • seq - Print numeric sequences.
  • sleep - Suspends execution for a specified time.
  • stty - Print/change terminal settings.
  • su - Allows you to adopt the id of another user or superuser.
  • tee - Sends output to multiple files.
  • test - Evaluates an expression.
  • true - Returns a successful exit status.
  • tty - Print terminal name.
  • uname - Print system information.
  • users - Print current user names.
  • who - Print a list of all users currently logged in.
  • whoami - Print effective user id.
  • yes - Print a string repeatedly.

Text utilities

The tools supplied with this package are:

  • cat - concatenate files and print to the standard output
  • cksum - checksum and count the bytes in a file
  • comm - compare 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
  • pr - convert text files for printing
  • ptx - produce a permuted index of file contents
  • 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 - output the last part of files
  • tr - translate or delete characters
  • tsort - perform topological sort
  • unexpand - convert spaces to tabs
  • uniq - remove duplicate lines from a sorted file
  • wc - print the number of bytes, words, and lines in files

<!> This page should be merged with ?BashCommands


CategoryCommandLineInterface