\chapter{Linux Commands} \ChapterLabel{LinuxCommands} \begin{figure}[htbp] \centering \includegraphics[width=1\textwidth]{terminal.png} \caption{Linux terminal screenshot of the bash commands ran in Step 2.} \label{fig:linux_terminal} \end{figure} \section{Navigation and File Ops} 1. paris@paris-Precision-3581:~/lx-test \begin{figure} \centering \includegraphics[width=1\linewidth]{linux/image0.png} \caption{All entries in ~/lx-test.} \label{fig:img2} \end{figure} \begin{figure} \centering \includegraphics[width=1\linewidth]{linux/image1.png} \caption{Copying txt to tmp.} \label{fig:img3} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image2.png} \caption{old.txt moved into archive/.} \label{fig:img4} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image3.png} \caption{New empty file notes.md created.} \label{fig:img5} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image4.png} \caption{Disk usage for the src directory.} \label{fig:img6} \end{figure} \newpage \section{Viewing and Searching} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image6.png} \caption{Line numbers printed in sys.log.} \label{fig:img7} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image7.png} \caption{sys.log lines filtered by ERROR.} \label{fig:img8} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image8.png} \caption{Distinctive words in words.txt counted.} \label{fig:img9} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image9.png} \caption{Lines starting with G in words.txt shown.} \label{fig:img10} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image10.png} \caption{First two lines of people.csv displayed.} \label{fig:img11} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image11.png} \caption{Last three lines of sys.log shown.} \label{fig:img12} \end{figure} \newpage \section{Text Processing} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image12.png} \caption{Name column of people.csv printed.} \label{fig:img13} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image13.png} \caption{words.txt sorted case-insensitively without duplicates.} \label{fig:img14} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image14.png} \label{fig:img15} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/imaging.png} \caption{"three" replaced with 3 in src.txt with backups.} \label{fig:placeholder} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image15.png} \caption{Lines, words, and bytes printed for every *.txt file in src.} \label{fig:img16} \end{figure} \newpage \section{Permissions and Ownership} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image16.png} \caption{tmp/ made only read/write/searchable by the owner.} \label{fig:img17} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image17.png} \caption{src/lib given group execute permission recursively.} \label{fig:img18} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image18.png} \caption{Numeric permissions of src/file2.txt shown.} \label{fig:img19} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image19.png} \caption{notes.md made append-nly for the owner.} \label{fig:img20} \end{figure} \newpage \section{Links and Find} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image20.png} \caption{link-to-file1's target path.} \label{fig:img21} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image21.png} \caption{All regular files over 40 KiB under the current tree.} \label{fig:img22} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image22.png} \caption{Files modified in the last 10 minutes under tmp/.} \label{fig:img23} \end{figure} \newpage \section{Processes and Job Control} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image23.png} \label{fig:img24} \end{figure} \begin{figure} \centering \includegraphics[width=1\linewidth]{linux/imagest.png} \label{fig:placeholder} \end{figure} \begin{figure} \centering \includegraphics[width=1\linewidth]{linux/imageringest.png} \caption{Processes shown in tree view.} \label{fig:placeholder} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image24.png} \caption{sleep 120 started and its PID.} \label{fig:img25} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image25.png} \caption{TERM signal sent to all sleep processes.} \label{fig:img26} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image26.png} \caption{Top 5 processes by memory usage shown.} \label{fig:img27} \end{figure} \newpage \section{Archiving and Compression} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image27.png} \caption{src.tgz created from src/.} \label{fig:img28} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image28.png} \caption{Contents of src.tgz listed.} \label{fig:img29} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image29.png} \caption{file2.txt extracted from src.tgz into tmp/.} \label{fig:img30} \end{figure} \newpage \section{Networking and System Info} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image30.png} \caption{All listening TCP sockets with PIDs shown.} \label{fig:img31} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image31.png} \caption{Default route concisely printed.} \label{fig:img32} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image32.png} \caption{Kernel name, release, and machine architecture displayed.} \label{fig:img33} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image33.png} \caption{Last five successful logins shown.} \label{fig:img34} \end{figure} \newpage \section{Package and Services (Ubuntu)} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image34.png} \caption{Installed version of the coreutils package shown.} \label{fig:img35} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image35.png} \caption{Available packages with names containing "ripgrep".} \label{fig:img36} \end{figure} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image36.png} \caption{Status line of cron service.} \label{fig:img37} \end{figure} \newpage \section{Bash and Scripting} \begin{figure}[hbt!] \centering \includegraphics[width=1\linewidth]{linux/image39.png} \caption{Variable X with value 42 created, printed, and deleted.} \label{fig:img40} \end{figure}