From c6cb3aa2f176d65a5ebe77e7da82e20946188a98 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Mon, 17 May 2004 21:55:01 +0000 Subject: HEAD: Retagged the Contents of ... sections. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3621 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/coreutils.xml | 662 +++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 537 insertions(+), 125 deletions(-) (limited to 'chapter06/coreutils.xml') diff --git a/chapter06/coreutils.xml b/chapter06/coreutils.xml index 2259585c6..80e6be012 100644 --- a/chapter06/coreutils.xml +++ b/chapter06/coreutils.xml @@ -94,9 +94,11 @@ mv /usr/bin/chroot /usr/sbin -Contents of Coreutils +Contents of Coreutils -Installed programs: basename, cat, chgrp, chmod, + +Installed programs +basename, cat, chgrp, chmod, chown, chroot, cksum, comm, cp, csplit, cut, date, dd, df, dir, dircolors, dirname, du, echo, env, expand, expr, factor, false, fmt, fold, groups, head, hostid, hostname, id, install, join, link, ln, logname, ls, md5sum, @@ -104,336 +106,746 @@ mkdir, mkfifo, mknod, mv, nice, nl, nohup, od, paste, pathchk, pinky, pr, printenv, printf, ptx, pwd, readlink, rm, rmdir, seq, sha1sum, shred, sleep, sort, split, stat, stty, su, sum, sync, tac, tail, tee, test, touch, tr, true, tsort, tty, uname, unexpand, uniq, unlink, uptime, users, vdir, wc, who, -whoami and yes - - - +whoami and yes + -Short descriptions +Short descriptions + +basename + basename -basename strips any path and a given suffix from -the given file name. +strips any path and a given suffix from the given file name. + + + +cat + cat -cat concatenates files to standard output. +concatenates files to standard output. + + + +chgrp + chgrp -chgrp changes the group ownership of each given -file to the given group. The group can be either given a a name or a numeric -ID. - +changes the group ownership of each given file to the given group. The +group can be either given a a name or a numeric ID. + + + + +chmod + chmod -chmod changes the permissions of each given file +changes the permissions of each given file to the given mode. The mode can be either a symbolic representation of the changes to make, or an octal number representing the new permissions. + + + +chown + chown -chown changes the user and/or group ownership of +changes the user and/or group ownership of each given file to the given user:group pair. + + + +chroot + chroot -chroot runs a given command with the specified -directory as the / directory. The given command can be an -interactive shell. On most systems only root can do -this. - +runs a given command with the specified directory as the +/ directory. The given command can be an interactive shell. +On most systems only root can do this. + + + + +cksum + cksum -cksum prints the CRC (Cyclic Redundancy Check) checksum and the byte +prints the CRC (Cyclic Redundancy Check) checksum and the byte counts of each specified file. + + + +comm + comm -comm compares two sorted files, outputting in +compares two sorted files, outputting in three columns the lines that are unique, and the lines that are common. + + + +cp + cp -cp copies files. +copies files. + + + +csplit + csplit -csplit splits a given file into several new files, +splits a given file into several new files, separating them according to given patterns or line numbers, and outputting the byte count of each new file. + + + +cut + cut -cut prints parts of lines, selecting the parts +prints parts of lines, selecting the parts according to given fields or positions. + + + +date + date -date displays the current time in the given -format, or sets the system date. +displays the current time in the given format, or sets the system date. + + + +dd + dd -dd copies a file using the given block size and +copies a file using the given block size and count, while optionally performing conversions on it. + + + +df + df -df reports the amount of disk space available +reports the amount of disk space available (and used) on all mounted file systems, or only on the file systems holding the given files. + + + +dir + dir -dir is the same as ls. +is the same as ls. + + + +dircolors + dircolors -dircolors outputs commands to set the LS_COLOR +outputs commands to set the LS_COLOR environment variable, to change the color scheme used by ls. + + + +dirname + dirname -dirname strips the non-directory suffix from -a given file name. +strips the non-directory suffix from a given file name. + + + +du + du -du reports the amount of disk space used by the +reports the amount of disk space used by the current directory, or by each of the given directories including all their subdirectories, or by each of the given files. + + + +echo + echo -echo displays the given strings. +displays the given strings. + + + +env + env -env runs a command in a modified environment. +runs a command in a modified environment. + + + +expand + expand -expand converts tabs to spaces. +converts tabs to spaces. + + + +expr + expr -expr evaluates expressions. +evaluates expressions. + + + +factor + factor -factor prints the prime factors of all specified -integer numbers. +prints the prime factors of all specified integer numbers. + + + +false + false -false does nothing, unsuccessfully. It always +does nothing, unsuccessfully. It always exits with a status code indicating failure. + + + +fmt + mt -fmt reformats the paragraphs in the given files. +reformats the paragraphs in the given files. + + + +fold + fold -fold wraps the lines in the given files. +wraps the lines in the given files. + + + +groups + groups -groups reports a user's group memberships. +reports a user's group memberships. + + + +head + head -head prints the first ten lines (or the given -number of lines) of each given file. +prints the first ten lines (or the given number of lines) of each given file. + + + +hostid + hostid -hostid reports the numeric identifier -(in hexadecimal) of the host. +reports the numeric identifier (in hexadecimal) of the host. + + + +hostname + hostname -hostname reports or sets the name of the -host. +reports or sets the name of the host. + + + +id + id -id reports the effective user ID, group ID, and +reports the effective user ID, group ID, and group memberships of the current user, or of a given user. + + + +install + install -install copies files while setting their +copies files while setting their permission modes and, if possible, their owner and group. + + + +join + join -join joins from two files the lines that have -identical join fields. +joins from two files the lines that have identical join fields. + + + +link + link -link creates a hard link with the given name -to the given file. +creates a hard link with the given name to the given file. + + + +ln + ln -ln makes hard links or soft links between files. +makes hard links or soft links between files. + + + +logname + logname -logname reports the current user's login name. +reports the current user's login name. + + + +ls + ls -ls lists the contents of each given directory. +lists the contents of each given directory. By default it orders the files and subdirectories alphabetically. + + + +md5sum + md5sum -md5sum reports or checks MD5 (Message Digest 5) checksums. +reports or checks MD5 (Message Digest 5) checksums. + + + +mkdir + mkdir -mkdir creates directories with the given names. +creates directories with the given names. + + + +mkfifo + mkfifo -mkfifo creates FIFOs (First-In, First-Out, a "named pipe" in UNIX parlance) with the given names. - +creates FIFOs (First-In, First-Out, a "named pipe" in UNIX parlance) with +the given names. + + + + +mknod + mknod -mknod creates device nodes with the given names. +creates device nodes with the given names. A device node is a character special file, or a block special file, or a FIFO. + + + +mv + mv -mv moves or renames files or directories. +moves or renames files or directories. + + + +nice + nice -nice runs a program with modified scheduling priority. +runs a program with modified scheduling priority. + + + +nl + nl -nl numbers the lines from the given files. +numbers the lines from the given files. + + + +nohup + nohup -nohup runs a command immune to hangups, with +runs a command immune to hangups, with output redirected to a log file. + + + +od + od -od dumps files in octal and other formats. +dumps files in octal and other formats. + + + +paste + paste -paste merges the given files, joining +merges the given files, joining sequentially corresponding lines side by side, separated by tab characters.. + + + +pathchk + pathchk -pathchk checks whether file names are valid -or portable. +checks whether file names are valid or portable. + + + +pinky + pinky -pinky is a lightweight finger. It reports -some information about the given users. +is a lightweight finger. It reports some information about the given users. + + + +pr + pr -pr paginates and columnates files for printing. +paginates and columnates files for printing. + + + +printenv + printenv -printenv prints the environment. +prints the environment. + + + +printf + printf -printf prints the given arguments according to the +prints the given arguments according to the given format -- much like the C printf function. + + + +ptx + ptx -ptx produces from the contents of the given files +produces from the contents of the given files a permuted index, with each keyword in its context. + + + +pwd + pwd -pwd reports the name of the current directory. +reports the name of the current directory. + + + +readlink + readlink -readlink reports the value of the given symbolic -link. +reports the value of the given symbolic link. + + + +rm + rm -rm removes files or directories. +removes files or directories. + + + +rmdir + rmdir -rmdir removes directories, if they are empty. +removes directories, if they are empty. + + + +seq + seq -seq prints a sequence of numbers, within a given +prints a sequence of numbers, within a given range and with a given increment. + + + +sha1sum + sha1sum -sha1sum prints or checks 160-bit SHA1 -checksums. +prints or checks 160-bit SHA1 checksums. + + + +shred + shred -shred overwrites the given files repeatedly with +overwrites the given files repeatedly with strange patterns, to make it real hard to recover the data. + + + +sleep + sleep -sleep pauses for the given amount of time. +pauses for the given amount of time. + + + +sort + sort -sort sorts the lines from the given files. +sorts the lines from the given files. + + + +split + split -split splits the given file into pieces, by size -or by numbspliter of lines. +splits the given file into pieces, by size or by numbspliter of lines. + + + +stty + stty -stty sets or reports terminal line settings. +sets or reports terminal line settings. + + + +su + su -su runs a shell with substitute user and group IDs. +runs a shell with substitute user and group IDs. + + + +sum + sum -sum prints checksum and block counts for each -given file. +prints checksum and block counts for each given file. + + + +sync + sync -sync flushes file system buffers. It forces +flushes file system buffers. It forces changed blocks to disk and updates the super block. + + + +tac + tac -tac concatenates the given files in reverse. +concatenates the given files in reverse. + + + +tail + tail -tail prints the last ten lines (or the given -number of lines) of each given file. +prints the last ten lines (or the given number of lines) of each given file. + + + +tee + tee -tee reads from standard input while writing both +reads from standard input while writing both to standard output and to the given files. + + + +test + test -test compares values and checks file types. +compares values and checks file types. + + + +touch + touch -touch changes file timestamps, setting the access +changes file timestamps, setting the access and modification times of the given files to the current time. Files that do not exist are created with zero length. + + + +tr + tr -tr translates, squeezes, and deletes the given +translates, squeezes, and deletes the given characters from standard input. + + + +true + true -true does nothing, successfully. It always exits +does nothing, successfully. It always exits with a status code indicating success. + + + +tsort + tsort -tsort performs a topological sort. It writes a +performs a topological sort. It writes a totally ordered list according to the partial ordering in a given file. + + + +tty + tty -tty reports the file name of the terminal -connected to standard input. +reports the file name of the terminal connected to standard input. + + + +uname + uname -uname reports system information. +reports system information. + + + +unexpand + unexpand -unexpand converts spaces to tabs. +converts spaces to tabs. + + + +uniq + uniq -uniq discards all but one of successive -identical lines. +discards all but one of successive identical lines. + + + +unlink + unlink -unlink removes the given file. +removes the given file. + + + +uptime + uptime -uptime reports how long the system has been +reports how long the system has been running, how many users are logged on, and the system load averages. + + + +users + users -users reports the names of the users currently -logged on. +reports the names of the users currently logged on. + + + +vdir + vdir -vdir is the same as ls -l. +is the same as ls -l. + + + +wc + wc -wc reports the number of lines, words, and bytes +reports the number of lines, words, and bytes for each given file, and a total line when more than one file is given. + + + +who + who -who reports who is logged on. +reports who is logged on. + + + +whoami + whoami -whoami reports the user name associated with the -current effective user ID. +reports the user name associated with the current effective user ID. + + + +yes + yes -yes outputs 'y' or a given string repeatedly, -until killed. +outputs 'y' or a given string repeatedly, until killed. + + + - - -- cgit v1.2.3-54-g00ecf