Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours scrolling social media and waste money on things we forget, but won’t spend 30 minutes a day earning certifications that can change our lives.
Master in DevOps, SRE, DevSecOps & MLOps by DevOps School!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Mastering Linux Administration: Top 50 Commands Every Administrator Should Know

Linux administrators play a crucial role in maintaining and managing Linux-based systems. The command line is their gateway to efficiency and control. we will explore the top 50 Linux commands that every administrator should be well-versed in. These commands cover a wide range of tasks, from system monitoring to security, file management to network administration, empowering administrators to streamline their workflows and ensure the smooth operation of Linux environments.


pwd (Print Working Directory):

  • Displays the current working directory, providing a quick reference for administrators navigating the file system.

ls (List):

  • Lists files and directories in the current directory, aiding in file management.

cd (Change Directory):

  • Navigates through directories, facilitating efficient movement within the file system.

cp (Copy):

  • Copies files or directories from one location to another.

mv (Move):

  • Moves or renames files and directories.

rm (Remove):

  • Deletes files or directories. Caution is advised, as this command is irreversible.

mkdir (Make Directory):

  • Creates new directories in the specified location.

rmdir (Remove Directory):

  • Deletes empty directories.

chmod (Change Mode):

  • Modifies file permissions, specifying who can read, write, or execute a file.

chown (Change Owner):

  • Changes the ownership of a file or directory, essential for security and access control.

ps (Process Status):

  • Displays information about active processes, aiding in system monitoring.

top:

  • Provides a dynamic, real-time view of system processes, CPU usage, and memory utilization.

kill:

  • Terminates a running process by sending a signal to its process ID.

df (Disk Free):

  • Shows disk space usage, helping administrators manage storage efficiently.

du (Disk Usage):

  • Displays the size of directories, assisting in identifying space-consuming files.

free:

  • Shows system memory usage and available resources.

uname (Unix Name):

  • Displays system information, including the kernel version and machine architecture.

ifconfig (Interface Configuration):

  • Configures and displays network interface parameters.

ping:

  • Tests network connectivity by sending ICMP echo requests to a specified host.

traceroute:

  • Maps the route that packets take to reach a destination, aiding in network troubleshooting.

netstat (Network Statistics):

  • Shows network-related information, including active connections and listening ports.

ss (Socket Statistics):

  • Provides detailed socket statistics, complementing netstat.

grep (Global Regular Expression Print):

  • Searches for a specific pattern in files or command output.

sed (Stream Editor):

  • Edits and transforms text streams using regular expressions.

awk:

  • A versatile text processing tool for pattern scanning and text extraction.

cat (Concatenate):

  • Displays the content of a file or concatenates files.

head and tail:

  • Display the first or last few lines of a file, respectively.

nano/vi (Text Editors):

  • Basic text editors for creating or editing files directly from the command line.

wget/curl:

  • Download files from the internet using command-line tools.

tar (Tape Archive):

  • Creates compressed or uncompressed archive files.

gzip:

  • Compresses or decompresses files using the gzip algorithm.

find:

  • Searches for files and directories based on specified criteria.

locate:

  • Finds files by searching a pre-built database of file locations.

ssh (Secure Shell):

  • Establishes secure remote connections between systems.

scp (Secure Copy):

  • Copies files securely between local and remote systems.

rsync:

  • Efficiently synchronizes files and directories between systems.

chmod:

  • Changes file permissions for read, write, and execute access.

chroot (Change Root):

  • Changes the root directory for a specified command.

history:

  • Displays a list of recently executed commands.

date:

  • Shows or sets the system date and time.

cal (Calendar):

  • Displays a calendar for the specified month or year.

uptime:

  • Shows how long the system has been running and current system load.

who:

  • Displays information about currently logged-in users.

passwd:

  • Allows users to change their login password.

useradd/userdel:

  • Adds or deletes user accounts on the system.

groupadd/groupdel:

  • Adds or deletes user groups.

crontab:

  • Manages scheduled tasks and cron jobs.

journalctl:

  • Views and queries messages from the journal, including system logs.

systemctl:

  • Controls the systemd system and service manager.

reboot/shutdown:

  • Reboots or shuts down the system gracefully.

Related Posts

How to Generate a GitHub OAuth Token with Read/Write Permissions for Private Repositories

When working with GitHub, you may need to interact with private repositories. For that, GitHub uses OAuth tokens to authenticate and authorize your access to these repositories….

Laravel Error: Target class [DatabaseSeeder] does not exist – Solved for Laravel 10+

If you’re working with Laravel 10+ and run into the frustrating error: …you’re not alone. This is a common issue developers face, especially when upgrading from older…

JWT (JSON Web Token) vs OAuth 2.0

Both JWT and OAuth 2.0 are used for managing authentication and authorization, but they serve different purposes and work in distinct ways. 1. Purpose: 2. Role: 3….

Exploring and Creating a Proof of Concept (POC) to Upload APK Directly from GitHub Package

Automating the process of uploading an APK (or AAB) to the Google Play Store from GitHub can significantly speed up your CI/CD pipeline. By integrating Google Play’s…

A Detailed Guide to CI/CD with GitHub Actions

Continuous Integration (CI) and Continuous Deployment (CD) are modern software development practices that automate the process of integrating code changes, running tests, and deploying applications. With the…

Step-by-Step Guide for Setting Up Internal Testing in Google Play Console

1. Understanding the Types of Testing Before uploading your Android app for internal testing, it’s essential to know the differences between the testing options available in Google…

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x