Home
Flashcards
Preview
Linux Advanced
Home
Get App
Take Quiz
Create
What is the command to search for a file?
grep
Format for searching
grep nameyouaresearchingfor location
Tell grep to ignore case
-i e.g. grep -i name /etc/services
Tell grep to search for something that doesn't contain something
-v e.g. grep -v name /etc/services
To make steps in a unix command you use what?
Pipes |
What command do you use to put things in an output file ?
> as in "grep bash > myoutfile"
Find the current directory
pwd
display the contents of a file
cat (e.g. cat myoutfile)
Append to an existing file
>> as in ls -la |grep bash >> myoutfile
What command do you use to create an archive?
Tar
How does tar get implemented?
tar -cf tarfilename.tar filetobe archived
flag of tar to create a file?
-cf
tag of tar to view a file?
-tvf as in tar -tvf cgi.tar
Extract things from a tar file
-xf as in tar -xf filelocation
Create a zipped file
gzip filename
unzip a file
gunzip filename
find out the flags for a command
man (command) q to exit
tar command to extract a file
tar -xvf
Author
dalbabes
ID
25973
Card Set
Linux Advanced
Description
Linux flash cards
Updated
2011-03-15T23:16:03Z
Show Answers
Home
Flashcards
Preview