UNIX Ch01 PQ

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

You have created a small program file, called process, and want to view that file's contents with the number of each line displayed. Which of the following will work to accomplish this? Note that the file is in your current directory. Choose all that apply 1) all --numbered process 2) cat -n process 3) none of these choices 4) more -n process 5) process -more

2

It has been a long day and you just don't remember the purpose of the ping command. What command can you use for a quick reference? 1) ping -brief 2) sum ping 3) whatis ping 4) none of these choices 5) show ping

3

You are using the cat command to create a file. When you are finished typing the text into the file, you press the letter s to stop; however, the file remains open. What should you type instead? 1) type end twice 2) none of these choices 3) ctrl + d 4) quite 5) alt + s

3

A system administrator is often referred to as which of the following? 1) superuser 2) core 3) kernel 4) none of these choices 5) base

1

What command can you use to see only the final eight lines of the accounts file, which is in your current directory? 1) tail -n 8 accounts 2) end 8 accounts 3) shell accounts 4) more -8 accounts 5) none of these choices

1

_______ have been popular in large corporations and industrial computing. 1) mainframe systems 2) all of these choices 3) embedded computers 4) super computers 5) open equipment systems

1

Which of the following are typical roles for a UNIX/LINUX system? choose all that apply 1) network operating system 2) server 3) standalone computer 4) client

1,2,3,4

You want to execute two commands on one line by using a colon to separate the commands. What is the problem with this? 1) To reduce processing overhead and the risk of system crashes, UNIX/Linux are not designed to enable executing two commands on the same line 2) you must use two colons, one just after the first command and one just before the second command 3) you should use a semicolon instead 4) you should use a comma instead 5) none of these choices

3

______ refers to a command's format and wording as well as the options and arguments you can use to extend and modify functions. 1) parameters 2) synchronization 3) syntax 4) portability 5) logic

3

which of the following represents the proper syntax of the date command in UNIX/Linux? 1) date_ 2) DATE 3) date 4) $DATE 5) _date

3

Some versions of Linux, such as Fedora and Red Hat Enterprise Linux, SUSE, and Knoppix, recognize up to _____________ characters in your username. a. 6 b. 15 c. 8 d. 128 e. 32

32

What happens when you use the command cat >> accounts? 1) none of these choices 2) It deletes the accounts file 3) it overwrites what is currently in the accounts file 4) it appends what you type next to the end of the accounts file 5) it display the contents of the accounts file to the monitor

4

You want to view the contents of the names file which is located in the programs directory. You are currently in your user home directory. Which of the following commands will enable you to view the entire contents of the file? choose all that apply 1) none of these choices 2) cat names 3) list /names/programs 4) more /programs/names 5) tail names

4

A(n) _____ is used to create a new file or to overwrite an existing file by attaching it to a command that produces output. 1) current symbol 2) pip symbol 3) attachment symbol 4) substitution symbol 5) redirection symbol

5

Linux uses which of the following shells as the default command interpreter? 1) dash 2) C 3) bourne 4) korn 5) Bash

5

You forgot your watch this morning and need to check the time, because you are scheduled for a 10:00 A.M. meeting. What command can you use to check the current time? 1) whattimeisit 2) none of these choices 3) time -c 4) what time is it 5) date

5

Your organization has telecommuters who remotely log into a UNIX server using Mac OS X computers at home. What should they use to log in with the greatest security? 1) FTP 2) Telnet 3) none of these choices 4) AOL 5) SSH

5

in newer versions of UNIX, passwords must contain how many characters? 1) 8 2) 2 3) 5 4) 1 5) 6

5

which of the following commands will help you find the UNIX online reference manuals? 1) help 2) MAN 3) ref 4) :: 5) man

5

which of the following modes is reserved for the system administrator in UNIX/Linux? 1) user mode 2) privileged mode 3) foundation mode 4) command prompt mode 5) kernel mode

5

You have decided to change your password. To do this, you must first _______________. A. Know your current password. B. Contact your system administrator, because only the system administrator can change account passwords. C. Set the password change parameter for your account as a security measure. D. None of these choices. E. Log out and use the external password program for the login dialog box.

A

Which of the following are shells employed on the UNIX/Linux systems? (Choose all that apply.) a. tcsh b. csh c. ksh d. ash

All of the above

From the Linux command line, press _____ to move the cursor to the previous word.

Alt+b

Assume you have just created a new file using the cat command and the redirect symbol. Press __________ to save your changes and exit.

Ctrl+d

From the Linux command line press ________ to delete the command line from the current cursor position.

Ctrl+k

Which of the following shells includes a history feature that lets you use a keyboard shortcut to retrieve commands you previously entered? a. Korn b. Bourne c. Bash d. Korn and Bash e. All of these choices

D

In order to log out of the Bourne shell in the UNIX operating system, you would type logout. True or False

False

_____________ refers to a commands format and wording.

Syntax

The Korn shell in UNIX/Linux includes many extensions, such as a history feature, that lets you use a keyboard shortcut to retrieve commands that your previously entered. True or False

True

The whatis command displays a brief description of a command. True or False

True

You can type more than one command on the command line by separating each command with a semicolon. True or False

True

Is the greater than sign (>) an example of a redirection symbol? Yes or no

Yes

As a programmer, your supervisor has assigned you to check the documentation and copyright lines in 50 programs. This information appears in the first 15 lines of each program file. What command can you use to quickly check each file? a. head -n 15 filename b. more | -l15 filename c. less -15 filename d. front -15 filename e. None of these choices.

a

Which of the following can you use to view the next page when viewing a file using the less command? (Choose all that apply) a. z b. n c. Spacebar d. PgDn (Page Down)

