Tuesday, March 21, 2023

Linux - Case

The following is a Linux dictionary word of the day:

case command utilized to conditionally perform a command based on its value.

Example:

#!/bin/sh
echo "Enter command (who, list, or cal)"
     read command
     case "$command" in
      who)
           echo "Running who"
           who
           ;;
     list)
           echo "Running ls"
           ls
           ;;
     cal)
           echo "Running cal"
           cal 
           ;;
     *)
           echo "Bad command"
           ;;
     esac
     exit 0

Thursday, March 9, 2023

Linux Quiz

https://www.amazon.com/dp/B0BXNRFPP6

The following Linux quiz is meant to be a fun way to sharpen one's Linux knowledge. The 110 questions are based upon real working aspects for those interested in Linux. Ideally the questions are those that a system administrator, power user and an end user or student looking to further their knowledge in this area will find useful. 

Contents:

Basic Simple Commands

Network Commands

Text Processing Commands

Monitoring Commands

Linux Architecture

Linux Commands & Definitions

Grep Commands

Sed Commands

Awk Commands

Basic Scripting