Fill in the blank with a redirect the standard output $ echo “little text” ___ a
ID: 3585567 • Letter: F
Question
Fill in the blank with a redirect the standard output
$ echo “little text” ___ aFile
Fill in the blank with a redirect the standard input
$ cat ___ newFile
Fill in the blank to zero out contents of the log file
$ cat ___________________ > someLog.out
Rewrite the following three commands as one line using a pipeline:
cat /etc/hosts > temp1
grep root < temp1
rm temp1
__________________________________________________________________________
Would you expect to find errors in the results file after running this command?
$ find /var/log –name messages 2>&1 > results | less
Yes or no? Why?
Yes because we do not have permission to see results also we should specify what we are looking for like ppp or httpd.
Explanation / Answer
1. $ echo “little text” _Display_a text of_ aFile
2. $ cat _creates__ newFile
3. $cat /dev/null > someLog.out
4.Rewrite the following:
cat /etc/hosts > temp3 | grep serverpi < temp3; rm temp3
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.