100% ACCURATE 2025
grep - ANSWERlocates files by scanning their contents
uses regular expressions
find - ANSWERlocates files
does not use regular expressions
wc - ANSWERprovides basic statistics on text files
cut - ANSWERextracts text from fields in a file record
standard output - ANSWERnormal messages from programs
standard error - ANSWERan error messages from a program
> redirect operator - ANSWERcreates a new file containing standard output. It the
specified file exists, it's overwritten
>> redirect operator - ANSWERAppends standard output to the existing file. If the
specified file doesn't exist, it's created.
2> redirect operator - ANSWERCreates a new file containing standard error. If the
specified file exists, it's overwritten.
2>> redirect operator - ANSWERAppends standard error to the existing file. If the
specified file doesn't exist, it's created.
&> redirect operator - ANSWERCreates a new file containing both standard output and
standard error. If the specified file exists, it's overwritten.
< redirect operator - ANSWERSends the contents of the specified file to be used as
standard input.
<< redirect operator - ANSWERAccepts text on the following lines as standard input.
<> redirect operator - ANSWERCauses the specified file to be used for both standard
input and standard output.
, pipe | - ANSWERused to redirect the standard output from one program to another
program
xargs - ANSWERruns a specified command once for every work passed to it on
standard output
find ./ -name "*~" | xargs rm
this command will delete every file in the current directory that ends with ~
backtick ` - ANSWERthis is the character to the left of the '1' on most keyboards
text within backticks is treated as a separate command whose results are substituted on
the command line
rm `find ./ -name "*~"`
this command will delete every file in the current directory that ends with ~
$( ) - ANSWERa format for command substitution that works much like the backtick
does
rm $(find ./ -name "*~")
this command will delete every file in the current directory that ends with ~
cpio - ANSWERa file archiving utility similar to tar
tar - ANSWERtape archiver
used to archive a group of files into a single file called an archive
unlike most terminal utilities, options are added to the tar command without a leading -
tar commands - ANSWER
tar usage - ANSWERtar czvf ~/Documents/archive.tgz ~/Desktop
- creates an archive called 'archive.tgz' of the contents of the Desktop directory and puts
it in the Documents directory
tar xzvf archive.tgz
- Extracts 'archive.tgz' into the current directory.
tar xzvf and tar czvf - ANSWERx - extract
c - create