Loading...

Lab 34: System Utility Commands Practice

Practice the core utility commands you reach for daily as a sysadmin: time, uptime, identity, kernel details, calendars, and quick math. Build speed and confidence by validating outputs and understanding what each tool is proving about the system.

core troubleshooting services

Scenario

As a sysadmin, you need fast access to time, basic system identity, and quick calculations. A teammate asks you to verify “what box am I on,” confirm uptime for incident notes, and compute a simple expression without leaving the terminal.

Operator context

These commands are the first 60 seconds of almost every troubleshooting session. Knowing what to run and how to interpret it is core muscle memory.

Objective

  • Display current system date and time.
  • Check system uptime and load averages.
  • Identify the hostname.
  • Inspect kernel and architecture details.
  • Display the current month’s calendar.
  • Use bc to evaluate a simple arithmetic expression.

What You’ll Practice

  • date for time verification and timestamps.
  • uptime for runtime and quick load health checks.
  • hostname for system identity validation.
  • uname -a for kernel and architecture evidence.
  • cal for fast scheduling context in the terminal.
  • bc for quick calculations during admin work.

Walkthrough

Step 1 : Display the current system date and time.
Command
date

Use date to confirm the server clock for logs, tickets, cron schedules, and incident timelines.

Wed Oct  1 14:32:08 EDT 2025
Step 2 : Check system uptime.
Command
uptime

uptime tells you how long the system has been running and shows the load averages, which are often the first health clue when performance feels “off.”

14:32:10 up 3 days,  4:28,  2 users,  load average: 0.48, 0.52, 0.47
Step 3 : Show the system’s hostname.
Command
hostname

This confirms which system you are actually on, which matters when you have multiple terminals, bastions, or similarly named servers.

lab-server
Step 4 : Display the system’s kernel and architecture info.
Command
uname -a

uname -a provides quick evidence of kernel version, build, and architecture. This is the baseline context you want before diagnosing driver issues, compatibility problems, or kernel-specific behavior.

Linux lab-server 5.15.0-89-generic #99-Ubuntu SMP Fri Sep  6 12:34:56 UTC 2025 x86_64 GNU/Linux
Step 5 : View the current month’s calendar.
Command
cal

Use cal when you need quick scheduling context for maintenance windows, patch Tuesdays, or deadlines.

October 2025
Su Mo Tu We Th Fr Sa
          1  2  3  4
 5  6  7  8  9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Step 6 : Use bc as a calculator to solve: (8 + 2) * 5.
Command
echo '(8 + 2) * 5' | bc

bc is a simple CLI calculator. This is useful when you are sizing storage, estimating time windows, or doing quick arithmetic without leaving the terminal.

50

Reference

  • date: Shows current system date and time (useful for timestamps).
  • uptime: Shows how long the system has been running and the load averages.
  • hostname: Prints the system hostname.
  • uname -a: Displays kernel version and architecture information.
  • cal: Prints a calendar for the current month (or specified month/year).
  • bc: Command-line calculator that evaluates expressions from stdin.