Vés al contingut

GNU Core Utilities

De la Viquipèdia, l'enciclopèdia lliure
Aquesta és una versió anterior d'aquesta pàgina, de data 23:33, 16 des 2015 amb l'última edició de ArnauBot (discussió | contribucions). Pot tenir inexactituds o contingut no apropiat no present en la versió actual.
GNU Binary Utilities
Modifica el valor a Wikidata

TipusEines de sistema operatiu
Versió estable
9.7 (9 abril 2025) Modifica el valor a Wikidata
LlicènciaGNU GPL 3.0 o posterior Modifica el valor a Wikidata
Característiques tècniques
Sistema operatiuGNU/Linux, BSD, macOS i Unix-like Modifica el valor a Wikidata
Escrit enC Modifica el valor a Wikidata
Equip
Desenvolupador(s)Projecte GNU
Més informació
Lloc webgnu.org… (anglès) Modifica el valor a Wikidata
Seguiment d'errorsSeguiment d'errors Modifica el valor a Wikidata
Free Software DirectoryCoreutils Modifica el valor a Wikidata
Guia d'usuariGuia d'usuari Modifica el valor a Wikidata

GNU Core Utilities, GNU Coreutils o simplement coreutils, és un paquet de programari desenvolupat pel Projecte GNU que conté moltes de les eines bàsiques, com cat, ls, i rm, necessaries per a sistemes operatius del tipus Unix-like. És una combinació de paquets ja existents: utilitats de fitxers «fileutils», utilitats d'intèrprets d'ordres «shellutils» i utilitats per processar textos (textutils) juntament amb altres diverses utilitats.

Funcions de GNU coreutils

Les utilitats GNU coreutils suporten cadenes llargues com a paràmetres per a les ordres a més de tenir certa permissivitat a l'hora d'especificar opcions abans dels arguments regulars (llevat que la variable d'entorn POSIXLY_ CORRECTE estigui definida). Esmentar que aquesta variable d'entorn habilita una funcionalitat diferent en BSD.

Eines

Coreutils (v 8.24) inclou les següents eines:

Eines de fitxers
chcon Changes file security context (SELinux)
chgrp Canvia el grup propietari de fitxers
chown Canvia el propietari de fitxers
chmod Canvia els permisos a fitxers i directoris
cp Copia fitxers i directoris
dd Copia i converteix dades de fitxers
df Mostra l'espai de disc lliure al sistema de fitxers
dir Llista els directoris en columnes ordenats verticalment
dircolors Estableix el color per les ordres ls dir
install Copia fitxer i estableix atributs
ln Crea enllaços a fitxers
ls Llista els fitxers d'un directori
mkdir Crea directoris
mkfifo Makes named pipes (FIFOs)
mknod Makes block or character special files
mktemp Creates a temporary file or directory
mv Moves files or rename files
realpath Returns the resolved absolute or relative path for a file
rm Removes (deletes) files
rmdir Removes empty directories
shred Overwrites a file to hide its contents, and optionally deletes it
sync Flushes file system buffers
touch Changes file timestamps
truncate Shrink or extend the size of a file to the specified size
vdir Is exactly like "ls -l -b". (Files are by default listed in long format.)
Eines de text
base64 base64 encodes or decodes data and print to standard output
cat Concatena fitxers en la sortida estàndard (stdout).
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
numfmt Reformat numbers
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 Splits 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
Eines d'intèrpret d'ordres
arch Prints machine hardware name (same as uname -m)
basename Elimina els prefixes (directoris) de les rutes a fitxers.
chroot Changes the root directory
date Prints or 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 variables
expr Evaluates expressions
factor Factors numbers
false Does nothing, but exits unsuccessfully
groups Prints the groups of which the user is a member
hostid Prints the numeric identifier for the current host
id Prints real or effective UID and GID
link Creates a link to a file
logname Print the user's login name
nice Modifies scheduling priority
nohup Allows a command to continue running after logging out
nproc Queries the number of (active) processors
pathchk Checks whether file names are valid or portable
pinky A lightweight version of finger
printenv Prints environment variables
printf Formats and prints data
pwd Prints the current working directory
readlink Displays value of a symbolic link
runcon Run command with specified security context
seq Prints a sequence of numbers
sleep Delays for a specified amount of time
stat Returns data about an inode
stdbuf Controls buffering for commands that use stdio
stty Changes and prints terminal line settings
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 Tells how long the system has been running
users Prints the user names of users currently logged into 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; this program permits expressions like [ expression ].
System utilities

Vegeu també

Referències

Enllaços externs

  • GNU Core Utilities - Lloc web oficial (anglès)
  • Conjunt d'eines alternatives amb suport unicode