Chapter 17 - macOS and Linux Operating Systems Flashcards

(114 cards)

1
Q

On which kernel is macOS based on?

A

A UNIX-based operating system foundation (Darwin/BSD).

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

What is the name of the macOS user interface?

A

Aqua.

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

What macOS feature holds app shortcuts at the bottom of the screen?

A

The Dock.

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

What macOS utility is used to browse and manage files and apps?

A

Finder.

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

What is the bar at the top of macOS that shows the active app’s menus?

A

The menu bar.

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

What feature provides system-wide search in macOS?

A

Spotlight.

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

What online service syncs data across Apple devices?

A

iCloud.

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

What account is required to use iCloud and many macOS features?

A

An Apple ID.

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

Which key is the primary modifier for macOS shortcuts?

A

Command (⌘).

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

What is the built-in macOS backup utility?

A

Time Machine.

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

What is required to set up Time Machine?

A

An external storage drive (or supported network volume).

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

What macOS feature manages all windows and virtual desktops?

A

Mission Control.

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

How can you invoke Mission Control?

A

Press F3, click its icon, or swipe up with three/four fingers on a trackpad.

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

In ‘ls -l’, what do the first 10 characters (e.g., -rw-rw-r–) show?

A

File type and permissions for owner, group, and others.

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

What three permission types exist in UNIX-like systems?

A

Read (r), write (w), and execute (x).

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

What command changes permissions in macOS/Linux?

A

chmod.

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

Which chmod syntax adds write permission for others?

A

o+w.

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

Who released the Linux kernel and when?

A

Linus Torvalds in 1991.

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

How is Linux licensed/described?

A

Free and open-source.

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

What are Ubuntu, Debian, and Fedora examples of?

A

Linux distributions (‘distros’).

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

What is the GUI layer called in Linux (e.g., GNOME/KDE)?

A

The desktop environment.

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

What is Ubuntu’s default desktop environment?

A

GNOME.

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

What is the vertical bar of app shortcuts on older Ubuntu (Unity) called?

A

The Launcher.

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

In Ubuntu’s universal search, what are ‘lenses’?

A

