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.
Which letter denotes that a sticky bit has been set on a file?
A) S
B) A
C) r
D) t
D) t
Which of the following commands is used to search the Whatis database and to display the short descriptions of the specified system command?
A) man
B) locate
C) apropos
D) whoami
C) apropos
Normally, optical discs and USB flash drives are mounted in subdirectories of /mnt or /_____.
A) media
B) tmp
C) var
D) lib
A) media
When a new directory is created, its permissions is always subtracted from the number ______ (rwxrwxrwx).
A) 777
B) 111
C) 767
D) 555
A) 777
Which of the following letters would tell you that both a sticky bit and SGID bit have been set on a directory?
A) t
B) T
C) X
D) s
A) t
Which of the following commands would you use to change a file’s group?
A) Is
B) groupadd
C) chown
D) groupmod
C) chown
Which of the following applications allows Linux computers to participate in Microsoft Windows Workgroups and Domains?
A) NFS
B) Samba
C) OpenOffice
D) Apache
B) Samba
You work as a Network Administrator for McNeil Inc. The company has a Linux-based network. You are a root user on the Red Hat operating system. You want to know how many words are present in the file named file1.txt. You type the following command on the terminal:
wc file1.txt
The command output displays the following:
40 245 1800 file1.txt
How many words are present file1.txt?
A) 245
B) 40
C) 1800
D) 285
A) 245
True or false: A file with the permissions of 755 can be read by any user on a computer, assuming all users can read the directory in which it resides.
A) True
B) False
A) True
If you wanted to ensure that there were certain temporary files NOT deleted during a reboot, where would you most likely place them in a properly configured Linux OS?
A) /tmp
B) /passwd/tmp
C) /var/tmp
D) /temp/perm
C) /var/tmp
Which two options can you use with the chown command to change the ownership of an entire directory tree?
A) r -x
B) -r
C) –recursive
D) ls
B) -r
C) –recursive
What type of files are you most likely to find in the /usr/lib, according to the FHS?
A) LibreOffice files
B) Liberal files
C) Lost files
D) Library files
D) Library files
What three character symbolic string represents the read and executes permissions but no write permissions?
A) r -x
B) -r -y
C) -r w
D) r x w
A) r -x
If you wanted to hide a file from view in a Linux directory, what would you add to the beginning of it to make it not appear?
A) .
B) ?
C) $
D) !
A) .
Which of the following commands will allow you to change the ownership of a file in Linux?
A) chown
B) chmod
C) chgrp
D) chtfrs
A) chown
If you wanted to display free and used memory using the command line in your Linux OS, you would use the free -___ command.
A) m
B) r
C) f
D) a
A) m
You are currently working on a Linux computer. You forgot the syntax of the tar command in order to take a backup of a directory. Which of the following measures will you take to obtain information about the tar command without leaving the command line?
A) Open up a web browser.
B) Call online support.
C) Open the documentation file.
D) Visit the man page of the command.
D) Visit the man page of the command.
Which of the following commands would you use to get USB information attached to a Linux computer?
A) lspci
B) usbinfo
C) lsusb
D) ls -usb
C) lsusb
Which of the following components would NOT be considered a major component essential to using a modern-day desktop computer?
A) Monitor or display
B) Speakers
C) Keyboard and mouse
D) Ethernet or Wireless capabilities
B) Speakers
You were creating a file name File1 and you accidentally used the word Debian in the file. You now need to replace the word Debian with RPM. Which Linux command would be the best in accomplishing this task?
A) tail
B) less
C) sed
D) echo
C) sed
Match the following Linux commands with the correct action.
1) mv
2) rm
3) touch
4) cp
A) Copy files and directories
B) Update the timestamp on files
C) Delete files
D) Rename files and directories
1) D
2) C
3) B
4) A
Which of the following directories does Linux store temporary files?
A) /passwd
B) /etc
C) /home
D) /tmp
D) /tmp
You want to install an open-source and free email client on your Linux desktop system, which of the following applications is best suited to this?
A) The GIMP
B) Firefox
C) Thunderbird
D) LibreOffice
C) Thunderbird
In which directory would you most likely find the print spool files in a Linux OS?
A) /tmp
B) /passwd
C) /var
D) /lib
A) /tmp
Which of the following directories contains dynamically changing files, distributed across different directories?
A) /var
B) /home
C) /usr
D) /sys
A) /var
Which of the following symbolic representation can you pass to chmod to give all users execute access to a file, without affecting other permissions?
A) Option 1
B) a+x
C) a-x
D) u+x
B) a+x
True or false: It is very common to not see the GUI X desktop installed on a Linux computer being used as a server.
A) True
B) False
A) True