Test
Chapter 1 Review Questions
Preguntas del test (25)
1Your 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?
- Anote: Meeting
- Bcat > Meeting
- CMeeting >> note
- Drecord = Meeting
2Before 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?
- Acal
- Bdate -cal
- Cweekday
- Dtime -d
3While 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?
- ACtrl+b
- BAlt+End
- CCtrl+2
- DShift+Alt+m
4You 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?
- Achangepas
- Bnewpass
- Ccat -p
- Dpasswd
5You 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?
- Awhat's cat -n
- B? cat
- Cman cat
- Dfind -n for cat
6Which of the following is the UNIX distribution originally developed through AT&T Bell Labs?
- ASUSE
- BBSD
- CTurboUNIX
- DSystemV
7Which shell is used by Linux as the default command interpreter?
- ABash shell
- BKorn shell
- CBourne shell
- DC shell
8You 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?
- Aadd = Annual_Report
- Bappend < Annual_Report
- Ccat >> Annual_Report
- Dappend @ Annual_Report
9SSH can be used to:
- Aanalyze the security on a UNIX or Linux computer
- Blog in remotely to another computer on a network
- Cquiet the volume of the sound card
- Dquickly switch to another user account on the local computer
10This is your first day on the job as a Linux server administrator and your boss gives you the password for root. What is root?
- Athe name of a practice user account
- Ba program used to determine the users on a Linux server and what they are doing
- Cthe 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
- Dthe administrative account that has complete access to a UNIX/Linux system
11In 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?
- Ashow -l 2 project
- Bdisplay project -2
- Ctail -n 2 project
- Dless/2 project
12You 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.)
- Aq
- BAlt+s
- CShift+Spacebar
- DCtrl+Alt+Del
13Which of the following are examples of Linux distributions?
- ASUSE Linux Enterprise
- BMandriva
- CFedora, FreeBSD, HPUX
- DRed Hat Enterprise Linux
14Which of the following commands enable you to view the contents of a file?
- Aless
- Bcat
- Cgrok
- Dwhatis
- Emore
15When you enter the who command, what information do you see?
- Athe users on the local system
- Bthe owner of the local system
- Ca listing of all authorized users on a system, regardless of whether or not they are logged in
- Da listing of all computers on your local network
16You 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?
- Aclean
- Bfreshstart
- Cnew
- Dclear
17You share a Linux computer with a coworker. What is the best way to exit your UNIX or Linux session when you are done?
- ATurn off the computer using the on/off switch.
- BUse 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.
- CUse the over >> out command.
- DUse 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).
18You 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?
- Aa central network
- Ba peer-to-peer network
- Ca stand-alone serial network
- Da Telnet spoke network with no hub
19On which of the following types of computers might you find a UNIX or Linux operating system?
- Aa mainframe computer
- Ba desktop PC
- Ca server
- Da workstation used for scientific research
20You’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?
- APress Alt+P
- BPress the Backspace key.
- CPress the up arrow key one time.
- DPress Shift+R.
21Your 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?
- Atime -g
- Bdate -u
- Ccal -t
- Dhour -g
22How would you describe the purpose of the more command?
- AThe more command is used to display the text (often files) a page at a time.
- BNope
23What is the purpose of Telnet?
- AThe 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.
- BNope
24You enter Cal on the command line to view a calendar but only see an error message. Explain why you got the error message.
- AUNIX is case sensitive. As result the desired command is cal in all lower case characters.
- BNope
25Explain how you can run more than one command on a single command line.
- AUse 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 - BNope
- AUse semi colons to separate commands on a single command line. The shell will run each command in sequence when enter is pressed.
Información
- Descripción
- Review questions for Chapter 1: The Essence of UNIX and Linux
- Autor
- OpieTaylor
- Idioma
- English
- Visitas
- 1.169
- Historial
- Creado el 18 sep 2014 · actualizado el 18 ene 2017
- Etiquetas
- Valoración
- 5,0 de 5 · 2 valoraciones Valora este test