Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Sam Houston State University ECE MISC NDG Linux Essentials 2

Sam Houston State University ECE MISC NDG Linux Essentials 2

Business

Sam Houston State University

ECE MISC

NDG Linux Essentials 2.0 Final Exam (Chapter 9)

1)Which of the following are traits of a multiuser operating system? (choose three)

    • Resources are shared between users
    • Users can protect their information from other users
    • Many users can log in simultaneously with a unique account
    • Each user can only log in once per day
    • An administrative user gets a dedicated CPU
  1. 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.
  2. Channel 2 is:
    • STDALL
    • STDOUT
    • STDERR
    • STDIN
  3. The grep command…
    •         …will display all the lines that begin with the specified Regular Expression.
    •         …will display all the 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.
  4. Which of the following commands can be used to scroll through a text file?

(choose two)

    • cat
    • less
    • some
    • more
  1. Which command can be used to print line numbers?
    • ln
    • nl
    • sort
    • num
  2. Which are appropriate editors for writing shell scripts?

 

(choose two)

    • LibreOffice Writer
    • vi
    • Firefox
    • nano
    • /bin/bash
  1. 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 operate over a fixed list of items
    • for loops require a variable over which to iterate
  1. 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”
  2. What is the correct way to save the current directory to a

variable?

  • pwd $A
  • A=cwd
  • A=`pwd`
  • A=pwd
  • pwd | $A
  1. What is the meaning of $(( $i + 1)) ?
  • If i is 0, the loop will stop
  • This runs the command stored in 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. Which of the following are valid CPU types for Intel-based

platforms? (choose two)

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

 

  1. 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.
  1. A division of a hard drive may be referred to as a                                                               .
  • label
  • block
  • portion
  • partition
  1. The fdisk command is a tool used for working with the MBR

partitioned disks.

True or False?

  • True
  • False
  1. Which of the following commands will display CPU information?

(choose two)

  • cpuinfo
  • lscpu
  • showcpu
  • lspic
  • arch
  1. 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
  1. The /var directory has files that change over time.

True or False?

  • True
  • False

 

  1. Which of the following commands will allow you to view all processes on the system?

(choose two)

  • ps -ef
  • ps aux
  • ps -eLf
  • ps -A
  • ps
  1. Which directory is the root of the filesystem?
  • /sys
  • /
  • /var
  • /home
  • /root
  1. 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.
  1. Only servers have hostnames.

True or False?

  • True
  • False
  1. Which of the following are valid IPv4 addresses?

(choose two)

  • 10.33.55.77
  • 192.105.10.10.2
  • 192.105.10.10
  • 192.301.25.25
  1. Which of the following commands will allow you to log into a

remote machine?

  • route
  • ssh
  • dig
  • netstat
  1. Which files contain user account information?

(choose two)

  • /etc/passwd
  • /etc/passwords

 

  • /etc/shadow
  • /etc/group
  1. Which command will display the UID, GID and groups your

current user belongs to?

  • whoami
  • Who
  • about
  • id
  1. Each user belongs to at least one group.

True or False?

  • True
  • False
  1. Which command will display the users that are currently logged

in to the system?

  • id
  • who
  • about
  • whoami
  1. Which command will display the groups that the root user

belongs to?

  • all
  • all -t
  • group -r
  • id root
  • groups -a
  1. UIDs 1-499 are usually reserved for what kind of users?
  • Are not used for user accounts, but for group accounts
  • Log-in (human) users
  • Remote log-in accounts
  • System accounts, such as server processes
  1. 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
  1. Which command can be used to determine a user’s most

recent log in?

  • last
  • login
  • history

 

  • shell
  1. Which of the following files contains encrypted user password

information?

  • /etc/shadow
  • /etc/group
  • /etc/usr
  • /etc/passwd
  1. Which of the following options for the useradd command allows

you to use a different primary group then the default?

  • -G
  • -u
  • -U
  • -g
  1. Which of the following commands can be used to modify a

user?

  • adduser
  • usermod
  • moduser
  • useradd
  1. Which of the following are methods for setting permissions

using the chmod command? (choose two)

  • letter
  • primary
  • symbolic
  • octal
  1. The chown command can be used to change the owner and

group of a file.

True or False?

  • True
  • False
  1. 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
  1. The “execute” permission is never set on files by default.

True or False?

  • True

 

  • False
  1. The “sticky bit” permission…
  • …changes the group ownership of existing files in a directory.
  •         …prevents others from removing files they don’t own from a common directory.
  • …sets the group ownership of any new file created in a directory.
  •         …prevents others from overwriting files they don’t own in common directories.
  1. The “setuid” permission…
  • …prevents the owner of a file from being changed.
  • …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.
  1. 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.
  1. Which of the following ls commands, when executed, will only

show information about the directory itself? (choose two)

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

Option 1

Low Cost Option
Download this past answer in few clicks

7.83 USD

PURCHASE SOLUTION

Already member?


Option 2

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions