NDG Linux Essentials 2.0 Final Exam (Chapter 9-18)

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

Which of the following options for the useradd command allows you to use a different primary group then the default? a) -G b) -u c) -U d) -g

-g

Which of the following options for the useradd command allows root to specify the UID to be associated with the account? a) -u b) -g c) -M d) -G

-u

A service is...

...a feature provided by one computer to another.

The "setuid" permission...

...allows a command to be run as the file owner.

Each user belongs to at least one group. True or False?

True

The /var directory has files that change over time. True or False?

True

The chown command can be used to change the owner and group of a file. True or False?

True

The fdisk command is a tool used for working with the MBR partitioned disks. True or False?

True

Which command will display the UID, GID and groups your current user belongs to?

id

Which command will display the groups that the root user belongs to?

id root

What command can be used to determine a user's most recent log in? a) last b) login c) history d) shell

last

What command can be used to print line numbers?

nl

A division of a hard drive may be referred to as a _______ .

partition

Which commands will allow you to log into a remote machine?

ssh

Which command can be used to modify a user?

usermod

Which command will display the users that are currently logged in to the system?

who

The "setgid" permission... (choose two) ...prevents the group owner of a file from being changed. ...allows files created in a directory to be owned by the group that owns the directory. ...allows a command to be run as the group owner of the file. ...can only be set on files.

...allows files created in a directory to be owned by the group that owns the directory. ...allows a command to be run as the group owner of the file.

The sticky bit permission...

...prevents others from removing files they don't own from a common directory.

A pipe allows you to...

...send the output of one command to another.

What is the root directory of the filesystem?

/

Which file contains encrypted user password information?

/etc/shadow

What directory typically contains log files?

/var/log

The Process ID (PID) of the init process is?

1

What is the meaning of $(( $i + 1)) ?

1 will be added to the i variable

Which files contain user account information? (there are two)

1) /etc/passwd 2) /etc/shadow

Which of the following are valid IPv4 addresses? (choose two) a) 10.33.55.77 b) 192.105.10.10.2 c) 192.105.10.10 d) 192.301.25.25

1) 10.33.55.77 2) 192.105.10.10

What are valid CPU types for Intel-based platforms?

1) 64-bit 2) 32-bit

What are traits (vlastnosti) of a multiuser operating system?

1) Resources are shared between users 2) Users can protect their information from other users 3) Many users can log in simultaneously with a unique account

Statements that are true in regard to virtual RAM

1) Virtual RAM is also called swap space 2) Virtual RAM is stored on a hard drive 3) Virtual RAM is used when available physical RAM is low.

Which of the following ls commands, when executed, will only show information about the directory itself? (choose two) a) ls -h b) ld -d c) ld -a d) ls -ld

1) ld -d 2 ls -ld

Which commands can be used to scroll through a text file?

1) less 2) more

Which commands will display CPU information?

1) lscpu 2) arch

Which of the following commands will allow you to view all processes on the system? a) ps -ef b) ps aux c) ps -eLf d) ps -A e) ps

1) ps -ef 2) ps aux

Which of the following are methods for setting permissions using the chmod command? (choose two) a) letter b) primary c) symbolic d) octal

1) symbolic 2) octal

Which are appropriate editors for writing shell scripts?

1) vi 2 nano

What is correct about for and while loops?

1) while loops have a test each cycle to determine if it should run again 2) for loops operate over a fixed list of items

The execute permission is never set on files by default. True or False?

False

Channel 2 is: a) STDIN b) STDOUT c) STDERR d) STDALL

STDERR

UIDs 1-499 are usually reserved for what kind of users?

System accounts, such as server processes

The chmod command can be used on a file by?

The file owner and root

Only servers have hostnames. True or False?

False

What is the correct way to assign the word "Hello" to a variable?

A="Hello"

What is the correct way to save the current directory to a variable?

A=`pwd`

The grep command do what?

Display all the lines in a file containing the specified Regular Expression.


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

Final Exam - Social Media Marketing

View Set

International Marketing Chapter 2 Study Questions

View Set

IS Chapter 1 Notes, What is MIS?

View Set

Chapter 10: Stress, Health, and Human Flourishing

View Set

Nurse logic 2.0 - Nursing Concepts

View Set

MKTG 311 Possible Midterm Questions

View Set

Chapter 16 The Endocrine System/Adrenal glands

View Set