Anti Essays offers essay examples to help students with their essay writing.

Sign Up

Lol Man Essay

Open Document

Below is an essay on "Lol Man" from Anti Essays, your source for research papers, essays, and term paper examples.

Answers to Exercises
1. What does the shell ordinarily do while a command is executing? What
should you do if you do not want to wait for a command to finish before
running another command?

2. Using sort as a filter, rewrite the following sequence of commands:
$ sort list > temp
$ lpr temp
$ rm temp
3. What is a PID number? Why are these numbers useful when you run processes
in the background? Which utility displays the PID numbers of the
commands you are running?

4. Assume that the following files are in the working directory:
$ ls
intro notesb ref2 section1 section3 section4b
notesa ref1 ref3 section2 section4a sentrev
Give commands for each of the following, using wildcards to express filenames
with as few characters as possible.
  a. List all files that begin with section.
$ ls section*
  b. List the section1, section2, and section3 files only.
$ ls section[1-3]
  c. List the intro file only.
$ ls i*
d. List the section1, section3, ref1, and ref3 files. $ ls *[13]

5. Refer to the documentation of utilities in the man pages to determine
which commands will
a. Output the number of lines in the standard input that contain the word
a or A.
b. Output only the names of the files in the working directory that contain
the pattern $(.
c. List the files in the working directory in their reverse alphabetical order.
d. Send a list of files in the working directory to the printer, sorted by size.

6. Give a command to
a. Redirect the standard output from a sort command into a file named
phone_list. Assume that the input file is named numbers.
$ sort numbers > phone_list
b. Translate all occurrences of the characters [ and { to the character (, and
all occurrences of the characters ] and } to the character ) in the file
permdemos.c. (Hint: Refer to the tr man page.)
$ cat permdemos.c | tr '[{}]' '(())' or
$ tr '[{}]' '(())' < permdemos.c
c. Create a file named book that contains the contents of two other files:...

Show More


MLA Citation

"Lol Man". Anti Essays. 26 Apr. 2018


APA Citation

Lol Man. Anti Essays. Retrieved April 26, 2018, from the World Wide Web: http://www.antiessays.com/free-essays/Lol-Man-135237.html