๐Ÿš€ Navigating Linux: System and Network Management

Yuv Raj SinghYuv Raj Singh
3 min read

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! ๐Ÿš€


0
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! ๐Ÿš€