Unix Chapter 1

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

The command line prompt for the system administrator is represented by the ___ symbol.

#

Which of the following are typical roles for a UNIX/Linux system?

-Standalone computer -server -client -network operating system

Which of the following can you use to view the next page when viewing a file using the less command?

-spacebar -z -Pg Dn

Which of the following are shells employed on UNIX/Linux systems?

-tcsh -csh -ksh -ash

In newer versions of UNIX passwords must contain how many characters?

6

From the Linux command line, press ___ to delete a word or consecutive characters.

Alt+d

Linux uses which of the following shells as the default command interpreter?

Bash

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

Ctrl+a

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?

Ctrl+d

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

False

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

False

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

False

True or False. When you are using a terminal window and it is cluttered with commands and information, use the blank command to clear the screen.

False

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

False

What happens when you use the command cat >> accounts

It appends what you type next to the end of the accounts file

Which of the following modes is reserved for the system administrator in UNIX/Linux?

Kernel mode

You have decided to change your password. To do this, you must first ____.

Know your current password

Yes or No. Is a server often referred to as a client?

No

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?

SSH

Another name for the Unix system administrator is ___.

Superuser

___ refers to a command's format and wording as well as the options and arguments you can use to extend and modify functions.

Syntax

Which of the following is an Internet Terminal emulation program?

Telnet

True or False. A mainframe operating system controls a large computer system that offers extensive processing, mass storage, and client access for industrial-strength computing.

True

True or False. In UNIX/Linux, a shell operates between the user and the kernel, enabling the user to execute commands.

True

True or False. The > character is a redirection symbol in a UNIX/Linux command.

True

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

True

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

True

True or False. Using the -d option with the main command to print information for debugging

True

You can access the command history with which of the following keys?

Up and down arrow keys

Yes or No. Is the UNIX operating system case sensitive?

Yes

Yes or No. Is the greater than sign > an example of a redirection symbol?

Yes

In UNIX/Linux, a kernel is

a set of core operating system programs

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

alt+l

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

b

What command can you type on you Linux workstation to view the current month?

cal

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

cal -j 2013

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

cat /etc/shells

View the contents of /etc/shells

cat /etc/shells

Use the cat command to conjunction with the redirection symbol to create a new file named notes.

cat > notes

Which of the following represents the proper syntax of the date command in UNIX/Linux?

date

You forgot your watch this morning and need to check the time. What command can you use to check the current time?

date

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

date -u

Append the current date and time to the file notes

date >> notes

On one command line, provide the Linux command used to view the current date and this months calendar.

date; cal

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

head /etc/termcap

Which of the following commands will help you find the UNIX online reference manuals?

man

You need to review the documentation for the cat command. What should you type on the command line to see this documentation?

man cat and press Enter

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

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

more

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 command will enable you to view the entire contents of the file?

more /programs/names

To change your password from the command prompt in Linux, type ___ and press Enter

passwd

The syntax for the password command is ___.

passwd -option argument

In your accounting firm, there are 17 computer users whose computers share information and access information on other computers, all without management by a central computer. This is an example of a(n) ___.

peer-to-peer network

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

A(n) ___ is used to create a new file or to overwrite an existing file by attaching it to a command that produces output.

redirection symbol

In Linux, you can execute multiple commands on one command line by using a ___ between commands.

semicolon

Display the last 5 lines of the /etc/termcap file

tail -5 /etc/termcap

What command can you use to see only the final eight lines of the accounts file, which is in your current directory?

tail -n 8 accounts

Display the last 10 lines of the /etc/termcap

tail /etc/termcap

To display a brief summary of a particular command you would use which of the following commands?

whatis

What command can you use for a quick reference to the purpose of the ping command?

whatis ping

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

whatis who

Which of the following commands helps an individual determine who is logged in to a UNIX system?

who

Use the who command and display the line of column headings with the command output.

who -H

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

who -b

Use the who command to see a quick list of current users that shows only login names and the total number of users on the system.

who -q

Use the who command to determine the amount of time that has elapsed with no activity in a users 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 the 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


Ensembles d'études connexes

NURS 126 Practice Assessment B 2023

View Set

Concepts of emergency and disaster preparedness

View Set

Simplifying Algebraic Expressions

View Set

Basic Physical Care - PassPoint NCLEX

View Set