CH 10 - 18 Second Half Flashcards
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.
Resources are shared between users.
Users can protect their information from other users.
Many users can log in simultaneously with a unique account.
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.
…send the output of one command to another.
Channel 2 is?
STDALL
STDOUT
STDERR
STDIN
STDERR
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.
…will display all lines in a file containing the specified Regular Expression.
Which of the following commands can be used to scroll through a text file? (Choose Two)
cat
less
some
more
less
more
Which command can be used to print line numbers?
ln
nl
sort
num
nl
Which are appropriate editors for writing shell scripts? (Choose Two)
LibreOffice Writer vi Firefox nano /bin/bash
vi
nano
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
while loops have a test each cycle to determine if it should run again
for loops operate over a fixed list of terms
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=”Hello”
What is the correct way to save the current directory to a Variable?
pwd $A A=cwd A='pwd' A=pwd pwd | $A
A=’pwd’
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.
1 will be added to the i variable
Which of the following are Valid CPU Types for Intel-Based Platforms? (Choose Two)
64-bit
24-bit
32-bit
48-bit
64-bit
32-bit
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
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 division of a hard drive may be referred to as a _____?
label
block
portion
partition
partition
The fdisk command is a tool used for working with the MBR partitioned disks?
True
False
True
Which of the following commands will display CPU information? (Choose Two)
cpuinfo lscpu showcpu lspic arch
lscpu
arch
The process ID (PID) of the init process is?
100
0
1
Varies
1
What directory typically contains log files?
/proc/loc
/usr/log
/log
/var/log
/var/log
The /var directory has files that change over time?
True
False
True
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
ps -ef
ps aux
Which directory is the root of the filesystem?
/sys / /var /root /home
/
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 feature provided by one computer to another
Only servers have hostnames?
True
False
False
Which of the following are Valid IPv4 addresses? (Choose Two)
- 33.55.77
- 105.10.10.2
- 105.10.10
- 301.25.25
- 33.55.77
192. 105.10.10
Which of the following commands will allow you to log into a remote machine?
route
ssh
dig
netstat
ssh
What files contain user account information? (Choose Two)
/etc/passwd
/etc/passwords
/etc/shadow
/etc/group
/etc/passwd
/etc/shadow
Which command will display the UID, GID and groups your current user belongs to?
whoami
Who
about
id
id
Each user belongs to atleast one group?
True
False
True
Which command will display the users that are currently logged into the system?
id
who
about
whoami
who
Which command will display the groups that the root user belongs to?
all all -t group -r id root groups -a
id root
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
System Accounts, such as server processes.
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
-u
Which command can be used to determine a user’s most recent log in?
last
login
history
shell
last
Which of the following files contains encrypted user password information?
/etc/group
/etc/usr
/etc/shadow
/etc/passwd
/etc/shadow
Which of the following options for the useradd command allows you to use different primary group than the default?
- G
- u
- U
- g
-g
Which of the following commands can be used to modify a user?
adduser
usermod
moduser
useradd
usermod
Which of the following are methods for setting permissions using the chmod command? (Choose Two)
letter
primary
symbolic
octal
symbolic
octal
The chown command can be used to change the owner and group of a file?
True
False
True
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
The file owner and root.
The “execute” permission is never set on files by default?
True
False
False
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
…prevents others from removing files they don’t own from a common directory.
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.
…allows a command to be run as the file owner.
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.
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
ls -d
ls -ld