Learning controls
Skip to learning
CloudSeam Tech / SONIC-Academy
Linux Daily Admin TasksApex · planned0 of 20 labs completeSave your progress →
LINUX DAILY ADMIN TASKS / LESSON 1 OF 20

Linux Daily Admin Tasks

Start Here: Meet Your Practice Server

Open the correct terminal, identify your VM, and create a safe practice folder.

RHEL 9 or AlmaLinux 9 · Bash · VMware practice VM · local self-verified exercises · 0/20 lessons self-verified
Step 1 of 4 · Focused view

Visual checklist

0/4 steps checked
STEP 1 OF 4

Open the terminal inside the VM

Work in: Your practice RHEL 9 or AlmaLinux 9 VM · Bash terminal

The terminal is a text conversation with one computer.

Terminal — BashINSTRUCTIONAL EXAMPLE

Start in ~ (your signed-in user’s home directory).

[learner@alma-lab01 ~]$ cat /etc/redhat-release
[learner@alma-lab01 ~]$ whoami
[learner@alma-lab01 ~]$ hostname
WHAT TO LOOK FOR (EXAMPLE)
AlmaLinux release 9.x (or Red Hat Enterprise Linux release 9.x)
Your own username
Your VM hostname
Instructional terminal example · not a screenshot or connected VM. Usernames, hostnames and results will vary.

Type it with me

Command 1 of 3

Let’s take this one input at a time. Click inside the terminal in your own VM first.

cat /etc/redhat-release

Type this command into your VM’s terminal, then press Enter. Don’t type the example prompt shown in the terminal picture; keep symbols such as $HOME and > when they appear inside the command.

What you’re doingFirst, let’s find out which Linux version you’re using. cat (read a file) shows the contents of /etc/redhat-release: / is the root directory, etc is the configuration folder, and redhat-release is the version file.

Before you continueLook for AlmaLinux 9 or Red Hat Enterprise Linux 9. If you see another major version, pause—this class uses version 9.

Steps

Do this

0 of 5 checked

Check your result

AlmaLinux release 9.x (or Red Hat Enterprise Linux release 9.x) Your own username Your VM hostname

The release must say version 9. Write the three answers in your notes.

Need help?
Help opening this workspace

Start here: Return to the Linux console or SSH connection named above. On a GNOME desktop, click Activities, type Terminal and open it. Run hostname to check the machine. Type Linux commands into that terminal, not into Windows PowerShell. When sudo asks for your password, typing may show no characters; that is normal.

Why am I doing this?

The terminal is a text conversation with one computer. These commands ask which system and account you are using.

My result is different

If you see a PowerShell prompt beginning PS, switch into the Linux VM. If the release is 8 or 10, use a version 9 practice VM for this class.

What the commands and settings mean
cat
Prints a file; /etc/redhat-release contains the distribution label.
whoami
Prints the signed-in username.
hostname
Prints this computer’s name. A name is a label, not another server. Return to this check if you lose track of your machine.
Links & purpose for this step

Work in
Your practice RHEL 9 or AlmaLinux 9 VM · Bash terminal

Why this task
The terminal is a text conversation with one computer. These commands ask which system and account you are using.

STEP 2 OF 4

Check your administrator key

Work in: Your practice RHEL 9 or AlmaLinux 9 VM · Bash terminal

sudo temporarily lets an approved account do an administrator job; it does not mean every command is safe.

Terminal — BashINSTRUCTIONAL EXAMPLE

Start in ~ (your signed-in user’s home directory).

[learner@alma-lab01 ~]$ sudo -v
[learner@alma-lab01 ~]$ sudo -l
WHAT TO LOOK FOR (EXAMPLE)
sudo may ask for your own password. A permitted account has an allowed command list.
Instructional terminal example · not a screenshot or connected VM. Usernames, hostnames and results will vary.

Type it with me

Command 1 of 2

Let’s take this one input at a time. Click inside the terminal in your own VM first.

sudo -v

Type this command into your VM’s terminal, then press Enter. Don’t type the example prompt shown in the terminal picture; keep symbols such as $HOME and > when they appear inside the command.

What you’re doingLet’s check your permission to run administrator commands. sudo -v validates your access without making a system change.

Before you continueIf asked, type your own VM password and press Enter. Nothing appears while you type; returning to the prompt without an error is normal.

Steps

Do this

0 of 5 checked

Check your result

sudo may ask for your own password. A permitted account has an allowed command list.

