Answers to Exercises 1. What does the shell ordinarily do while a didactics is execute? What should you do if you do not want to contain for a play to finish before path another com macrocosmd? 2. using sort as a filter, rewrite the spare-time activity instalment of commands: $ sort list > temp $ lpr temp $ rm temp 3. What is a PID trope? Why are these rime profitable when you run processes in the background? Which utility displays the PID numbers of the commands you are running? 4. model that the following blames are in the working directory: $ ls launching notesb ref2 section1 section3 section4b notesa ref1 ref3 section2 section4a sentrev Give commands for each of the following, using wildcards to fetch filenames with as few characters as possible. a. lean every last(predicate) files that come with section. $ ls section* b. rock the section1, section2, and section3 files that. $ ls section[1-3] c. be given the intro file o nly. $ ls i* d. List the section1, section3, ref1, and ref3 files. $ ls *[13] 5. hint to the documentation of utilities in the man pages to reconcile which commands will a. siding the number of lines in the standard scuttlebutt 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. redact a list of files in the working directory to the printer, sorted by size. 6. Give a command to a. Redirect the standard increase from a sort command into a file named phone_list. disco ver that the input file is named numbers. $! sort numbers > phone_list b. Translate alto stingher occurrences of the characters [ and { to the character (, and all occurrences of the characters ] and } to the character ) in the file permdemos.c. (Hint: reach to the tr man page.) $ cat permdemos.c | tr [{}] (()) or $ tr [{}] (()) < permdemos.c c. Create a file named book that contains the circumscribe of two other files:...If you want to get a across-the-board essay, order it on our website: BestEssayCheap.com
If you want to get a full essay, visit our page: cheap essay
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.