Wells, Guide to Linux Installation & Administration, 2E 0 ...
Guide to Linux Installation and Administration, 2e
Chapter 7 Solutions
Review Questions
1. What nontechnical skills are important when working as a system administrator?
Creativity, problem-solving, patience, ability to work with people, dependability, ability to work in teams, and many others
2. One advantage of using multiple plain-text configuration files in Linux is that
c. If one configuration file becomes corrupted, none of the other system services are affected.
3. Which task is not likely to be assigned to you as a system administrator?
a. Develop a new cash register system using C programming.
4. A _____ runs a subtask as part of a larger task.
c. thread
5. Describe the function of the help desk within an organization.
It tries to provide quick answers to technical questions or problems raised by end-users, often within a large office environment.
6. Name three graphical tools that are used either for general system administration or for administration of a specific service (such as a Web server).
Webmin, COAS, various KDE and Gnome tools, and many others.
7. 7.Given that ls uses options in standard format, which of the following does not have correctly formed options?
d. ls -sort=time
8. A pipe is a method of connecting
b. The output channel of one process with the input channel of another process.
9. The command ls | sort causes the following to occur:
a. The output of the ls command is sent to the sort command. The results are printed to the screen.
10. A regular expression is used to:
c. define a potentially complex pattern used for searching
11. When you run a program called gather_data, it normally reads lines entered at the keyboard. If you use the command gather_data < input_text to run the program, the following occurs:
b. The input that the gather_data program would normally read from the keyboard is taken from the input_text file instead.
12. Describe the difference between find and locate.
find acts directly on the file system and has many powerful options; locate acts on a listing of files and directories and can only search for basic words, without regular expressions and without the ability to check different attributes of a file (such as its size or creation date)
13. The regular expression [cC]hapter0[12345]* will not match which of the following files:
c. Chapter1.doc
14. The find command should be used instead of the locate command when:
a. your locate index has not been updated recently
15. The grep command is not useful for which of the following:
b. Determining which directories are currently in use
16. Some devices are accessed directly through /dev; for others, access is provided by
c. Associating a device in /dev with another system resource such as a different directory name.
17. Describe the difference between ps and kill.
ps lists information about processes. kill as described in this chapter stops a process (more detail is provided in Chapter 10)
18. Linux filenames can include
d. letters, digits, punctuation, and many special characters
19. The rm command is used in Linux to:
b. delete files from a hard disk
20. CDE for UNIX would be equivalent to _____ on Linux.
a. Gnome
21. Name three methods of learning about Linux commands as you work at a command line.
The man command; the info command; the --help option of the command you are using; the apropos command
22. A trashcan facility on a Linux graphical desktop differs from the rm command in that
a. Files placed in the trashcan are not deleted until the trashcan is emptied, but files deleted by rm are deleted immediately.
23. Describe the errors in this command: Ls /help
The command name must be all lowercase; the option must use two hyphens, not a backslash
24. The ps command does not provide information about:
d. when the threads of the process expire
25. The kill command is used to end:
a. a process
Hands-on Projects
[pic] Project 7-2
7. Explore the info page. Sometimes the man or info page simply refers to the other without containing any substantive information. In this case, both the man and info pages contain a fair description of the utility. Do you have a preference for man or info based on the navigation utility? What major differences do you see?
info has hypertext links; man has no hypertext but uses well-marked sections
20. Press q when you have finished reviewing this man page. What program do the commands you have used in man remind you of?
The vi text editor.
[pic] Project 7-3
8. Use the -c option to count how many words begin with s. How many are there? (This actually displays the number of lines matching the pattern; because each line contains a single word, the result here shows you the number of matching words.)
grep -c ^s words
There are 4533 words starting with s.
9. How many words start with either st or sm? (Use a single command to determine the answer.)
Use grep -c ^s[tm] words. There are 848.
13. Refer back to Project 6-4 in Chapter 6. With what you have learned about redirection, write a single string of commands to accomplish the same set of tasks without creating any intermediate files.
cut -d : -f 1,7 /etc/passwd | tr ":" "\t" | sort | nl | tac > data6
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- linux basic and administration commands
- cis department svc
- northern illinois university
- project 0 linux dabbling
- a simple to hard step by step shell scripting tutorial
- pipe commands and redirection commands
- wells guide to linux installation administration 2e 0
- command line reference for oracle windows linux and os x
Related searches
- guide to mutual fund investing
- nature communications guide to authors
- girlfriends guide to divorce characters
- guide to idaho labor laws
- walking guide to rome
- beginners guide to the stock market
- cdc guide to infection prevention
- beginners guide to mutual funds
- guide to choosing a major
- guide to infection prevention for outpatient settings
- beginners guide to excel 2016
- beginners guide to stocks