No “not in the sudoers file” error appears. Your policy allows the exercises.

Need help?
Help opening this workspace

Start here: Return to the Linux console or SSH connection named above. On a GNOME desktop, click Activities, type Terminal and open it. Run hostname to check the machine. Type Linux commands into that terminal, not into Windows PowerShell. When sudo asks for your password, typing may show no characters; that is normal.

Why am I doing this?

sudo temporarily lets an approved account do an administrator job; it does not mean every command is safe.

My result is different

If access is denied, use the VM’s original authorized administrator to add your account to wheel, then sign out and back in. Do not edit sudoers blindly.

What the commands and settings mean
sudo -v
Validates your sudo permission without running a change.
sudo -l
Lists your approved sudo privileges.
Links & purpose for this step

Work in
Your practice RHEL 9 or AlmaLinux 9 VM · Bash terminal

Why this task
sudo temporarily lets an approved account do an administrator job; it does not mean every command is safe.

STEP 3 OF 4

Make a small practice area

Work in: Your practice RHEL 9 or AlmaLinux 9 VM · Bash terminal

A named practice folder keeps training files away from application and operating-system files.

Terminal — BashINSTRUCTIONAL EXAMPLE

Start in ~ (your signed-in user’s home directory).

[learner@alma-lab01 ~]$ mkdir -p "$HOME/sonic-admin/practice" "$HOME/sonic-admin/evidence"
[learner@alma-lab01 ~]$ cd "$HOME/sonic-admin"
[learner@alma-lab01 ~/sonic-admin]$ pwd
[learner@alma-lab01 ~/sonic-admin]$ printf "Practice only\n" > practice/readme.txt
[learner@alma-lab01 ~/sonic-admin]$ cat practice/readme.txt
WHAT TO LOOK FOR (EXAMPLE)
/home/your-user/sonic-admin
Practice only
Instructional terminal example · not a screenshot or connected VM. Usernames, hostnames and results will vary.

Type it with me

Command 1 of 5

Let’s take this one input at a time. Click inside the terminal in your own VM first.

mkdir -p "$HOME/sonic-admin/practice" "$HOME/sonic-admin/evidence"

Type this command into your VM’s terminal, then press Enter. Don’t type the example prompt shown in the terminal picture; keep symbols such as $HOME and > when they appear inside the command.

What you’re doingmkdir creates folders; -p also creates missing parent folders and accepts folders that already exist. $HOME points to your own home folder.

Before you continueNo message is normal when the folders are created successfully. Continue to the folder and file checks in this step.

Steps

Do this

0 of 5 checked

Check your result

/home/your-user/sonic-admin Practice only

pwd ends in /sonic-admin and the file prints Practice only.

Need help?
Help opening this workspace

Start here: Return to the Linux console or SSH connection named above. On a GNOME desktop, click Activities, type Terminal and open it. Run hostname to check the machine. Type Linux commands into that terminal, not into Windows PowerShell. When sudo asks for your password, typing may show no characters; that is normal.

Why am I doing this?

A named practice folder keeps training files away from application and operating-system files.

My result is different

If mkdir fails, check whoami and the quoted path. Do not use sudo to create files in your own home folder.

What the commands and settings mean
mkdir -p
Creates the folders if missing.
cd / pwd
Changes folder / prints the current folder.
printf / >
Prints the given text and writes it into one file. \n makes a new line.
Links & purpose for this step

Work in
Your practice RHEL 9 or AlmaLinux 9 VM · Bash terminal

Why this task
A named practice folder keeps training files away from application and operating-system files.

STEP 4 OF 4

Prepare tools and a recovery point

Work in: Your practice RHEL 9 or AlmaLinux 9 VM · Bash terminal

We install the small tools used later.

Terminal — BashINSTRUCTIONAL EXAMPLE

Start in ~ (your signed-in user’s home directory).

[learner@alma-lab01 ~]$ sudo dnf install -y lsof sysstat bind-utils curl tar acl lvm2 policycoreutils-python-utils nginx
[learner@alma-lab01 ~]$ rpm -q lsof sysstat bind-utils lvm2 nginx
WHAT TO LOOK FOR (EXAMPLE)
Package names with version numbers; no missing-package error.
Instructional terminal example · not a screenshot or connected VM. Usernames, hostnames and results will vary.

Type it with me

Command 1 of 2

Let’s take this one input at a time. Click inside the terminal in your own VM first.

sudo dnf install -y lsof sysstat bind-utils curl tar acl lvm2 policycoreutils-python-utils nginx

