Lesson 6: Managing Linux and macOS Flashcards

1
Q

System component providing a command interpreter by which the user can use a kernel interface and operate the OS.

A

shell

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

Command interpreter and scripting language for Unix-like systems.

A

bash

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

Software that implements input and output for a command shell.

A

terminal

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

tty

A

teletype

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

Device that implements input and output for a command shell. In Linux, multiple virtual consoles support use of a single host by multiple user sessions simultaneously.

A

console

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

Command-line text editor operated by CTRL key combinations.

A

Nano text editor

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

A

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

FHS

A

File system Hierarchy Standard

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

Linux command for showing the current directory

A

pwd
* (“Print Working Directory”)*

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

What is the cd command used to do?

A

change the working directory

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

What does the ls command do?

A

listing file system objects

ls lists the contents of a directory, in a similar way to dir at the Windows command prompt. Popular parameters include -l to display a detailed (long) list and -a to display all files including hidden or system files.

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

Linux command to view and combine (concatenate) files.

A

cat command

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

A

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

In Linux, there are overwrite and append redirection operators: What does this command do *cat&raquo_space; file**?

A

Append the cat data to the destination file

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

Command-line Linux tool used to search the file system

A

find command

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

Linux command for searching and filtering input. This can be used as a file search tool when combined with ls

A

grep command

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

what does grep stand for

A

Globally search a Regular Expression and Print command is used to search and filter the contents of files. Its output prints (displays) the lines that contain a match for the search string.

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

Command-line tool for copying files in Linux

A

cp command

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

Copy file1.txt in the current working directory to a new file called file1.old in the same directory

A

cp file1.txt file1.old

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

Copy the file hosts from the directory /etc into the directory /tmp , keeping the file name the same:

A

cp /etc/hosts /tmp

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

Copy all files beginning with the name message from the /var/log directory into /home/david. The -v option displays the files copied:

A

cp -v /var/log/message* /home/david

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

Command-line tool for moving files in Linux

A

mv command

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

Move the file data.txt from the /home/david directory to the /tmp directory, keeping the file name the same:

A

mv /home/david/data.txt /tmp

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

Move and rename the file alarm.dat in the current directory to alarm.bak in /tmp:

A

mv alarm.dat /tmp/alarm.bak

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

Rename the file app1.dat in the /var/log folder to app1.old:

A

mv /var/log/app1.dat /var/log/app1.old

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

Command-line tool for deleting file system objects in Linux

A

rm command

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

Remove the single file data.old from the current working directory:

A

data.old

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

Remove all files ending in .bak from the /var/log directory:

A

rm /var/log/.bak*

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

Remove the contents of the entire directory tree underneath the folder /home/david/data:

A

rm -r /home/david/data

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

Command-line tools used to report storage usage in Linux. Can be used to delete files. It can also be used with the -r option to delete directories

A

df and du command
disk free and disk usage

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

Linux commands allowing a user to use the root account or execute commands restricted to privileged users

A

su command
switch user

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

Linux commands allowing a user to use the root account or execute commands restricted to privileged users

A

sudo command
superuser do

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

What is the main advantage of sudo over su command?

A

The main advantage of sudo over su is that the root password does not have to be shared between multiple administrators.

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

Linux uses a permissions system with three rights, what are they? (3)

A

Read (r), Write (w), and Execute (x)

Read (r) gives permission to view the contents of a file or directory.
Write (w) gives permission to modify or delete the object. In the case of directories, this allows adding, deleting, or renaming files within the directory.
Execute (x) gives permission to run an executable file or script. For directories, execute allows the user to do things such as change the focus to the directory and access or search items within it

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

Linux command for managing file permissions

A

chmod command

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

Linux file-permission mode that uses numeric values to represent permissions

A

octal notation

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

Linux command for managing the account owner for files and directories. Allows the superuser to change the owner of a file or directory.

A

chown command

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

APT

A

Advanced Packaging Tool

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

Used by Debian distributions and works with .deb format packages.

A

APT

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

Used by Red Hat distributions and works with .rpm format packages

A

YUM

31
Q

One of the package management tools available in Linux for installing and updating software

A

apt-get command

32
Q

Refresh the local database with information about the packages available from the repository:

A

apt-get update

33
Q

Update all packages with the latest versions:

A

apt-get upgrade

34
Q

Install a new application:

A

apt-get install PackageName

35
Q

Package manager for installing, maintaining, inventorying, and removing software from the Red Hat family of Linux distributions

A

yum

36
Q

Refresh the local database with information about the packages available from the repository:

A

yum check-update

37
Q

Update all packages with the latest versions:

A

yum update

38
Q

Install a new application:

A

yum install PackageName

39
Q

