Section 13

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/46

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:12 PM on 6/4/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

47 Terms

1
New cards

What command lists the contents of a directory in Linux? (Windows equivalent: dir)

ls — lists file system objects; use ls -la to show all files including hidden (dot) files with permissions, owner, group, size, and date

2
New cards

What command prints the current/working directory in Linux?

pwd (print working directory)

3
New cards

What command changes directories in Linux?

cd — use cd .. to go up one directory, cd . for current directory

4
New cards

In Linux, what command moves OR renames a file?

mv (move) — format: mv source destination. Moving copies the file then deletes the original

5
New cards

What command copies a file in Linux?

cp (copy) — format: cp source destination. Leaves the original intact

6
New cards

What command deletes/removes a file in Linux? How do you remove a non-empty directory?

rm (remove). Use rm -rf (recursive + force) to delete a directory and its contents

7
New cards

What command displays free disk space per file system in Linux?

df (disk free) — shows file system, total size, used, available, % used, and mount point

8
New cards

What command estimates disk usage of files/directories in Linux?

du (disk usage) — shows size of a directory, its contents, and underlying directories

9
New cards

What Linux command checks and repairs a file system? (Windows equivalent: chkdsk)

fsck (file system check) — unmount the file system first; often runs automatically after an unclean shutdown

10
New cards

What command attaches a file system to a directory in Linux?

mount — temporary; lost on reboot. For persistent mounts, edit /etc/fstab

11
New cards

Name the easy-to-use Linux command-line text editors.

nano and pico — beginner-friendly with on-screen command hints (e.g., Ctrl+O to save, Ctrl+X to exit)

12
New cards

What is vi and what makes it different from nano?

vi — an older MODAL text editor (insert mode, command/normal mode). Harder to use; no on-screen menu. vim = "vi improved" (adds spell check, autocomplete, plugins)

13
New cards

What does the cat command do in Linux?

Concatenate — creates, views, or combines files. Use > to overwrite a file, >> to append to a file

14
New cards

What command searches the file system for a file by name, date, owner, or permissions?

find — e.g., find directory -name file2.txt

15
New cards

What command searches for a string/regular expression INSIDE a file?

grep (Global Regular Expression Print) — useful for searching log files

16
New cards

find vs grep — which searches for files and which searches inside files?

find = searches for files (by name/attributes). grep = searches for content within files

17
New cards

What command switches to another user in Linux?

su (substitute user) — requires that user's password

18
New cards

What command runs a single command as the root user? (Windows equivalent: Run as administrator)

sudo (superuser do) — the account must be on the sudoers list

19
New cards

What are the commands to add, modify, and delete a USER in Linux?

useradd (create), usermod (modify), userdel (delete)

20
New cards

What command changes or resets a user's password in Linux?

passwd

21
New cards

What are the commands to add, modify, and delete a GROUP in Linux?

groupadd (create), groupmod (modify), groupdel (delete)

22
New cards

What command changes file/directory permissions in Linux?

chmod (change mode) — uses symbolic or octal notation

23
New cards

In chmod octal notation, what are the values for read, write, and execute?

read (r) = 4, write (w) = 2, execute (x) = 1. Add them together per group. Example: rwx = 7, rw- = 6

24
New cards

What does chmod 664 mean for the three permission groups?

Owner = rw- (6), Group = rw- (6), Everyone = r-- (4). Order is always Owner, Group, Everyone

25
New cards

What command changes the OWNER of a file/directory in Linux?

chown (change ownership)

26
New cards

What command changes the GROUP ownership of a file in Linux?

chgrp (change group)

27
New cards

How do you read a Linux permission string like drwxr-xr--?

First char = type (d = directory, - = file). Then 3 sets of 3: Owner, Group, Everyone — each as read/write/execute

28
New cards

Which package manager is used on Debian-based distros (e.g., Ubuntu)?

apt / apt-get (Advanced Packaging Tool) — uses .deb packages

29
New cards

Which package managers are used on Red Hat-based distros (Red Hat, CentOS, Fedora)?

rpm (oldest, low-level), yum (easier), and dnf (newest, updates yum) — use .rpm packages

30
New cards

What command displays a list of currently running processes in Linux?

ps (process status) — use ps -e to see all processes across all users

31
New cards

What Linux command shows real-time CPU and memory usage by process? (like Task Manager)

top

32
New cards

What command configures network interfaces and shows IP info in Linux? (replaced the older ifconfig)

ip — e.g., ip addr (shows IP), ip link (interface status)

33
New cards

How does the ping command differ in Linux vs Windows?

Linux pings INDEFINITELY until stopped (Ctrl+C); Windows sends 4 by default. Use ping -c 4 to limit count in Linux

34
New cards

What is the Linux spelling of the route-tracing command?

traceroute (fully spelled out; Windows uses tracert)

35
New cards

What command queries DNS servers for domain name info in Linux? (like nslookup)

dig — e.g., dig diontraining.com

36
New cards

What command transfers data to/from servers and supports HTTP, HTTPS, FTP, etc.?

curl (client URL) — useful for testing web services/APIs

37
New cards

How do you get help on a Linux command?

--help (after the command name) for basic usage, OR man (manual pages) for detailed reference

38
New cards

What are the three key components of the Linux OS (boot to runtime)?

Bootloader (loads kernel into memory), Kernel (core — manages hardware/software, processes, memory), systemd / system daemon (initializes and manages services at runtime)

39
New cards

Name two common Linux bootloaders.

GRUB (Grand Unified Bootloader — more common) and LILO (Linux Loader)

40
New cards

What does the Linux /etc/passwd file store?

User account info (username, UID, GID, home directory). Used for authentication. Passwords NOT stored here anymore

41
New cards

What does the Linux /etc/shadow file store?

Encrypted passwords + security info (last change date, expiration). Readable only by root

42
New cards

What does the /etc/hosts file do in Linux?

Local mapping of IP addresses to hostnames (resolves names without DNS)

43
New cards

What does the /etc/fstab file do in Linux?

Defines how storage devices/partitions are mounted — read at boot for automatic, persistent mounting

44
New cards

What does the /etc/resolv.conf file do in Linux?

Configures the DNS client — specifies which name servers to query for domain name resolution

45
New cards

What is Samba in Linux?

A cross-platform file-sharing tool that supports the SMB (Server Message Block) protocol, used to share files/printers with Windows systems

46
New cards

What service and editor are used to schedule automated tasks (e.g., backups) in Linux?

cron service; edit jobs with crontab -e (crontab editor)

47
New cards

What are the key Linux best practices for the exam?

Updates/patches (apt-get or yum/dnf/rpm), antivirus (e.g., ClamAV) + firewall/IDS/IPS, backups (cron + tools like tar/gzip), and Samba for Windows integration