Type this command into your VM’s terminal, then press Enter. Don’t type the example prompt shown in the terminal picture; keep symbols such as $HOME and > when they appear inside the command.

What you’re doingdnf manages software packages. install adds the listed packages; -y accepts the transaction, so review all package names before running it.

Before you continueRead the actual result before continuing. If it reports an error, pause and use Need help; the success check describes the result for the complete step.

Steps

Do this

0 of 6 checked

Check your result

Package names with version numbers; no missing-package error.

Each package query prints an installed version. Then take a VMware snapshot named Daily Admin Ready.

Need help?
Help opening this workspace

Start here: Return to the Linux console or SSH connection named above. On a GNOME desktop, click Activities, type Terminal and open it. Run hostname to check the machine. Type Linux commands into that terminal, not into Windows PowerShell. When sudo asks for your password, typing may show no characters; that is normal.

Why am I doing this?

We install the small tools used later. A snapshot lets us undo practice changes, but is not a separate backup.

My result is different

If a repository fails, check the networking lesson. RHEL needs a valid subscription and enabled repositories; AlmaLinux uses its own repositories. Do not replace RHEL repositories with AlmaLinux ones.

What the commands and settings mean
dnf install -y
Downloads and installs named packages and needed dependencies.
rpm -q
Asks whether named packages are installed; it does not install them.
Links & purpose for this step

Work in
Your practice RHEL 9 or AlmaLinux 9 VM · Bash terminal

Why this task
We install the small tools used later. A snapshot lets us undo practice changes, but is not a separate backup.

Best practices and more troubleshooting

Best practices

  • Read the evidence before changing a setting. Write down one change, its reason, and its undo action.
  • Compare your actual output with the example; device names, dates, addresses and totals will differ.

Avoid these mistakes

  • Copying the dollar-sign prompt instead of only the command.
  • Calling a successful command a fix before checking what the user can do.

If your screen is different

My output differs from the example.

Check the VM, command spelling and the step’s failure note. Different device names and totals are normal; stop if you cannot identify the target.

YOUR TURN / PRACTICAL EXERCISE

Show what you can do

Close and reopen Terminal. Find your practice file without changing system files.

Pass check

Identify the OS, user and host; show readme.txt and the installed tools.

Knowledge check

Try these before continuing. You can look back and try again.

1. Where do these Linux commands go?
2. Is a VMware snapshot an independent backup?

Pick an answer for each question. It’s fine to look back at the lesson.

Finished? Verify this lesson

Check every step, finish the exercise, and pass the knowledge check. Progress is self-reported. Signed-in learners can save it to their connected academy account.

Before you start · setup and lab values
Lab goal · 4 steps
Before you start · prerequisites and lab values

Example names — what they mean

Your practice VM is your own RHEL 9 or AlmaLinux 9 server. Use the username and hostname you measured; learner in pictures is only a sample. $HOME means your own home folder. sonic-admin holds your practice files and evidence. sonicpractice is a disposable non-login account, not your administrator account. sonic-practice and sonic-daily-check are disposable systemd jobs. sonic_lab_vg belongs only on the separate empty LVM practice disk. None of these names creates another server or changes public DNS.

Need help with names, commands, or saving VM space? Open the beginner lab guide →

What you’ll need

  • Your own disposable RHEL 9 or AlmaLinux 9 VM in VMware Workstation Pro; GNOME is optional. Use NAT for initial downloads.
  • An authorized sudo account, console access and a pre-lab snapshot. Use a separate new 2 GB virtual disk only for LVM; never initialize the OS disk.
  • Allow roughly 2 GB VM memory for command-line practice, more for GNOME. Keep host free space for the existing VM, package updates, snapshots and the optional lab disk.
  • Screens are clearly labeled terminal mockups, not captures from your VM. Commands run only when you paste them into your own terminal. Progress is saved in this browser, not a live account database.

Your first move: In VMware, click your Linux VM tab. Sign in.

Optional browser practice

Your daily administration practice

0 of 20 lessons self-verified. Complete each lesson’s step checks, practical exercise and knowledge check. Progress uses this browser’s existing academy storage.

My Lab PassportAdd your VM · hostname, IP and folder

Record your own lab values. Saved on this device under your guest profile. Sync across devices is not available yet. No passwords or keys.

Your lab values

Values are reference notes. They do not replace commands or prove a connection to your VM. Manage in my profile →

Loading private notebook…