This exam… this exam was definitely one of the hardest exams I have taken so far. After I was done with my LPIC-1/CompTIA Linux+ I decided that it would only make sense to also get LPIC-2 done! Since LPIC-1 was relatively easy I instantly jumped to the conclusion that LPIC-2 will also be near theContinue reading “My Experience: LPIC-2 Exam 1 (201-450)”
Tag Archives: linux
Flash OS image to USB drive with dd command
Open Terminal Type sudo su to enter root and type in your password Type diskutil on Mac or lsblk on linux to determine the name of flash drive for example disk4 or disk2. Mac Linux Next we have to flash image to the flash driver with dd. Mac dd if=<OS_Image_File> of=<disk_path> bs=1m conv=sync Linux ddContinue reading “Flash OS image to USB drive with dd command”
Study Guide for CompTIA Linux+ LX0-103 and LX0-104
This is the study guide I created when I was studying for the Comptia Linux+ / LPIC-1 exam. This guide is for both exams LX0-103 and LX0-104. The resources I used was the book CompTIA Linux+/LPIC-1 Certification All-in-One Exam Guide and the acloud.guru course Certified CompTIA Linux+ and Certified LPIC-1: System Administrator. However, if youContinue reading “Study Guide for CompTIA Linux+ LX0-103 and LX0-104”
Steps to compiling the Linux kernel
STEP 1: Switch to root user This is needed because we are working in the /usr/src directory which requires root access sudo su STEP 2: Download kernel source code from https://www.kernel.org and move to /usr/src This is usually tar.xz or tar.gz file cd /usr/src wget <kernel_download_URL_link> STEP 3: Extract contents from tar file For tar.xz:Continue reading “Steps to compiling the Linux kernel”
Good Shell Scripting Practices
Just some notes on good practices when shell scripting… It is a good idea to comment your code (this is for programming in general). Have a header with name of script, author, modification date and parameters being used. Variable declaration comments should be on the same line. While other comments can be on a separateContinue reading “Good Shell Scripting Practices”
Multiple Copies (cp) of a File with Bash
The syntax of the script will be: ./mcp main_file copy1 copy2 copy3 … ./mcp is the script name, main_file is the file that will be copied and copy1, copy2, copy3 and so on are the copies of main_file. I started the script off by getting the main_file in $1 and with shift separating it from the copies: #!/bin/bash file=$1 shift My secondContinue reading “Multiple Copies (cp) of a File with Bash”
Learning Linux: Linux Processes
These notes cover the basics of processes, signals and their control keys and some concept on processes. add & at the end of a command to run the process in the background Process IDs referee to processes in the entire system. Job numbers refers to processes running in the background of the current shell. JobContinue reading “Learning Linux: Linux Processes”
Learning Linux: Bash Command-Line Processing and Input/Output
These notes cover I/O Redirectors, File Descriptors, echo options, printf and read commands, command blocks, Command-Line Processing, how quoting works in bash and the command, builtin, enable and eval commands. I/O Redirectors The I/O Redirectors are >, <, >>, << and |. These are the ones that are most used, the many others are for system programmers.Continue reading “Learning Linux: Bash Command-Line Processing and Input/Output”