Chapter 1 linux

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

Fedora, Red Hat Enterprise Linux, SUSE, and Knoppix, recognize up to ____ characters in your user name.

32

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

: Type who -uH ; w. The w command shows additional information, such as JCPU, PCFU, and WHAT columns to view what users are doing.

In the Linux Bash shell, the ____ key combination deletes a word or consecutive characters.

Alt+d

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

Bash Shell

You enter 'Cal' on the command line to view a calendar, but only see an error message. Choose the answer that is the most correct explanation for this message.

Both UNIX and Linux are case sensitive, so to display a calendar you must use the cal command and not Cal.

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?

Ctrl+b

The system administrator's prompt is the $ (dollar sign).

False

UNIX/Linux are not case sensitive.

False

Create a file called who_info that contains the documentation for the who command. Next, use the less command to view the who_info file contents and scroll forward and backward through the information. Then use the tail command to view the final 12 lines of the who_info file. Finally, use the head command to view the first 12 lines of the who_info file

First, use the command man who > who_info. Next, use the command less who_info and use the scroll keys, such as the Pg Dn and Pg Up keys. Then use the command tail -n12 who_info. Finally, use the command head -n12 who_info. `

Currently, the ____ project, a joint effort of experts from industry, academia, and government, is working to standardize UNIX.

POSIX

Which of the following are examples of Linux distributions? (Choose all that apply.)

SUSE Linux Enterprise Mandriva Fedora Red Hat Enterprise Linux

Use the cal command to determine on what day of the week you were born

Students should type cal plus the month they were born and the year, such as cal 9 1985.

Use the man program to determine what other commands you should also see in relation to the clear command

Students should type man clear. The other commands of interest are: tput and terminfo

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

System V

What is the purpose of Telnet?

Telnet can be used to connect a UNIX, Linux, or Windows PC to a remote computer.

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?

The administrative account that has complete access to a UNIX/Linux system.

How would you describe the purpose of the more command?

The more command enables you to view a file's contents by scrolling down.

How you can run more than one command on a single command line?

To run more than one command on a single line, use the ';' (semicolon) character to separate each command.

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

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)

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

Use the command who -b.

Use the cal command to determine which year between 2005 and 2010 is a leap year

Use the command, cal -j 2008, because 2008 is a leap year; also use cal -j 2012, because 2012 is also a leap year. Note that a leap year has 366 days in the Julian calendar.

On which of the following types of computers might you find a UNIX or Linux operating system? (Choose all that apply.)

a mainframe computer a desktop PC a server a workstation for scientific research

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?

cal

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?

cal

Create a file called month containing the current month

cal > month

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?

cat > Meeting

Your boss drops by your office in a hurry to ask you to attend a meeting at 10:30 on Friday morning. You cannot find a pen to make a note as a reminder. What Linux command could be used to make a quick note, that you choose to store in a file called 'Meeting'?

cat > meeting

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?

cat >> Annual_Report

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?

cat >> Annual_Report

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?

clear

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?

crl b

Display the current UTC.

date -u

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?

date -u

Which of the following commands enable you to view the contents of a file? (Choose all that apply.)

less, cat

SSH can be used to ___________________.

log in remotely to another computer on a network

SSH can be used to ___________________.

log in remotely to another computer on a network.

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?

man cat

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?

man cat

You can change your password, if necessary, by using the ____ command, but you must know your current password to change it.

passwd

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?

passwd

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?

passwd

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?

peer-to-peer network

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?

press the up key once

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?

q

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

q

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?

tail -n 2 project

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?

tail -n 2 project

The head and tail commands, allow you to view the first few or last few lines of a file (____ lines by default).

ten

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?

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

When you enter the who command, what information do you see? (Choose all that apply.)

the users on the local system

A ____ is used to refer to the user's home directory.

tilde (~)

Most shells keep a list of your recently used commands and allow you to recall a command without retyping it.

true

To determine information about who is logged in, you can use the ____ command.

who

Use the who command to determine the idle time for users currently logged in, but output that information to a file called users_info. Next view the file you created.

who -u > users_info and then type, for example, cat users_info.


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

Teorie biofyzika- STAVBA HMOTY, MOLEKULOVÁ FYZIKA

View Set

CCNA Cybersecurity Operations (Version 1.1) - CyberOps Chapter 13 Exam

View Set

Chapter 16: Working with the Command-Line Interface

View Set

Anthropology 204- Language and Culture Exam

View Set

Science 1083, 4th Edition, 2nd Checkup

View Set

Final Review Quizzes/Exam Questions

View Set