1.9 Flashcards

1
Q

A macOS user wants to revert his OS back to a week ago. Which application would allow him to do this?

A

Time Machine

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

In regards to the macOS, which application would you use for disk maintenance?

A

Disk Utility

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

When using a Mac, where would you go if you wanted to check for any application updates?

A

App Store -> Updates

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

When using a Mac, where would you go for patch management?

A

App Store -> Updates

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

A macOS user wants to view his driver/firmware information? Where would he go?

A

System Information -> Hardware

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

True or False: Driver/Firmware information is read-only.

A

True.

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

True or False: macOS does not include anti-virus or anti-malware.

A

True.

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

What macOS tool would you use if you wanted to build a disk image?

A

Disk Utility

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

What tool would you use if you wanted to verify and repair file systems?

A

Disk Utility

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

What is the command line in macOS known as?

A

Terminal

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

How does screen sharing work with macOS?

A

It’s built-in, so all you have to do is go to the Finder, find the computer on the network you want to share with, right-click, then check the screen sharing box.

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

What macOS tool is used when you want to view everything that is running on your desktop?

A

Mission Control

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

What macOS feature allows you to create multiple desktops?

A

Spaces

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

What is the macOS centralized password management utility called?

A

Keychain

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

What is the macOS utility that allows you to search for anything on your OS?

A

Spotlight

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

What is the macOS utility that allows you to integrate all Apple technology?

A

iCloud

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

What is the macOS utility that allows you to use multiple fingers in different ways to control what happens with your OS?

A

Gestures

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

What is the central OS file manager for macOS?

A

Finder

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

What is the macOS utility that allows you to use an optical drive from another computer?

A

Remote Disc

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

True or False: Remote Disc does support audio CDs and video DVDs.

A

False

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

What is the bottom part of a macOS screen that contains numerous available applications?

A

Dock

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

What is the macOS utility that allows you to dual-boot into Windows on Mac hardware?

A

Boot Camp

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

In Linux, what command would you run in order to access your directory?

A

ls

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

What does the ls command do in Linux?

A

Lists your files and directories

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

What would you type in Linux if you wanted to see more detail about file ownership and permissions?

A

ls -l | more

el es dash el pipe more

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

What does the | do in “| more”?

A

Lists your command results in pages rather than all in one page which allows faster scrolling through the terminal.

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

How do you exit a page in the terminal to bring you back to the command line?

A

q or Ctrl-c

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

What would you type in the Linux terminal if you wanted to change directories?

A

cd

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

What does the cd command do in Linux?

A

Change directories

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

True or False: Linux uses backward slashes instead of forward slashes in the terminal.

A

False; Linux uses forward slashes instead of backward

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

If you wanted to change to the “/var/log” director using cd, how would you type it?

A

cd /var/log

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

What would you type in the Linux terminal if you wanted to search one or many files for a certain word?

A

grep

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

What does the grep command do?

A

Allows you to search one or many files for a certain word.

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

If you wanted to search for the word “failed’ in your “auth.log” file, what command would you use and how would you type it.

A

grep failed auth.log

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

What would you type in the Linux terminal if you needed elevated rights to execute just one command?

A

sudo

36
Q

What does the “sudo” command do?

A

Gives you elevated rights for one command.

37
Q

What would you type in the Linux terminal if you needed elevated rights for the entire session?

A

su

38
Q

What does the “su” command do?

A

Gives you elevated rights for the entire session.

39
Q

What would you type in the Linux terminal if you want to shutdown your system?

A

shutdown

40
Q

What would you type if you wanted to shutdown your system in two minutes?

A

su/sudo shutdown 2

41
Q

What would you type if you wanted to shutdown and then restart your system in two minutes?

A

su/sudo shutdown -r 2

42
Q

What would you type if you wanted to cancel a shutdown command?

A

Ctrl-c or shutdown -c

43
Q

What would you type in the Linux terminal if you wanted to display the current working directory path?

A

pwd (print working directory)

44
Q

What does the “pwd” command do?

A

Displays the current working directory path

45
Q

What would you type in the Linux terminal if you wanted to change a user account password?

A

passwd

46
Q

