CNIT 340 Final

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

False

A for loop can only loop through numbers. TRUE or FALSE

-All of the above should have their own partition

According to lecture, all of the following except ____ should have its own partition -/ -/home -/var -/etc -all of the above should have their own partition

True

By default, all function variables are global. TRUE or FALSE

", ', and \

Can be used to extend a line

syslog

Can notifiy admins if important files are changed

rsh

Can prevent remote users from using cd or redirects

False

Compiling software from source is preferred because dependencies are automatically added in installation. TRUE or FALSE

display

In X-Windows a keyboard, mouse, and a monitor are known as a

client

In X-Windows the application itself is known as a

server

In X-Windows the software that shows the output of the application is known as a

seq

an external program that creates a sequence of space delimited values

True

an until loop is the opposite of a while loop. TRUE or FALSE

root filesystem

before any filesystem can be used it must be mounted to the _____?

array variables

can hold multiple elements at a time

scalar variables

can only hold one element (value) at a time

True

nesting more than four levels deep can be difficult to debug. TRUE or FALSE

True

UNIX is command line only. TRUE or FALSE

CUPS

UNIX printing approach supports windows printing clients

True

Unix has only one file system. TRUE or FALSE

unenforce

Used to generate SELinux policy code from logging

^ or !

Used to negate a character match

-R

Used to perform actions on directories and subdirectories

-f

Used to skip confirmations

3

What SysV run level is multi-user.target run at

0

What SysV run level is poweroff.target ran at

1

What SysV run level is rescue.target ran at

/etc/passwd and /etc/group

What UNIX config file associates users with groups?

/etc/passwd

What UNIX config file contains the list of users?

IP and route

What command or file is used to set the default router of a UNIX system?

chkconfig <service> on

What is the Sys V equivalent of systemctl enable <service>

smb.conf

What is the main config file for SAMBA?

3

What is the most commonly used run more for servers

rwxr-xr--

What is the resulting permission sequence for the following UNIX command? chmod 754 /directory/file

2

What run level is multi-user mode (non-networked) ran at

make

What utility typically automates the process of installing software from source code?

8

What will be the output of echo $(( 4 + 2 + ( 3 - 1 ) * 6 / 5 ))

True

When evaluated by the if command, a return code of 0 evaluates to true, all other return codes evaluate to false. TRUE or FALSE

True

When using a for loop to loop through a list of numbers, the numbers can be in any order. TRUE or FALSE

False

When using sed, the -i option can be used to concatenate multiple sed actions. TRUE or FALSE

grep

Which command returns lines from a file containing a search string?

/etc/hostname or /etc/hosts

Which file stores the Fully Qualified Domain Name (FQDN) for a UNIX system?

drwx------ tmiller tmiller

Which of the following is most reasonable set feor tmiller's home directory as shown in ls -l

stdlog

Which of the following is not a UNIX I/O Stream?

Install via CUPS web interface & use lpadmin command

Which of the following is the preferred method to add a printer in CUPS

False

You should avoid meta-characters in filenames because you will not be able to access the file. TRUE or FALSE

False

[$VAR1 > 10 && $VAR1 < 20] is a valid if condition

False

if you know how to administer one flavor of unix you know how to administer them all. TRUE or FALSE

True

it is best practice to type all user-defined variables in ALL CAPS. TRUE or FALSE

select loop

list a set of choices from which the user makes a selection

/lost+found

lost files directory

? (globbing)

matches any character one time

* (globbing)

matches any character zero or more times

[character set] (globbing)

matches the characters stated one time

False

sed cannot be used to change the content of files, it only changes what is display on stdout. TRUE or FALSE

/sbin

system binaries

/etc

system configuration informatoin

/tmp

temporary files

-package managers/packages

this software installation technique includes yum and apt

False

uniq will remove duplicate lines in a file. TRUE or FALSE

?

used to represent one of a single character

/home

user directories

False

user-defined variables do not need to start with a letter or underscore, and can start with numbers. TRUE or FALSE

compares directories

what does dircmp do?

/etc/fstab

where a list of filesystems to automatically mount is stored in a config file

/usr

where additionally installed software is located

stderr

where error messages are sent

/bin

where executables for basic operation are located

stdin

where input to the application is sourced

stdout

where output from the application is sourced

/var

where spooling, cache, and log files are located

True

If a function is successful, it should return 0. TRUE or FALSE

True

If a variable is defined in a function with typeset command, then it will only be accessible within that function. TRUE or FALSE

False

If you run a script that has a syntax error on line 25, the previous commands won't execute. TRUE or FALSE

systemctl

In CentOS 7 Linux, which command can be used to change the run level?

setenforce

Disables SELinux protections

\

Escapes a single character

'

Escapes multiple instances of all meta characters

Shell doesn't keep track of 1-199

Given that NAME[0] = Walter and NAME[200]=Smith, Which is true?

True

Samba can allow a UNIX server to act as an Active Directory member server as well as a Domain Controller. TRUE or FALSE

False -umount

Media is unmounted via unmount command. TRUE or FALSE

False

One of the main benefits of NFSv4 is that it greatly simplifies the firewall rules used to secure an NFS server. TRUE or FALSE

chown

Ownership is changed with this command

$ and "

Preserves the meta character meaning

symbolic links

The files in the /etc/rc3.d directory are

True

The order is as important as the content of packet filter rules. TRUE or FALSE

-the individual owner -the group owner -everyone

The three owners of every file/directory are

False

There are three types of user defined variables: array variables, string variables, and seeker variables. TRUE or FALSE

-package managers/packages -ports collection

This software installation technique automatically handles dependencies

-ports collection

This software installation technique is FreeBSD specific

compile from source

This software installation technique is natively supported by multiple UNIX versions (BSD, Linux, AIX, HPUX, etc.)

True

To have tail keep a file open so that updates to the file can be monitored use the -f option. TRUE or FALSE

for loop

perform code once for each item in a list

until loop

perform code until a condition becomes true

while loop

perform code while a condition is true

/dev

placeholders for devices

/proc

placeholders for running processes

.

regex expression matches any character at one time

*

regex expression that matches zero or more of the preceding character

$

regex expression that represents the end of a line

cut

returns characters from a string based on position or delimited field


Set pelajaran terkait

Property and Casualty License Ch 5 and 6

View Set

Ch. 10, 5 steps in the performance management process

View Set

Limited Lines Automobile (Version 4.0)

View Set

Live Virtual Machine Lab 9.1: Module 09 Routing Concepts and Protocols

View Set

Lab 3-1: Linux installation and configuration

View Set

Music 139, History of Rock Music, Unit 4 Listening, (Jeffrey Mayor), Orange Coast College

View Set

IT Fundamentals Module 3_System Components

View Set