DCOM 142 Linux Final Review

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Octal notation uses the following values for the permissions granted:

"r = 4, w = 2, x = 1"

Which option for the usermod command can be used to specify a user's group ID (either primary or secondary)? (choose two)

-G -g

The following are valid Linux option styles: (choose three)

Traditional Unix with a single dash (-) GNU long options with two dashes (--) BSD Unix without a dash

Which of the following are common busing systems? (choose two)

USB PCI

Choose all of the following statements that are true in regard to virtual RAM: (choose three)

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

The 'setuid' permission

allows a command to be run as the file owner.

The setgid permission (choose two)

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

Which of the following is a package management commands for distributions with software distributed in files ending in .deb?

apt-get

The command line front-end tool use to install packages in Debian systems like Ubuntu is _______.

apt-get aptitude

The usermod command can be used to do all of the following except...

change the user's MAX and MIN password settings.

The root user can use the ________ command to change the group owner of any file to any group.

chgrp chown

Which of the following commands will set setuid for /usr/bin/program?

chmod 4755 /usr/bin/program

Which of the following commands sets 'other' permissions on file to r-x?

chmod 775 file

Which of the following commands set 'other' permissions on file to r-x?

chmod o=rx file

The root user can use the chgrp and ________ command to change the group owner of any file to any group.

chown

A CPU flag...

defines the features that the CPU supports.

A router is another name for a __________ which is a machine that connects hosts from one network to another network.

gateway

The ________ commands can be used to add a group.

groupadd

To list the names of the ________ that you have memberships, run the groups command.

groups

To verify the identity of a user, as well find out all the primary and secondary groups and GIDs a user is part of, you can execute the ________ command.

id

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

id

Which of the following commands will display the groups that the user bob belongs to?

id bob

In regards to the Linux Filesystem, each ____ table is associated with a unique ____ number.

inode

In regards to the Linux Filesystem, the ____ table includes almost all information about a file except the file name.

inode

Which command can be used to determine a user's most recent log in?

last

Which of the following commands would create a hard link, link to file?

ln file link

Which are appropriate editors for writing shell scripts? (choose two)

nano vi

Which of the following are methods for setting permissions using the chmod command? (choose two)

octal symbolic

A division of a hard drive is referred to as a _______ .

partition

The ________ command is user to set or change a password.

passwd

To kill a firefox process using the proces name, you would type ""_____ firefox"".

pkill killall

The 'sticky bit' permission

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

Which shell command accepts input from the user's keyboard?

read

DNS server settings are found in the ____.conf file under /etc?

resolv

Which of the following commands will display the routing table?

route

The sudo command allows regular users to...

run certain commands as the root user.

When the setuid permission is set, the letter __ will appear in the execute column for the user

s S

Which of the following commands will allow you to log into the machine server1 with the account name nick?

ssh nick@server1

Servers generally use a ________ IP address vs using a dynamic IP address from a DHCP server.

static

Which of the following commands will allow you to switch to the user, branch? (choose three)

su - branch su -l branch su branch

To execute a single command as the root user, you would use the _____ command.

sudo

When the sticky bit permission is set, the letter __ will appear in the execute column for the others

t T

A command that will continuously update statistics about running processes is _____.

top

The _______ value is used to determine the default permissions that are set when a new file or directory is created.

umask

How many partitions can GPT partititioning have?

unlimited

Which of the following commands will display how long the system has been running since the last boot? (choose two)

uptime w

The ________ commands can be used to delete a user.

userdel

The ________ commands can be used to modify a user.

usermod

Use _____ to displays detailed user and system information

w

Setting setgid on a directory

will set the group owner of all files created in the directory to the group owner of the directory.

Which of the following is a package management commands for distributions with software distributed in files ending in .rpm?

yum

What is the valid device file name for the second partition of the second SATA hard drive on the system?

/dev/sdb2

Which of the following files contains user IDs?

/etc/passwd

Which of the following files contain placeholders for a password, but not the actual passwords?

/etc/passwd /etc/group

The if command looks for what exit code to consider a condition to be true?

0

The Process ID (PID) of the systemd process is _______

1

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

1 will be added to the i variable

Which of the following are valid IPv4 addresses? (choose two)

10.33.55.77 192.105.10.10

MBR or Master Boot Record partitioning is limited to ____ TB disk size.

2

X86 or 32 bit processor systems are limited to ____ GB of memory?

4

Standard user accounts typically have a UID or GID starting at ____.

500

To kill a process, it send a signal SIGKILL or the signal number ______.

9

Which of the following would be considered a host?

A printer attached to the network via an IP address

Which of the following are valid partitioning types? (choose two)

GPT MBR

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

GREETING="Hello" GREETING='Hello' GREETING=Hello

Which user can view the /etc/shadow file?

The root user

Given the following script: while [ ! f /tmp/foo ]; do echo -n "." process_data > /tmp/foo done Which of the following are true? (choose two)

If a file called /tmp/foo exists, process_data won t be run process_data will never be run process_data will be called at most once /tmp/foo will be removed if it exists

Given the following part of a script: if [ -f $1 ]; then echo I am here fi What is the meaning of $1?

It is the first argument passed to the script

The free command outputs statistics about:

Memory usage

The chown command can be used to change the user owner on a file by:

Only root

What does the acronym RPM mean?

RPM Package Management

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

System accounts, such as server processes

Which of the following protocols defines how network communication functions?

TCP/IP

What information is held inside $? ?

The previous command's exit code

The 'execute' permission on a directory allows you to: (choose three)

Along with read permission to successfully perform ls -l Along with write permission to successfully create new files Change to that directory or use it as part of a path

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

CURRDIR=`pwd` CURRDIR=$( pwd )

What does this shell script do? FOO=/tmp/foo if [ ! d $FOO ]; then mkdir $FOO fi

Creates /tmp/foo if it does not exist

Hosts can be assigned hostnames, IP addresses and other network-related information by a ______ server.

DHCP

A ____ server provides IP address to hostname translations.

DNS

Which of the following are valid video cable connector types? (choose two)

DVI VGA


Set pelajaran terkait

E! ATI RN Maternal Newborn Online Practice 2019 B with NGN

View Set

5.2-5.4 (amsco) apush quiz - Westward Expansion

View Set

Ch 48 Intestinal & Rectal Disorders

View Set

neuroanatomie ( diencéphale/ hémisphère/ système ventriculaire / vascu encéphale)

View Set