a,c,d

Frome the Linux command line, press _____ to delete a word or consecutive characters

alt+d

From the Linux command line, press ___ to move the cursor to the position just before the first character of the next word.

alt+l

In UNIX/Linux a Kernel is ________________. a. A command interpreter for programmers. b. A set of core operating system programs. c. An account that has access to the entire system. d. A licence to use the operating system. e. None of these choices.

b

When viewing the contents of a file with the less command, press _____ to return to a previous screen.

b

You need to review the documentation for the cat command. What should you type on the command line to see this documentation? a. None of these choices b. help cat and press Enter c. man cat and press Enter d. cat /help and press Enter e. cat ? and press Enter

c

which of the following is an internet terninal emulation program? a. dominion b. ftp c. telnet d. Gnome e. x windows

c

Identify the Linux command used to display the system calendar in Linux.

cal

You are on the telephone scheduling an appointment and dont have a paper calendar handy. What command can you type on your Linux workstation to view the current month, which is July?

cal

Provide the Linux command used to display the calendar for 2013 in Julian date format.

cal -j 2013

Identify the Linux command used to display the calendar for July of 1776.

cal 7 1776

A redirection operator may be used to redirect the output of a command into a file. Create a file called month containing the current month.

cal > month

use the cat command to view the contents of /etc/shells with a number at the beginning of each line of output

cat -n /etc/shells

view the contents of /etc/shells

cat /etc/shells

identify the linux command for clearing the screen and moving the command prompt to the upper, left-hand corner of the screen.

clear

The cat command gets its name from the word ________________, which means to link.

concatenate

From the Linux command line, press ___ to move the cursor to the beginning of the command line.

ctrl+a

Which of the following commands helps an individual determine who is logged in to a UNIX system? a. whatis b. whois c. man d. who e. who -y

d

Identity the linux command used to display the current date and time

date

Provide the Linux command used to display your system date in Coordinated Universal Time (UTC).

date -u

on one command line, provide the linux command used to view the current date and this month's calendar

date ; cal

Append the current date and time to the file notes.

date >> notes

In your accounting firm, there are 17 computer users whose computers share information and access shared information on other computers, all without management by a central computer. This is an example of an ________________________. a. Unmanaged Network b. Hosted Network c. Server-based Network d. None of these choices e. Peer-to-peer Network

e

You can access the command history with which of the following keys? a. Esc Key b. F1 Key c. Question Mark Key d. F10 Key e. Up and down arrow Keys

e

provide the echo command used to determine the shell that you are using in linux.

echo $SHELL

Network functionality in UNIX/Linux must be installed separately from the original operating system. true or false

false

On some UNIX/Linux systems, the administrator must execute the makedatabase command, which creates a database, before the whatis command operates properly. True or False

false

The key sequence Ctrl+a deletes the word at the current location of the cursor location of the cursor when you are creating a command on the command line. true or false

false

The user is at the bottom layer of a UNIX/Linux operating system pyramid. true or false

false

You would use a(n) exclamation point in order to exit out of the online manual in UNIX. True or False

false

when you are using a terminal window and it is cluttered with commands and information, use the blank command to clear the screen. true or false

false

display the first 5 lines of the /etc/termcap file

head -n 5 /etc/termcap

display the first 10 lines of the /etc/termcap file

head /etc/termcap

In Linux, you can use the ___ command to read a large file, screen by screen

less

Use the man program to find out what the -R option does when used with the date command.

man date

Identify the Linux command used to display the detailed online help for the who command.

man who

is a server often referred to as a client? yes or no

no

is the user mode a mode in the UNIX file system that is reserved for the administrator? yes or no

no

To change your password from the command prompt in Linux, type ___________ and press enter.

passwd

the command line prompt for the system administrator is represented by the _________ symbol

pound

Identify the command for exiting the man program.

q

when viewing the contents of a file with the more command, press _____ to terminate the display.

q

In linux you can execute multiple commands on one command line by using a ____ between commands

semicolon

You can type more than one command on the command line by separating commands with a ____.

semicolon

when viewing the contents of a file with the more command , press the ___ to scroll to the next screen.

spacebar

Display the last 10 lines of the /etc/termcap file.

tail -n 10/etc/termcap

Display the last 5 lines of the /etc/termcap

tail -n 5/etc/termcap

In unix/linux, shell operates between the user and the kernel, enabling the user to execute commands. true or false

true

The > character is a redirection symbol in a Unix/linux command true or false

true

a mainframe operating system controls a large computer system that offers extensive processing, mass storage, and client access for industrial-strength computing true or false

true

Use the whatis command to determine the purpose of the ls command.

whatis ls

Identify the command used to display a brief description of the who command.

whatis who

Identify the Linux command to determine who is currently logged in to the system

who

use the who command and display a line of column headings with the command's output

who -H

Determine when the computer on which you are working was last booted.

who -b

Use the who command to determine the amount of time that has elapsed with no activity in a user's session.

who -u

Use the who command to see a list of users with idle times and column headings

who -uH

Run the who -uH and w commands using one command-line sequence to compare the results.

who -uH ; w

Use a redirection symbol to redirect the output of the who command to a file named current_users.

who > current_users

Identify the Linux command to determine which terminal you are using or what time you logged in.

who am i

Is UNIX case sensitive?

yes

Is Bash the default shell in Linux? Yes or No

Yes


संबंधित स्टडी सेट्स

Chapter 15: Evolution by Natural Selection

View Set

Prep U: Chapter 23: Asepsis and Infection Control

View Set

CH. 31 NASAL CONGESTION/ COUGH DRUGS PREP U

View Set