HW #5 Flashcards
Which of the following commands will allow you to update access time on a file?
A) touch
B) echo
C) apt-get
D) cat
A) touch
Which type of multitasking does a Linux OS use?
A) Pre-emptive
B) Cooperative
C) Single tasking
D) Multi-user
A) Pre-emptive
If a Linux system has been properly configured, which directory can any user delete any file?
A) /tmp
B) /shadow
C) passwd
D) /var
A) /tmp
Which of the following commands will you use to change the permissions set on a file or a directory?
A) apt-get
B) chown
C) chmod
D) chgroup
C) chmod
Which of the following commands restores a compressed backup file named homebkup.tar.gz in the current directory of a Linux computer?
A) tar -cxvf homebkup.tar.gz
B) tar -zxvf homebkup.tar.gz
C) tar -xv homebkup.tar.gz
D) tar -xvf homebkup.tar.gz
B) tar -zxvf homebkup.tar.gz
If you want to find out the sizes of several of the dot files in a directory, which of the following commands could you use to do this?
A) ls -p
B) ls -la
C) ls -d
D) ls -ld
B) ls -la
You want to set the sticky bit on an existing directory, subdir, without otherwise altering its permissions. To do so, you should type chmod a+___
A) s
B) p
C) b
D) t
D) t
Which of the following users are allowed to change the ownership of a file?
A) System user
B) Other user
C) Root user
D) Guest user
C) Root user
Which of the following type of permission protects a file from being deleted by another user?
A) Sticky key
B) chmod
C) Sticky bit
D) encrypted password
C) Sticky bit
John is a Linux systems administrator who has been tasked with the job of investigating a compromised system running a normal Linux desktop OS. He wants to investigate and review the local software, system libraries, and other installed applications on the system. Which of the following directories will he review to accomplish this task?
A) /sbin
B) /tmp
C) /lib
D) /mnt
A) /sbin
Which two commands will display the executable paths of commands?
A) whereis
B) which
C) info
D) whoami
A) whereis
B) which
If you wanted to view all files (including hidden files and directories), in the current directory in Linux, you would type ls -___
A) a
B) t
C) h
D) o
A) a
If you were in a root command line and wanted to change the ownership of a file named somefile.txt from ralph to tony, which command would best accomplish this?
A) chmod somefile.txt tony
B) chown ralph somefile.txt
C) chown ralph:tony somefile.txt
D) chown tony somefile.txt
D) chown tony somefile.txt
You are a brand new network technician at a company that uses Linux based operating systems. You want to install the web browser Firefox on your Linux system, which of the following commands will help you accomplish this task?
A) yum install firefox
B) yum update firefox
C) echo install firefox
D) touch install firefox
A) yum install firefox
Which of the following applications would you most likely find installed on a desktop computer running Linux?
A) Evolution
B) Apache
C) Android
D) Microsoft Office
A) Evolution
True or false: The only account that has access to the command chmod is the root account.
A) True
B) False
B) False
Which of the following directories servers as a mount point for a short-term mounting of additional storage media?
A) /media
B) /home
C) /mnt
D) /srv
C) /mnt
Which of the following is the BEST characteristic of all open-source software?
A) The software was originally written at a college or university.
B) The software cannot be sold for a profit; it must be distributed free of charge.
C) The software must be written in an interpreted language that requires no compilation.
D) Users are permitted to redistribute altered versions of the original software.
D) Users are permitted to redistribute altered versions of the original software.