Linux command for retrieving process information. Invokes the process table, a record that summarizes the currently running processes on a system.

A

ps command

40
Q

Interactive Linux command for monitoring process information

A

top command
table of processes

41
Q

Deprecated Linux command tool used to gather information about the IP configuration of the network adapter or to configure the network adapter.

A

ifconfig

42
Q

Linux command tool used to gather information about the IP configuration of the network adapter or to configure the network adapter.

A

ip command

43
Q

Utility to query a DNS server and return information about a particular domain name or resource record. A powerful tool for gathering information and testing name resolution.

A

dig command

44
Q

Linux software package that implements Server Message Block (SMB) file/print sharing, primarily to support integration with Windows hosts

A

Samba

45
Q

Scheduled task that is managed by the Linux cron daemon.

A

cron task scheduler

46
Q

To add or delete a scheduled job, use the crontab editor. To review a user’s crontab jobs, enter the command:

A

crontab –l

47
Q

To remove jobs from the scheduled list, use the command:

A

crontab -r

48
Q

A command has generated a large amount of data on the screen. What could you add to the command to make the output more readable?

A

Either | more or | less

49
Q

Which Linux command will display detailed information about all files and directories in the current directory, including system files?

A

ls -la

50
Q

What command could you use to move a file names.doc from your current directory to the USB stick linked to folder /mnt/usb?

A

mv names.doc /mnt/usb

51
Q

A file is secured with the numeric permissions 0774. What rights does another user account have over the file?

A

Read-only

52
Q

What command would allow you to delete the contents of the folder /home/jaime/junk and all its subdirectories?

A

rm -r /home/jaime/junk

53
Q

Which Linux command allows a user to run a specific command or program with superuser/root privileges?

A

sudo

54
Q

macOS feature for managing applications from the desktop; similar to the Windows taskbar

A

Dock

55
Q

macOS file system search tool. Can be used to find almost anything on macOS

A

Spotlight search

56
Q

App facilitating multiple desktops in macOS

A

Mission Control

57
Q

macOS control panel hosting multiple prefpane configuration utilities.

A

System Preferences panel

58
Q

macOS utility related to desktop and input/output device accessibility configuration. Used to configure assistive vision and sound options, such as VoiceOver narration of screen elements, cursor size and motion settings, zoom tools, display contrast and font sizes, and captioning.

A

Accessibility prefpane

59
Q

Add a new account

A

Open System Preferences > Users & Groups

60
Q

Cloud-based service allowing users to synchronize settings and manage apps, file sharing, and backups between multiple Apple devices.

A

Apple ID

61
Q

macOS app for managing passwords cached by the OS and supported browser/web applications.

A

keychain

62
Q

macOS disk encryption product. A disk encryption product.

A

FileVault

63
Q

File management app in macOS. The macOS equivalent of File Explorer in Windows.

A

the Finder

64
Q

Mobile/cloud computing office-productivity and data-storage suite operated by Apple and closely integrated with macOS and iOS. Apple’s online storage solution for its users.

A

iCloud

65
Q

macOS installer format that can be copied directly to the Applications folder. Format is used for simple installs where the package contents just need to be copied to the Applications folder.

A

DMG

66
Q

DMG

A

disk image

67
Q

macOS installer format that supports complex setup tasks. Format is used where app setup needs to perform additional actions, such as running a service or writing files to multiple folders.

A

PKG

68
Q

Default extension for a macOS app subdirectory when installed to the Applications folder

A

.APP extension

69
Q

macOS tool for disk and file system support tasks. App that can be used to verify or repair a disk or file system.

A

Disk Utility

70
Q

macOS tool for sharing an optical drive over the network. App which lets the user access a CD/DVD drive on another Mac or Windows computer.

A

Remote Disc

71
Q

App facilitating backup operations in macOS. Enables data to be backed up to an external drive or partition formatted using either APFS or macOS’s older extended file system

A

Time machine

72
Q

macOS indicator that a process is busy and is not able to accept input. When an app is busy or processing a complex request.

A

spinning wait cursor

73
Q

macOS tool for halting a process; equivalent to the process management functionality in Task Manager.

A

Force Quit

74
Q

How do you activate Spotlight Search using the keyboard?

A

COMMAND+SPACEBAR

75
Q

Where would you look for the option to view and configure wireless adapter status in macOS?

A

In the Status menu on the Menu bar, in the top-right of the screen, or in the Network prefpane

76
Q

How would you update an app purchased from the Mac App Store?

A

Open the Mac App Store and select the Updates button

77
Q

Your company is replacing its Windows desktops with Mac workstations, and you need to assist users with the transition. What is the equivalent of File Explorer in macOS?

A

The Finder

78
Q

What is the name of Apple’s backup software for macOS?

A

Time Machine

