100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Guide to UNIX Using Linux 4th Edition By Michael Palmer (Solution Manual) $14.49   Add to cart

Exam (elaborations)

Guide to UNIX Using Linux 4th Edition By Michael Palmer (Solution Manual)

 5 views  0 purchase
  • Course
  • UNIX Using Linux 4e Michael Palmer (Solut
  • Institution
  • UNIX Using Linux 4e Michael Palmer (Solut

Guide to UNIX Using Linux 4e Michael Palmer (Solution Manual) Guide to UNIX Using Linux 4e Michael Palmer (Solution Manual)

Preview 4 out of 86  pages

  • June 19, 2023
  • 86
  • 2022/2023
  • Exam (elaborations)
  • Questions & answers
  • UNIX Using Linux 4e Michael Palmer (Solut
  • UNIX Using Linux 4e Michael Palmer (Solut
avatar-seller
tutorsection
(Guide to UNIX Using Linux 4e Michael Palmer )

(Solution Manual, For Complete File, Download link at the end of this File)



Chapter 1 Solutions

Answers to the Chapter 1 Review Questions

1. Your boss drops by your office in a hurry to ask you to attend a meeting at 10:30 on Friday morning
and you can’t find a pen to make a note as a reminder. What Linux command can you use to make a
quick note to store in a file called Meeting?
Answer: b. cat > Meeting

2. Before you make the note in Question 1, you decide to determine Friday’s date, so that you can include
it in your note. What Linux command can you use to quickly determine the Friday’s date?
Answer: a. cal

3. While you are typing a command, you misspell the name of a file you want to specify with the
command. Which of the following command line key combinations enables you to go back and fix
your error?
Answer: a. Ctrl+b

4. You haven’t changed your user account password for several months and now decide to create a new
password. Which of the following commands should you use?
Answer: d. passwd

5. You have forgotten the purpose of the -n option in the cat command. Which of the following can you
enter at the Linux command line to find out what the -n option does when used with cat?
Answer: c. man cat

6. Which of the following is the UNIX distribution originally developed through AT&T Bell Labs?
Answer: d. System V

7. Which shell is used by Linux as the default command interpreter?
Answer: a. Bash shell

8. You need to type in a line of text to the end of a file called Annual_Report. Which of the following
commands enables you to add the text?
Answer: c. cat >> Annual_Report

9. SSH can be used to ___________________.
Answer: b. log in remotely to another computer on a network

10. This is your first day on the job as a Linux server administrator and your boss gives you the password
for root. What is root?
Answer: d. the administrative account that has complete access to a UNIX/Linux system

11. In your document files, you often put the date you created the file and the date you last modified it in
the last two lines of the file. What command can you use to look at only the last two lines of the file
called, project?
Answer: c. tail -n 2 project

12. You are working with a new colleague who has entered the man command, but who does not know
how to end the man session to return to the regular command prompt. What keystrokes do you show
your colleague to end the man session? (Choose all that apply.)
Answer: a. q




1

,13. Which of the following are examples of Linux distributions? (Choose all that apply.)
Answer: a. SUSE Linux Enterprise, b. Mandriva, c. Fedora, and d. Red Hat Enterprise Linux

14. Which of the following commands enable you to view the contents of a file? (Choose all that apply.)
Answer: a. less and b. cat

15. When you enter the who command, what information do you see? (Choose all that apply.)
Answer: a. the users on the local system

16. You have been entering lots of commands and now your terminal window is cluttered will all kinds of
activity. What command can you use to clear your window of the clutter?
Answer: d. clear

17. You share a Linux computer with a coworker. What is the best way to exit your UNIX or Linux
session when you are done?
Answer: d. Use a GUI menu option to log out or enter an appropriate command for the shell you
are using, such as exit or logout (if there is no GUI desktop in use).

18. You work at a law firm with eight other people. All of the eight computers on the firm’s network use
wireless connections to communicate with one another without a server. This is an example of which
of the following?
Answer: b. a peer-to-peer network

19. On which of the following types of computers might you find a UNIX or Linux operating system?
(Choose all that apply.)
Answer: a. a mainframe computer, b. a desktop PC, c. a server, and d. a workstation for scientific
research

20. You’re in a hurry and have just executed a command to print the contents of a file; and you decide you
want another copy of the printout. What key sequence can you use to repeat the last command, which
was used to print the file?
Answer: c. Press the up arrow key one time.

21. Your international company is scheduling a meeting among managers in Canada, the United States,
Spain, Sweden, and Hong Kong on the basis of Greenwich Mean Time (GMT). What command
enables you to display the current time in GMT?
Answer: b. date -u

22. How would you describe the purpose of the more command?
Answer: The more command enables you to view a file’s contents by scrolling down.

23. What is the purpose of Telnet?
Answer: Telnet can be used to connect a UNIX , Linux, or Windows PC to a remote computer.

24. You enter Cal on the command line to view a calendar but only see an error message. Explain why you
got the error message.
Answer: UNIX and Linux are case sensitive, so to display a calendar you must use the cal
command and not Cal.

25. Explain how you can run more than one command on a single command line.
Answer: To run more than one command on a single line, use the : (semicolon) character to
separate each command.


Hands-On Projects Tips and Solutions for Chapter 1


2

,Project 1-1
In this project, students use Telnet in Windows 2000/XP/Vista to access a remote computer running
UNIX/Linux. Students will need accounts on both the Windows 2000/XP/Vista computer and the
remote computer that they access. You will also need to provide them with an IP address for the
remote computer.

Project 1-2
This project enables students to access a remote UNIX/Linux computer using ssh from a terminal
window.

After students complete this project, consider holding a discussion about the merits of using Telnet
versus SSH. Or ask students to use both tools and to write a short paper comparing them.

Project 1-3
Students practice using the date command. In the process of completing this project, they learn what
happens when a command is typed in the wrong case.

Project 1-4
.
This project enables students to explore the value of the cal command.

In Step 1, students should report that they see a calendar for the current month.

In Step 2, a Julian calendar is displayed for each month of the year 2009.

Project 1-5

In this project, students experiment with the who command. In the process, they also learn to use two
options at the same time with the command.

In Step 7, the name, line, time logged on and comment are shown for the user currently logged on.


Project 1-6
This is a simple project in which students focus on clearing a cluttered screen by using the clear
command.


Project 1-7
In this project, students learn to use the man program and then the whatis command to learn more
about specific commands and programs. Make certain the database for whatis is created before
students begin. To create the database, log on to root, access a terminal window, and type
/usr/sbin/makewhatis.

In Step 4, of the first set of steps the -M option is used to specify directories in which to look for man
pages.




3

, Project 1-8
This project enables students to practice editing what they have typed on the command line. This
capability can be time saving when executing multiple commands.

Project 1-9
In this project, students learn how to execute multiple commands on a command line by using the
semicolon separator between commands.


Project 1-10
In this project, students practice using the command-line history capability, by entering four
commands and then recalling two of them.

In Step 6, the command recalled should be who –uH.


Project 1-11
In this project, students practice changing the passwords to their user accounts. Consider
supplementing this project with a discussion of the importance of passwords, how to protect
passwords, and how to select difficult-to-guess passwords.

Project 1-12
This project is the students’ first introduction to the cat command, as they view the contents of the
/etc/shells file.

In Step 1 student should report the shells on their system, such as any or all of the following
(depending on the UNIX/Linux system):
▪ /bin/sh
▪ /bin/bash
▪ /sbin/nologin
▪ /bin/bash2
▪ /bin/ash
▪ /bin/bsh
▪ /bin/ksh
▪ /bin/tcsh
▪ /bin/csh


Project 1-13

In this project, students use the more and less commands to view the contents of a large file. When
they use the less command, they experiment with different key options to scroll forward and backward.

Project 1-14
This project enables students to practice using the head and tail commands on the /etc/termcap file.

Project 1-15


4

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller tutorsection. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $14.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

79650 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$14.49
  • (0)
  Add to cart