Subcategories in results (Unity-era feature).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What key filename rule differs between Windows and Linux CLIs?
Linux is case-sensitive; Windows CMD is not.
26
What is the single starting point for all paths on UNIX-like systems?
The root directory (/).
27
How is the directory layout commonly described?
A tree structure.
28
What command lists directory contents?
ls.
29
What command changes the current directory?
cd.
30
What command shows the full path of the current directory?
pwd (print working directory).
31
What command creates a new directory?
mkdir.
32
What command removes files or directories?
rm (use rm -r for directories).
33
What command copies files or directories?
cp (use -r for directories).
34
What command moves or renames files/directories?
mv.
35
What command prints a file’s contents to the terminal?
cat.
36
What tool searches for text patterns in files?
grep.
37
What is 'vi' (or 'vim')?
A powerful command-line text editor.
38
What command lists running processes?
ps (e.g., ps aux).
39
What command terminates a process by PID or signal?
kill (e.g., kill -9 PID).
40
What command shows/sets network interface info (legacy)?
ifconfig (wired).
41
What command shows/sets wireless interface info (legacy)?
iwconfig (wireless).
42
What command tests reachability to a host?
ping.
43
What command installs/updates packages on Debian/Ubuntu?
apt-get (or apt).
44
What command runs a command with elevated (root) privileges?
sudo.
45
What command changes file/directory ownership?
chown.
46
How do you reveal a hidden Dock?
Move the pointer to the Dock’s screen edge to unhide it.
47
What does 'ls -l' output include?
Permissions, owner, group, size, modified time, and name.
48
If permissions are 'rwxr-x--x', what can the group do?
Read and execute (no write).
49
What is the core characteristic of open-source software?
Source code is available to use, modify, and distribute.
50
What does POSIX compliance indicate?
Adherence to UNIX-like standards for compatibility.
51
In Ubuntu’s Launcher, what does 'Show Apps' do?
Displays all installed applications.
52
What does 'cd ..' represent?
Change to the parent directory (one level up).
53
How do you create 'Documents/Reports' from your home in one command?
mkdir Documents/Reports.
54
What permission must be set to run a script?
Execute (x).
55
How are Linux servers typically accessed in enterprises?
Via the command line (often without a GUI).
56
What account/privilege is needed for system-wide changes on Linux?
Root (superuser) or sudo privileges.
57
In chmod symbolic notation, what does 'u' stand for?
User (owner).
58
In chmod symbolic notation, what does 'g' stand for?
Group.
59
In chmod symbolic notation, what does 'o' stand for?
Others (everyone else).
60
What chmod numeric mode gives rwxr-xr-x?
755
61
What chmod numeric mode gives rw-r--r--?
644
62
How do you make a script executable?
chmod +x script.sh.
63
What command shows hidden entries along with details?
ls -la.
64
What command creates an empty file or updates its timestamp?
touch.
65
What commands page through text one screen at a time?
less (or more).
66
What commands show beginning or end of files?
head and tail.
67
What commands show disk and directory usage?
df (disk free) and du (disk usage).
68
What live process monitors are common on Linux?
top (or htop).
69
What command connects to a remote shell securely?
ssh user@host.
70
What command copies files over SSH?
scp (or rsync over SSH).
71
What file stores user privilege rules for sudo?
/etc/sudoers (edit via visudo).
72
What command changes a file’s group?
chgrp.
73
What command sets default permission masks for new files?
umask.
74
What command creates symlinks and hard links?
ln (-s for symlink).
75
What is the macOS disk encryption feature called?
FileVault.
76
What macOS feature restricts untrusted apps from running?
Gatekeeper.
77
What macOS tool is similar to Task Manager?
Activity Monitor.
78
What app provides a command shell on macOS?
Terminal.
79
What popular macOS package manager installs CLI tools easily?
Homebrew (brew).
80
What macOS file system is used on modern Macs?
APFS (Apple File System).
81
What macOS feature quickly launches apps or files by name?
Spotlight (Cmd+Space).
82
What macOS dialog forces unresponsive apps to quit?
Force Quit (Option+Cmd+Esc).
83
What Linux command shows IP routing and link status (modern)?
ip (e.g., ip addr, ip route).
84
What apt commands refresh and upgrade packages?
sudo apt update && sudo apt upgrade.
85
What apt command installs a package?
sudo apt install packagename.
86
What command shows kernel and system info?
uname -a.
87
What command prints your effective user identity?
whoami.
88
What file lists mounted filesystems?
/etc/fstab.
89
What command reads system logs on systemd distros?
journalctl.
90
What command manages services on systemd distros?
systemctl (start/stop/enable/status).
91
What command displays environment variables?
printenv (or env).
92
What command sets an environment variable for a session?
export VAR=value (bash).
93
What is the root user’s home directory?
/root.
94
What does '~' represent in paths?
The current user’s home directory.
95
What is the path separator in UNIX-like systems?
A forward slash (/).
96
What indicates an executable file in 'ls --color' output?
Typically shown in green (varies by theme).
97
What does a leading 'd' in 'ls -l' permissions mean?
The entry is a directory.
98
What does a leading 'l' in 'ls -l' permissions mean?
The entry is a symbolic link.
99
What does 'sudo !!' do in bash?
Re-runs the previous command with sudo.
100
What does 'grep -r' do?
Recursively searches files in subdirectories.
101
What does 'tar -czf archive.tgz folder' do?
Creates a compressed tarball of 'folder' using gzip.
102
What macOS setting panel manages accounts, security, and updates?
System Settings (formerly System Preferences).
103
What is the default superuser name on UNIX-like systems?
root.
104
What command elevates to a root shell (if allowed)?
sudo -i (or su on some systems).
105
What command prints effective groups for the current user?
groups.
106
What command shows file type information?
file filename.
107
What command tests DNS resolution on Linux/macOS?
dig or nslookup.
108
What command shows open ports and connections on Linux/macOS?
ss (or netstat on older systems).
109
What command downloads files via HTTP/S from the CLI?
curl (or wget).
110
What command finds files by name from a path?
find /path -name 'pattern'.
111
What command updates file permissions recursively?
chmod -R …
112
What command changes ownership recursively?
chown -R user:group path.
113
What command uses elevated privileges to edit protected system files safely?
sudoedit (preferred over sudo nano/vi).
114
What does 'sudo visudo' do?
Safely edits /etc/sudoers with syntax checking.