CH 10 - 18 Second Half Flashcards

1
Q

Which of the following are traits of a multiuser OS? (Choose Three)

Resources are shared between users.
Users can protect their information from other users.
Each user can only log in once per day.
An administrative user gets a dedicated CPU
Many users can log in simultaneously with a unique account.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A pipe allows you to?

…send the same input to multiple commands
…type multiple commands at one prompt.
…send the output of one command to another.
…send the output of a command to a file.

A

…send the output of one command to another.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Channel 2 is?

STDALL
STDOUT
STDERR
STDIN

A

STDERR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The grep command?

…will display all lines that begin with the specified Regular Expression.
…will display all lines in a file containing the specified Regular Expression.
…is not case sensitive
…will display the line numbers in a file that contain a specified Regular Expression.

A

…will display all lines in a file containing the specified Regular Expression.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

cat
less
some
more

A

less

more

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which command can be used to print line numbers?

ln
nl
sort
num

A

nl

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which are appropriate editors for writing shell scripts? (Choose Two)

LibreOffice Writer
vi
Firefox
nano
/bin/bash
A

vi

nano

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following are correct about for and while loops? (Choose Two)

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

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

$A="Hello"
A="Hello"
echo "Hello" >A
A="Hello"
echo $A "Hello"
A

A=”Hello”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

pwd $A
A=cwd
A='pwd'
A=pwd
pwd | $A
A

A=’pwd’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

If i is 0, the loop will stop
This runs the command stored in the variable i
This will return the value of the next argument to the script
1 will be added to the i variable
This will return the value of the first argument to the script.

A

1 will be added to the i variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which of the following are Valid CPU Types for Intel-Based Platforms? (Choose Two)

64-bit
24-bit
32-bit
48-bit

A

64-bit

32-bit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Choose all of the following statements that are true in regard to Virtual RAM? (Choose Three)

Virtual RAM is stored in the CPU
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

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

A division of a hard drive may be referred to as a _____?

label
block
portion
partition

A

partition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The fdisk command is a tool used for working with the MBR partitioned disks?

True
False

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which of the following commands will display CPU information? (Choose Two)

cpuinfo
lscpu
showcpu
lspic
arch
A

lscpu

arch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

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

100
0
1
Varies

A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What directory typically contains log files?

/proc/loc
/usr/log
/log
/var/log

A

/var/log

19
Q

The /var directory has files that change over time?

True
False

A

True

20
Q

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

ps -ef
ps -eLf
ps -A
ps
ps aux
A

ps -ef

ps aux

21
Q

Which directory is the root of the filesystem?

/sys
/
/var
/root
/home
A

/

22
Q

A Service is?

…another name for a computer’s hostname
…a file that contains configuration information
…like an IP address
…a feature provided by one computer to another

A

…a feature provided by one computer to another

23
Q

Only servers have hostnames?

True
False

A

False

24
Q

Which of the following are Valid IPv4 addresses? (Choose Two)

  1. 33.55.77
  2. 105.10.10.2
  3. 105.10.10
  4. 301.25.25
A
  1. 33.55.77

192. 105.10.10

25
Q

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

route
ssh
dig
netstat

A

ssh

26
Q

What files contain user account information? (Choose Two)

/etc/passwd
/etc/passwords
/etc/shadow
/etc/group

A

/etc/passwd

/etc/shadow

27
Q

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

whoami
Who
about
id

A

id

28
Q

Each user belongs to atleast one group?

True
False

A

True

29
Q

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

id
who
about
whoami

A

who

30
Q

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

all
all -t
group -r
id root
groups -a
A

id root

31
Q

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

Are not used for user accounts, but for group accounts.
Lo-In (Human) Users
Remote log-in Accounts
System Accounts, such as server processes

A

System Accounts, such as server processes.

32
Q

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

  • u
  • g
  • M
  • G
A

-u

33
Q

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

last
login
history
shell

A

last

34
Q

Which of the following files contains encrypted user password information?

/etc/group
/etc/usr
/etc/shadow
/etc/passwd

A

/etc/shadow

35
Q

Which of the following options for the useradd command allows you to use different primary group than the default?

  • G
  • u
  • U
  • g
A

-g

36
Q

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

adduser
usermod
moduser
useradd

A

usermod

37
Q

Which of the following are methods for setting permissions using the chmod command? (Choose Two)

letter
primary
symbolic
octal

A

symbolic

octal

38
Q

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

True
False

A

True

39
Q

The chmod command can be used on a file by?

The file owner and root
The file owner
Only Root
A user that belongs to the files current group

A

The file owner and root.

40
Q

The “execute” permission is never set on files by default?

True
False

A

False

41
Q

The “Sticky Bit” permission?

…changes the group ownership of existing files in the directory
…prevents others from removing files they don’t own from a common directory.
…sets group ownership of any new file created in the directory
…prevents others from overwriting files they don’t own in common directories

A

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

42
Q

The “setuid” permission?

…prevents owner of a file from being charged.
…reports the output of a script to the owner.
…allows a command to be run as the file owner.
…allows files in a directory to be manipulated as by the directory owner.

A

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

43
Q

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.

A

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

44
Q

Which of the following ls commands, when executed, will only show information about the directory itself? (Choose Two)

ls -h
ls -d
ls -a
ls -ld

A

ls -d

ls -ld