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
Rename the file *app1.dat* in the /var/log folder to app1.old:
*mv /var/log/app1.dat /var/log/app1.old*
18
Command-line tool for deleting file system objects in Linux
rm command
18
Remove the single file data.old from the current working directory:
*data.old*
19
Remove all files ending in .bak from the /var/log directory:
*rm /var/log/*.bak*
20
Remove the contents of the entire directory tree underneath the folder /home/david/data:
rm -r /home/david/data
21
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
df and du command *disk free* and *disk usage*
22
Linux commands allowing a user to use the root account or execute commands restricted to privileged users
su command *switch user*
23
Linux commands allowing a user to use the root account or execute commands restricted to privileged users
sudo command *superuser do*
24
What is the main advantage of sudo over su command?
The main advantage of sudo over su is that **the root password does not have to be shared between multiple administrators.**
25
Linux uses a permissions system with three rights, what are they? (3)
**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*
26
Linux command for managing file permissions
chmod command
26
Linux file-permission mode that uses numeric values to represent permissions
octal notation
27
Linux command for managing the account owner for files and directories. Allows the superuser to change the owner of a file or directory.
chown command
28
APT
Advanced Packaging Tool
29
Used by Debian distributions and works with .deb format packages.
APT
30
Used by Red Hat distributions and works with .rpm format packages
YUM
31
One of the package management tools available in Linux for installing and updating software
apt-get command
32
Refresh the local database with information about the packages available from the repository:
apt-get update
33
Update all packages with the latest versions:
apt-get upgrade
34
Install a new application:
*apt-get install PackageName*
35
Package manager for installing, maintaining, inventorying, and removing software from the Red Hat family of Linux distributions
yum
36
Refresh the local database with information about the packages available from the repository:
yum check-update
37
Update all packages with the latest versions:
*yum update*
38
Install a new application:
yum install PackageName
39
Linux command for retrieving process information. Invokes the process table, a record that summarizes the currently running processes on a system.
ps command
40
Interactive Linux command for monitoring process information
top command *table of processes*
41
Deprecated Linux command tool used to gather information about the IP configuration of the network adapter or to configure the network adapter.
ifconfig
42
Linux command tool used to gather information about the IP configuration of the network adapter or to configure the network adapter.
ip command
43
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.
dig command
44
Linux software package that implements Server Message Block (SMB) file/print sharing, primarily to support integration with Windows hosts
Samba
45
Scheduled task that is managed by the Linux cron daemon.
cron task scheduler
46
To add or delete a scheduled job, use the crontab editor. To review a user’s crontab jobs, enter the command:
crontab –l
47
To remove jobs from the scheduled list, use the command:
crontab -r
48
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?
Either | more or | less
49
Which Linux command will display detailed information about all files and directories in the current directory, including system files?
ls -la
50
What command could you use to move a file names.doc from your current directory to the USB stick linked to folder /mnt/usb?
mv names.doc /mnt/usb
51
A file is secured with the numeric permissions 0774. What rights does another user account have over the file?
Read-only
52
What command would allow you to delete the contents of the folder /home/jaime/junk and all its subdirectories?
rm -r /home/jaime/junk
53
Which Linux command allows a user to run a specific command or program with superuser/root privileges?
sudo
54
macOS feature for managing applications from the desktop; similar to the Windows taskbar
Dock
55
macOS file system search tool. Can be used to find almost anything on macOS
Spotlight search
56
App facilitating multiple desktops in macOS
Mission Control
57
macOS control panel hosting multiple prefpane configuration utilities.
System Preferences panel
58
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.
Accessibility prefpane
59
Add a new account
Open **System Preferences** > **Users & Groups**
60
Cloud-based service allowing users to synchronize settings and manage apps, file sharing, and backups between multiple Apple devices.
Apple ID
61
macOS app for managing passwords cached by the OS and supported browser/web applications.
keychain
62
macOS disk encryption product. A disk encryption product.
FileVault
63
File management app in macOS. The macOS equivalent of File Explorer in Windows.
the Finder
64
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.
iCloud
65
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.
DMG
66
DMG
disk image
67
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.
PKG
68
Default extension for a macOS app subdirectory when installed to the Applications folder
.APP extension
69
macOS tool for disk and file system support tasks. App that can be used to verify or repair a disk or file system.
Disk Utility
70
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.
Remote Disc
71
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
Time machine
72
macOS indicator that a process is busy and is not able to accept input. When an app is busy or processing a complex request.
spinning wait cursor
73
macOS tool for halting a process; equivalent to the process management functionality in Task Manager.
Force Quit
74
How do you activate Spotlight Search using the keyboard?
COMMAND+SPACEBAR
75
Where would you look for the option to view and configure wireless adapter status in macOS?
In the Status menu on the Menu bar, in the top-right of the screen, or in the Network prefpane
76
How would you update an app purchased from the Mac App Store?
Open the Mac App Store and select the Updates button
77
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?
The Finder
78
What is the name of Apple's backup software for macOS?
Time Machine
79
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
**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
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.
**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
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
**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
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
**C. Time Machine**
83
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. su** and **C. sudo**
84
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
**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
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
**D. ps**
86
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
**D. Keychain**
87
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. Spotlight Search**
88
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
**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.