OpieTaylor
Test por , creado hace más de 1 año

Review questions for Chapter 1: The Essence of UNIX and Linux

1148
3
0
OpieTaylor
Creado por OpieTaylor hace alrededor de 10 años
Cerrar

Chapter 1 Review Questions

Pregunta 1 de 25

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?

Selecciona una de las siguientes respuestas posibles:

  • note: Meeting

  • cat > Meeting

  • Meeting >> note

  • record = Meeting

Explicación

Pregunta 2 de 25

1

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 Friday's date?

Selecciona una de las siguientes respuestas posibles:

  • cal

  • date -cal

  • weekday

  • time -d

Explicación

Pregunta 3 de 25

1

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?

Selecciona una de las siguientes respuestas posibles:

  • Ctrl+b

  • Alt+End

  • Ctrl+2

  • Shift+Alt+m

Explicación

Pregunta 4 de 25

1

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?

Selecciona una de las siguientes respuestas posibles:

  • changepas

  • newpass

  • cat -p

  • passwd

Explicación

Pregunta 5 de 25

1

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?

Selecciona una de las siguientes respuestas posibles:

  • what's cat -n

  • ? cat

  • man cat

  • find -n for cat

Explicación

Pregunta 6 de 25

1

Which of the following is the UNIX distribution originally developed through AT&T Bell Labs?

Selecciona una de las siguientes respuestas posibles:

  • SUSE

  • BSD

  • TurboUNIX

  • SystemV

Explicación

Pregunta 7 de 25

1

Which shell is used by Linux as the default command interpreter?

Selecciona una de las siguientes respuestas posibles:

  • Bash shell

  • Korn shell

  • Bourne shell

  • C shell

Explicación

Pregunta 8 de 25

1

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?

Selecciona una de las siguientes respuestas posibles:

  • add = Annual_Report

  • append < Annual_Report

  • cat >> Annual_Report

  • append @ Annual_Report

Explicación

Pregunta 9 de 25

1

SSH can be used to:

Selecciona una de las siguientes respuestas posibles:

  • analyze the security on a UNIX or Linux computer

  • log in remotely to another computer on a network

  • quiet the volume of the sound card

  • quickly switch to another user account on the local computer

Explicación

Pregunta 10 de 25

1

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?

Selecciona una de las siguientes respuestas posibles:

  • the name of a practice user account

  • a program used to determine the users on a Linux server and what they are doing

  • the lowest layer or branch of security, because you must work your way up in levels of security to prove to a UNIX/Linux system that you have the skills to be an administrator

  • the administrative account that has complete access to a UNIX/Linux system

Explicación

Pregunta 11 de 25

1

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?

Selecciona una de las siguientes respuestas posibles:

  • show -l 2 project

  • display project -2

  • tail -n 2 project

  • less/2 project

Explicación

Pregunta 12 de 25

1

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.)

Selecciona una de las siguientes respuestas posibles:

  • q

  • Alt+s

  • Shift+Spacebar

  • Ctrl+Alt+Del

Explicación

Pregunta 13 de 25

1

Which of the following are examples of Linux distributions?

Selecciona una de las siguientes respuestas posibles:

  • SUSE Linux Enterprise

  • Mandriva

  • Fedora, FreeBSD, HPUX

  • Red Hat Enterprise Linux

Explicación

Pregunta 14 de 25

1

Which of the following commands enable you to view the contents of a file?

Selecciona una o más de las siguientes respuestas posibles:

  • less

  • cat

  • grok

  • whatis

  • more

Explicación

Pregunta 15 de 25

1

When you enter the who command, what information do you see?

Selecciona una de las siguientes respuestas posibles:

  • the users on the local system

  • the owner of the local system

  • a listing of all authorized users on a system, regardless of whether or not they are logged in

  • a listing of all computers on your local network

Explicación

Pregunta 16 de 25

1

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?

Selecciona una de las siguientes respuestas posibles:

  • clean

  • freshstart

  • new

  • clear

Explicación

Pregunta 17 de 25

1

You share a Linux computer with a coworker. What is the best way to exit your UNIX or Linux session when you are done?

Selecciona una de las siguientes respuestas posibles:

  • Turn off the computer using the on/off switch.

  • Use the Shut Down option even though your coworker may want to access the computer after you, because this is the best way to fully reinitialize security for the next user session.

  • Use the over >> out command.

  • 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).

Explicación

Pregunta 18 de 25

1

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?

Selecciona una de las siguientes respuestas posibles:

  • a central network

  • a peer-to-peer network

  • a stand-alone serial network

  • a Telnet spoke network with no hub

Explicación

Pregunta 19 de 25

1

On which of the following types of computers might you find a UNIX or Linux operating system?

Selecciona una o más de las siguientes respuestas posibles:

  • a mainframe computer

  • a desktop PC

  • a server

  • a workstation used for scientific research

Explicación

Pregunta 20 de 25

1

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?

Selecciona una de las siguientes respuestas posibles:

  • Press Alt+P

  • Press the Backspace key.

  • Press the up arrow key one time.

  • Press Shift+R.

Explicación

Pregunta 21 de 25

1

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?

Selecciona una de las siguientes respuestas posibles:

  • time -g

  • date -u

  • cal -t

  • hour -g

Explicación

Pregunta 22 de 25

1

How would you describe the purpose of the more command?

Selecciona una de las siguientes respuestas posibles:

  • The more command is used to display the text (often files) a page at a time.

  • Nope

Explicación

Pregunta 23 de 25

1

What is the purpose of Telnet?

Selecciona una de las siguientes respuestas posibles:

  • The text book indicates telnet can be used to remotely connect to the command line interface (i.e. shell) of UNIX computers. However, significant security issues exist with telnet resulting in telnet NOT being useful for remove shell access. Use ssh as an alternative.

  • Nope

Explicación

Pregunta 24 de 25

1

You enter Cal on the command line to view a calendar but only see an error message. Explain why you got the error message.

Selecciona una de las siguientes respuestas posibles:

  • UNIX is case sensitive. As result the desired command is cal in all lower case characters.

  • Nope

Explicación

Pregunta 25 de 25

1

Explain how you can run more than one command on a single command line.

Selecciona una de las siguientes respuestas posibles:

  • Use semi colons to separate commands on a single command line. The shell will run each command in sequence when enter is pressed.

    Example: cd /home/cim172;ls -la; vi .bashrc
    Result:
    1. Change to the /home/cim172 directory
    2. Directory listing of all contents of /home/cim172 in long format
    3. open the .bashrc file for edit

  • Nope

Explicación