79
Q

A Windows user decides to start testing out Macs. They are working on a paper for school and need to cut and paste quite a bit. On the PC keyboard, they use Ctrl+X and Ctrl+V. What key should they use on the Mac?

A.Option
B.Command
C.Apple
D.Magic Mouse

A

B. Command

Where PC and Linux keyboards use CTRL, ALT, ALTGR, and START modifier keys, Mac keyboards have an APPLE/POWER key and COMMAND, OPTION, and CONTROL keys. COMMAND is closest to the CTRL key in terms of functionality.

OPTION is usually mapped to ALT. Use the Keyboard pane in System Preferences to map keys if using a non-Apple keyboard to operate a Mac.

The Apple key is the power button. This will definitely not help the user to cut and paste and might even cause loss of data if not saved properly.

Macs do not support touch screen interfaces, but they do support gesture-enabled Magic Mouse and Magic Trackpad peripherals.

80
Q

After downloading a new app from the internet, a user drags the file from the Downloads folder to the Applications folder on their Mac. What occured as a result of this activity?

A.The package contents were copied.
B.The app setup needs to perform additional actions.
C.The application was sideloaded.
D.The app was installed.

A

D.The app was installed.

When the app has been installed, it is placed in a directory with a .app extension in the Applications folder.

DMG (disk image) format is used for simple installs where the package contents just need to be copied to the Applications folder.

PKG format is used where app setup needs to perform additional actions, such as running a service or writing files to multiple folders.

Devices that allow installation of apps from untrusted sources, such as by sideloading APK packages or via developer mode, could also have weakened permissions.

81
Q

A Linux administrator needs to run automation scripts and looks for a shell on their server. Which of the following should they NOT look for?

A.Bash
B.Zsh
C.Ksh
D.TTY

A

D. TTY

The terminal and shell are connected by a teletype (TTY) device that handles text input and output in separate streams.

The shell provides a command environment by which a user can operate the OS and applications. Many shell programs are available to use with Linux, with bash being the most notable.

Zsh is another common shell program. These shells expose the same core command set but are distinguished by support for features such as command history, tab completion, command spelling correction, or syntax highlighting.

Ksh (Korn shell) is another common shell program.

82
Q

A client systems administrator for Mac computers wants to ensure users’ data is backed up locally. What should the administrator enable?

A.Recovery
B.Disk Utility
C.Time Machine
D.App Store

A

C. Time Machine

83
Q

A Linux server administrator wants to elevate their privileges. Which of the following commands makes elevating an account possible? (Select all that apply.)

A.su
B.passwd
C.sudo
D.chown

A

A. su and C. sudo

84
Q

An intern is going to work for the Linux administration team. They need to use a file editor but are not familiar with Linux. Which of the following is the easiest to use coming from a non-Linux background?

A.vi
B.nano
C.cat
D.cp

A

B. nano

The Nano text editor is a basic example often preferred by those coming from a Windows environment. To open or create a file, use nano filepath or nano -l filepath to show line numbers.

Many administrators prefer to use vi or vim. These tools have two modes. Command mode is used for file operations, such as writing changes and closing the editor.

While cat is not a file editor, it can be used to view the contents of a file or even write to a file.

Cp is used to create a copy of files either in the same or different directory with the same or different name.

85
Q

A security administrator wants to harden Linux machines and remove any unnecessary running processes. What command can the administrator use to inventory running processes of the current shell?

A.ip
B.dig
C.chmod
D.ps

A

D. ps

86
Q

A penetration tester is asked to perform an assessment on the new Mac laptops a company brought into the environment. After loading a shell on a user’s computer, the tester needs to find the passwords. Where should the tester look?

A.FileVault
B.Security & Privacy
C.Apple ID
D.Keychain

A

D. Keychain

87
Q

A coffee company sets up computer kiosks for customers. The company wants a hip trendy setting so they decide to use Mac computers. However, the person setting it up is unfamiliar with macOS. What can they use to acquire information for this task?

A.Spotlight Search
B.Dock
C.Terminal
D.Mission control

A

A. Spotlight Search

88
Q

A server administrator wants to keep up with security patches and configures their machines to pull updates. What should the administrator configure for clients to pull updates from?

A.Distribution
B.apt-get
C.Repositories
D.Yum

A

C. Repositories

Copies of distribution packages (including any updates) will be posted to a software repository. Often the vendor will maintain different repositories. It can then be used to install, uninstall, or update the software.

A distribution contains any precompiled software packages the vendor or sponsor considers appropriate. The distributions are pushed to the repositories.

apt-get is a command interface for APT. The update, upgrade, and install commands are used to update/patch and install software.

Yum is the command interface for YUM. The update, check-update, and install commands are used to update/patch, and install software.