๐ Navigating Linux: System and Network Management


Hey folks! ๐ Welcome back to my Linux blog series, where Iโm documenting my journey of learning Linux from scratch. In my previous blog, I explored directoriesโhow to create, manage, and navigate them effectively.
This time, I decided to get my hands dirty with some core Linux commands. From checking system info to managing services and finding command locations, this blog covers the essential commands that will form the backbone of my Linux workflow.
Letโs dive right in! ๐ ๏ธ
โ๏ธ Checking System Info
Before jumping into service management, I wanted to understand my system environment better. Here are some of the commands I used:
โ View the hostname:
hostname
This shows the name of my machine, which is useful when working with remote servers.
โ Check network configuration:
ifconfig
Displays IP addresses, network interfaces, and other network details.
๐ก On modern Linux systems, I found that using:
ip a
Gives the same info with a cleaner format.
โ Display OS version:
cat /etc/os-release
Reveals details about the Linux distribution Iโm running.
I found this particularly helpful when working across different Linux distros.
๐ Installing and Managing Apache Server
To practice service management, I installed and controlled Apache, a popular web server.
โ Install Apache:
yum install httpd
This command installs Apache using yum
, which is the package manager on RHEL-based distros.
โ Remove Apache:
yum remove httpd
If I ever want to uninstall Apache, this command will clean it up.
โ Update Apache:
yum update httpd
Ensures Apache is updated to the latest version.
๐ฅ Starting and Stopping Apache
Once Apache was installed, I played around with starting, stopping, and checking its status.
โ Start Apache:
service httpd start
This starts the Apache server.
โ Check Apache status:
service httpd status
Displays whether Apache is running or stopped.
โ Stop Apache:
service httpd stop
Stops the service when I no longer need it.
๐ Enabling Apache on Boot
I learned how to enable Apache to start automatically on boot, which is useful for web servers.
โ Enable Apache on boot:
chkconfig httpd on
Ensures Apache automatically starts after a reboot.
โ Disable Apache on boot:
chkconfig httpd off
Prevents Apache from starting automatically.
๐ Locating Commands
Next, I explored how to find the location of commands in Linux.
โ Find the location of a command:
which <command>
For example, to locate Python:
which python3
Output:
/usr/bin/python3
โ Find multiple commands:
which time
This shows the path of the time
command.
๐งโ๐ป User and Echo Commands
โ Check the current user:
whoami
Displays the logged-in user.
I found this useful when switching accounts or using sudo
.
โ Print text in the terminal:
echo "Hello, Linux!"
Prints the string in the terminal.
You can also use it to display environment variables:
echo $PATH
Shows the current PATH
variable.
๐ฆ Listing Installed Packages
Lastly, I learned how to check which packages are installed.
โ List installed packages:
yum list installed
This displays all installed packages with their versions, which is helpful for troubleshooting or verifying installations.
๐ฏ Key Takeaway: My Growing Linux Toolkit
This was my first hands-on session with Linux commands, and I can already see how powerful they are. From managing services to locating binaries, these commands are now part of my daily toolkit.
โ In my next blog, Iโll be diving into more such commandsโlearning how to create users, groups and much more.
If youโre following along, feel free to share your thoughts or drop any tips. Until next time, happy Linux-ing! ๐
Subscribe to my newsletter
Read articles from Yuv Raj Singh directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Yuv Raj Singh
Yuv Raj Singh
๐ Cloud | DevOps | Linux Hey, I'm Yuv Raj Singh, a Cloud & DevOps enthusiast passionate about automation, scalability, and security. I share my journey of learning Linux, DevOps, and Cloud Computing while building real-world AWS projects. Follow along as I learn, build, and share! ๐