Card Set Information
Linux flash cards
What is the command to search for a file?
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?
What command do you use to put things in an output file ?
> as in "grep bash > myoutfile"
Find the current directory
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?
How does tar get implemented?
tar -cf tarfilename.tar filetobe archived
flag of tar to create a file?
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
unzip a file
find out the flags for a command
man (command) q to exit
tar command to extract a file