Featured image of post Learning Linux & Operating Systems πŸ–₯️

Learning Linux & Operating Systems πŸ–₯️

A guide to learning Linux and operating systems for DevOps. Includes basic Linux commands, process management, user management, file systems, and a Bash script for system resource monitoring.

πŸ“Œ Why is Linux important in DevOps?

Linux is the foundation of most server systems, containers (Docker, Kubernetes), and cloud platforms. DevOps professionals need to master Linux to:

  • βœ… Manage servers effectively.
  • βœ… Write automation scripts.
  • βœ… Handle files, users, and processes.
  • βœ… Optimize systems and security.

βš™οΈ What is an Operating System?

An operating system (OS) is software that manages computer hardware and software resources, providing common services for programs. It acts as an intermediary between applications and hardware, handling tasks such as:

  • πŸ”Ή Memory management.
  • πŸ”Ή Process scheduling.
  • πŸ”Ή File system management.
  • πŸ”Ή Device control.
  • πŸ’» Personal computers: Windows, macOS, Linux (Ubuntu, Fedora,…)
  • πŸ“± Mobile devices: iOS, Android
  • πŸ–₯️ Servers: Ubuntu Server, Red Hat Enterprise Linux, Windows Server

Each operating system has different characteristics, interfaces, and compatibility capabilities. They play crucial roles in system security, performance optimization, and providing consistent user experiences.


πŸ› οΈ Basic Linux Commands

Here are some important Linux commands:

πŸ” System Information

1
2
3
uname -a   # Display operating system information
uptime     # System uptime
free -m    # Check RAM memory

πŸ“‚ File & Directory Management

1
2
3
ls -l        # List files with detailed information
mkdir mydir  # Create new directory
rm -rf mydir # Delete directory and its contents

πŸš€ Process Management

1
2
3
top         # Display running processes
ps aux      # List all processes
kill -9 PID # Stop process by PID

πŸ‘€ User Management

1
2
3
whoami               # View current user
sudo useradd devops  # Create new user
sudo passwd devops   # Set password for user

πŸ“œ Bash Script for System Resource Monitoring

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#!/bin/bash

echo "==== System Information ===="
uname -a

echo "==== System Uptime ===="
uptime

echo "==== RAM Memory ===="
free -m

▢️ How to run the script:

1
2
chmod +x system_check.sh  # Grant execute permission to script
./system_check.sh         # Run script in terminal

πŸ“š Learning Resources

Here are some free resources to learn more about operating systems:


🎯 Conclusion

  • βœ… Linux is a mandatory skill in DevOps.
  • βœ… Learn to use terminal & Bash scripting.

πŸ‘‰ Next step: Learn more about terminal and CLI usage to work effectively with systems.

Licensed under CC BY-NC-SA 4.0
Last updated on 10:29 05/02/2026