What does the “passwd” command do?

A

Allow you to change a user’s password

47
Q

What would you type in the Linux terminal if you wanted to move a file?

A

mv

48
Q

What does the “mv” command do?

A

Moves a file or Renames a file

49
Q

If you wanted to change file name called “first.txt” to “second.txt”, what would you type?

A

mv first.txt second.txt

50
Q

What would you type in the Linux terminal if you wanted to copy a file?

A

cp

51
Q

What does the “cp” command do?

A

copies a file

52
Q

If you wanted to copy a file name called “first.txt” and name the copy “second.txt”, what would you type?

A

cp first.txt second.txt

53
Q

What would you type in the Linux terminal if wanted to remove files or directories?

A

rm

54
Q

What does the “rm” command do?

A

Removes files and/or directories

55
Q

True or False: You can remove a directory even if it isn’t empty.

A

False, it must be empty

56
Q

What would you type in the Linux terminal if you wanted to make a directory?

A

mkdir

57
Q

What does the mkdir command do?

A

Makes a directory

58
Q

What would you type in the Linux terminal if you wanted to change the mode of a file system object to either read, write, or execute?

A

chmod

59
Q

What does chmod do?

A

Changes the mode of a file system object

60
Q

What would you type if you wanted to change the mode of the “script.sh” file where the user has read, write, and execute permissions, the group has read only permission, and others have read and write permissions?

A

chmod 746 script.sh

61
Q

What chmod number is associated with execute only permissions?

A

1

62
Q

What chmod number is associated with read only permissions?

A

4

63
Q

What chmod number is associated with read, write, and execute permissions?

A

7

64
Q

What chmod number is associated with write and execute permissions?

A

3

65
Q

What chmod number is associated with read and write permissions?

A

6

66
Q

What chmod number is associated with write only permissions?

A

2

67
Q

What chmod number is associated with read and execute permissions?

A

5

68
Q

What would you type in the Linux terminal if you wanted to change who owns a specific file?

A

chown

69
Q

What does the chown command do?

A

Changes the owner of a file

70
Q

If you would like to change the owner of file script.sh to user “Cameron”, what would you type?

A

sudo chown Cameron script.sh

71
Q

What would you type in the Linux terminal if you wanted to view or modify any of your wireless configuration settings?

A

iwconfig

72
Q

What does the “iwconfig” command do?

A

Lets you view or modify any of your wireless configuration settings

73
Q

What would you type in the Linux terminal if you wanted to view or configure a wired network interface and IP configuration?

A

ifconfig

74
Q

What does the “ifconfig” command do?

A

Let’s you view or configure a wired network interface and IP configuration

75
Q

What would you type in the Linux terminal if realize that your Linux distribution doesn’t have the command you are looking for and you’d like to install a version that does?

A

apt-get

76
Q

What does the “apt-get” command do?

A

Allows you to install and remove applications from your Linux distribution

77
Q

What would you type in the Linux terminal if you wanted to view the current processes?

A

ps

78
Q

What does the ps command do?

A

Let’s you view the current processes.

79
Q

What would you type in the Linux terminal if you wanted to view all of the processes?

A

ps -e | more

80
Q

What would you type in the Linux terminal if you wanted to enter full screen editing mode?

A

vi

81
Q

What does the “vi” command do?

A

Let’s you enter into full screen editing mode

82
Q

What would you type in the Linux terminal if you wanted to covert and copy a file and/or back and restore an entire partition?

A

dd

83
Q

What does the “dd” command do?

A

Let’s you covert and copy a file and/or back and restore an entire partition

84
Q

What would you type if you wanted to create a disk image where the source file name is “/dev/sda”, the target file name is “/tmp/sda-image.img”?

A

dd if=/dev/sda of=/tmp/sda-image.img

85
Q

What would you type if you wanted to restore from an image where the source file name is “/dev/sda” and the taret file name is “/tmp/sda-image.img”?

A

dd if=/tmp/sda-image.img of=/dev/sda

86
Q

What would you type if you wanted to close a program?

A

killall

87
Q

What would you type if you wanted to kill a program via. its PID?

A

xkill pidnumber