Linux is made up of several parts. One important part is the kernel. What does the Linux kernel mainly do?
Think about what part of the system controls the CPU, memory, and devices.
The Linux kernel acts as a bridge between software and hardware. It manages CPU, memory, and devices so programs can run smoothly.
Consider the following Linux shell commands executed in order. What will be the output of the last command?
mkdir testdir cd testdir touch file1.txt ls
Think about what each command does step-by-step and what ls shows.
The commands create a directory named 'testdir', move into it, create an empty file 'file1.txt', then list files. The output is 'file1.txt'.
Given the file permission string -rwxr-x--x, which statement is true?
Break down the permission string into owner, group, and others sections.
The string -rwxr-x--x means: owner (rwx) full permissions, group (r-x) read and execute, others (--x) execute only.
Which statement correctly compares package management systems of popular Linux distributions?
Think about the common package managers for Debian and Red Hat families.
Debian and Ubuntu use apt for package management. Red Hat, Fedora, and CentOS use yum or dnf. pacman is used by Arch Linux.
What is the output of this Linux command pipeline?
echo -e "apple\nbanana\napple\ncherry" | sort | uniq -c | sort -nr
Break down the pipeline: echo outputs lines, sort orders them, uniq -c counts duplicates, final sort -nr sorts numerically in reverse.
The command counts how many times each fruit appears and sorts them by count descending. 'apple' appears twice, others once.