Apply your knowledge of the Linux filesystem, navigation commands, file operations, and permissions in five progressive exercises designed for a real terminal environment.
pwd to confirm your starting location (should be your home directory).ls -la ~ to see all files in your home directory, including hidden ones (files beginning with .).cd / then run ls -l to see the top-level directories.cd /etc && ls | head -20 (configuration files), cd /var/log && ls (log files).cd ~ and then cd $HOME. Confirm with pwd.mkdir -p ~/webproject/{src,config,logs,backup}ls -R ~/webproject/touch ~/webproject/src/index.html ~/webproject/config/app.conf ~/webproject/logs/access.logecho "Hello World" > ~/webproject/src/index.html then verify with cat ~/webproject/src/index.htmlcp ~/webproject/config/app.conf ~/webproject/backup/app.conf.bakmv ~/webproject/logs/access.log ~/webproject/logs/access-2024.logrm -r ~/webproject/backup/ls -l /etc/passwd /etc/shadow /etc/hosts and record the permissions. What can each user level do?echo '#!/bin/bash\necho "Hello from script"' > ~/test.sh./~/test.sh — it will fail. Check permissions with ls -l ~/test.sh.chmod +x ~/test.sh then run it again and confirm it works.echo "SECRET_KEY=abc123" > ~/secret.env && chmod 600 ~/secret.envls -l ~/secret.env should show -rw-------mkdir ~/public_html && chmod 755 ~/public_html. Why is this the right permission for a web directory?ls /etc/network/ 2>/dev/null || ls /etc/netplan/ 2>/dev/nullcat /proc/version, cat /proc/cpuinfo | head -20, cat /proc/meminfo | head -10ls /proc | grep -E '^[0-9]+$' | wc -l (each numbered directory is a running process)ls /dev/ | head -30. Identify disk devices (sda, nvme), terminals (tty), and special files (null, random).du -sh /etc /var /home /usr 2>/dev/nullls -la /etc/ssh/ and identify what each file does.uname -a (all info) and uname -r (kernel release only)cat /etc/os-release or lsb_release -a 2>/dev/nullecho $SHELL and echo $BASH_VERSIONecho $PATH | tr ':' '\n' (tr replaces colons with newlines for readability)which ls, which python3, which bashhistory | tail -20uptime — understand all three components of the output.