intro to unix second half of semester 10-18

¡Supera tus tareas y exámenes ahora con Quizwiz!

Which option for the cut command is used to specify the field?

-F

Which of the following options for the useradd command allows root to specify supplementary groups the user will be a member of?

-G

Which option for the cut command is used to specify a delimiter?

-d

What option to the netstat command has information shown as numbers rather than names?

-n

Which of the following options for the useradd command allows you to use a different login shell than the default?

-s

Which of the following options for the useradd command allows root to specify the UID to be associated with the account?

-u

If a user is deleted, the files and directories that the user owned...

...may be important for others in the organization

A network packet contains ... (choose two)

..the IP address of the destination machine. ...the IP address of the source machine.

Which of the following is the valid device file name for the first IDE hard drive on the system?

/dev/hda

Which of the following files does the groupadd command use to determine the new GID when a GID isn't specified?

/etc/group

Which files contain user account information? (choose two)

/etc/passwd /etc/shadow

To make changes permanent for kernel parameter files found under /proc/sys, the following file can have entries added to it:

/etc/sysctl.conf

The Linux kernel mounts the following pseudo-filesystems to provide access to information about hardware devices connected to the system:

/sys /proc

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

1 will be added to the i variable

Which of the following are valid IPv4 addresses?

192.105.10.10 10.33.55.77

Which of the following are valid CPU types for Intel-based platforms?

32-bit 64-bit

A user can belong to..

At least 16 groups

The last command displays reboot records...

By default

Most of nano's commands take the form of:

Control and another character

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

DVI & VGA

Software that allows hardware devices to communicate with the installed operating system is called?

Drivers

What are the advantages of solid state disks when compared to traditional spinning platter hard disks? (choose three)

Faster system boot times Low power consumption Low cost Less heat

Given the following script that is run through ./test.sh hello goodbye: if [ -f $2 ]; then echo "I am here" fi When will "I am here" be printed?

If a file called "goodbye" exists in the current directory

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

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

PARTITION

Which of the following commands will allow you to view all processes on the system? (choose two)

PS AUX ps -ef

Which directory is the root of the filesystem?

ROOT DIRECTORY

A file begins with #!/bin/csh. This means:

Running the script will invoke /bin/csh to interpret the rest of the file. /bin/csh

Channel 2 is:

STDERR

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

System accounts, such as server processes

What would an account with the UID 376 typically be used for?

System service access.

Which of the following protocols defines how network communication functions?

TCP/IP

A command that will continuously update statistics about running processes:

TOP

64 bit platforms can access more memory than 32 bit platforms. TRUE OR FALSE

TRUE

Information about the init process can be found in the /proc/1 directory.

TRUE

The /proc directory contains a subdirectory for each process present on the system. TRUEOR FALSE

TRUE

The fdisk command is a tool used for working with the MBR partitioned disks. TRUE OR FALSE

TRUE

The process (ps) command shows only processes running in the current shell by default. TRUE OR FALSE

TRUE

When you execute the dmesg command, the system displays messages that are generated by the kernel. TRUE OR FALSE

TRUE

What is the default user for the su command?

The root user

Choose all of the following statements that are true in regard to virtual RAM:

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

A service is...

a feature provided by one computer to another.

Which of the following commands will check hard disk MBR partitions? (choose three)

cfdisk sfdisk fdisk

How would you finish your script with an exit code of 42?

exit 42

File permissions cannot be edited by the root user. true or false

false

The RSA key fingerprint allows the dig command to connect to remote systems true or false

false

When looking at the primary IPv4 configuration file, if the device was configured to be a DHCP client, then the BOOTPROTO value would be set to none. true or false

false

The groupdel command can be used to delete primary groups. true or false

fasle

Which command can be used to view the /etc/passwd file entries?

getent

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

id

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

last

Which of the following commands can be used to scroll through a text file? (choose two)

more less

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

nano vi

Which command can be used to print line numbers?

nl

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

read

Which of the following commands will display the routing table? (choose two)

route netstat -r

A pipe allows you to

send the output of one command to another.

Which of the following commands can be used to display socket statistics, and supports all major packet and socket types?

ss

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

ssh

How would you write a test that says "if /tmp/foo is a directory or USERS is greater than 5"?

test -d /tmp/foo -o $USERS -gt 5

A successful command may, or may not print output to STDOUT. true or false

true

The "Epoch" began on January 1, 1970. true or false

true

The command echo "text" > file.txt will create file.txt if it does not already exist. true or false

true

The grep command can be used with glob characters. true or false

true

The groupmod command can be used to change a group name. true or false

true

Which of the following commands can be used to modify a user?

usermod

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

w uptime

Which of the following are correct about for and while loops?

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


Conjuntos de estudio relacionados

the menstrual cycle practice quiz

View Set

Final Exam Questions: Homework 10

View Set

Introduction to SEO - lecture notes

View Set

STUDY GUIDE MODULE 3 SPR 223 BIO 266

View Set

TIA - CH4 Application Software Programs That Let You Work and Play Quiz

View Set

Biology - week 6 respiration and enzymes

View Set

Ricci Chapter 20 - Test Bank - 4th Edition

View Set

Empathy Sensitive to Others' Feelings

View Set

Profit n Loss Account + Balance Sheet

View Set

Ch. 33 Disorders of Renal Function

View Set