HW #5 Flashcards

1
Q

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

A) touch

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

Which type of multitasking does a Linux OS use?

A) Pre-emptive

B) Cooperative

C) Single tasking

D) Multi-user

A

A) Pre-emptive

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

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

A) /tmp

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

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

A

C) chmod

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

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

A

B) tar -zxvf homebkup.tar.gz

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

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

A

B) ls -la

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

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

A

D) t

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

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

A

C) Root user

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

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

A

C) Sticky bit

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

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

A) /sbin

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

Which two commands will display the executable paths of commands?

A) whereis

B) which

C) info

D) whoami

A

A) whereis

B) which

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

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) a

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

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

A

D) chown tony somefile.txt

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

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

A) yum install firefox

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

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

A) Evolution

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

True or false: The only account that has access to the command chmod is the root account.

A) True

B) False

A

B) False

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

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

A

C) /mnt

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

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.

A

D) Users are permitted to redistribute altered versions of the original software.

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

Which letter denotes that a sticky bit has been set on a file?

A) S

B) A

C) r

D) t

A

D) t

20
Q

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

A

C) apropos

21
Q

Normally, optical discs and USB flash drives are mounted in subdirectories of /mnt or /_____.

A) media

B) tmp

C) var

D) lib

A

A) media

22
Q

When a new directory is created, its permissions is always subtracted from the number ______ (rwxrwxrwx).

A) 777

B) 111

C) 767

D) 555

A

A) 777

23
Q

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

A) t

24
Q

Which of the following commands would you use to change a file’s group?

A) Is

B) groupadd

C) chown

D) groupmod

A

C) chown

25
Q

Which of the following applications allows Linux computers to participate in Microsoft Windows Workgroups and Domains?

A) NFS

B) Samba

C) OpenOffice

D) Apache

A

B) Samba

26
Q

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

A) 245

27
Q

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

A) True

28
Q

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

A

C) /var/tmp

29
Q

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

A

B) -r

C) –recursive

30
Q

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

A

D) Library files

31
Q

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

A) r -x

32
Q

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

A) .

33
Q

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

A) chown

34
Q

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

A) m

35
Q

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.

A

D) Visit the man page of the command.

36
Q

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

A

C) lsusb

37
Q

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

A

B) Speakers

38
Q

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

A

C) sed

39
Q

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

A

1) D
2) C
3) B
4) A

40
Q

Which of the following directories does Linux store temporary files?

A) /passwd

B) /etc

C) /home

D) /tmp

A

D) /tmp

41
Q

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

A

C) Thunderbird

42
Q

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

A) /tmp

43
Q

Which of the following directories contains dynamically changing files, distributed across different directories?

A) /var

B) /home

C) /usr

D) /sys

A

A) /var

44
Q

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

A

B) a+x

45
Q

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

A) True