<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nitishkumar J G on Medium]]></title>
        <description><![CDATA[Stories by Nitishkumar J G on Medium]]></description>
        <link>https://medium.com/@jnitish490?source=rss-cf21aa4ba80d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*IN4xqxjdCjIEQvee</url>
            <title>Stories by Nitishkumar J G on Medium</title>
            <link>https://medium.com/@jnitish490?source=rss-cf21aa4ba80d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 23:42:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jnitish490/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Essentials of Linux: Commands, System Monitoring, and Network Configuration]]></title>
            <link>https://medium.com/@jnitish490/essentials-of-linux-commands-system-monitoring-and-network-configuration-16e904ff35f1?source=rss-cf21aa4ba80d------2</link>
            <guid isPermaLink="false">https://medium.com/p/16e904ff35f1</guid>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[linux-commands]]></category>
            <category><![CDATA[network-configuration]]></category>
            <category><![CDATA[monitoring-system]]></category>
            <dc:creator><![CDATA[Nitishkumar J G]]></dc:creator>
            <pubDate>Fri, 28 Nov 2025 07:04:09 GMT</pubDate>
            <atom:updated>2025-11-28T07:04:09.993Z</atom:updated>
            <content:encoded><![CDATA[<p>A Beginner’s Guide to Navigating Linux, Checking System Health, and Configuring Remote Access</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*yMadOwpXiTETF8ZEZf8NrA.png" /></figure><p>In This Guide we will understand Essentials Linux Commands.</p><h3>Navigation</h3><p>For Beginers Navigating to different directories(folders) or file is anoying task but it is very essential basic of linux command.</p><ol><li>Present Directory : To check your current location in the terminal, use the command pwd</li><li>List all the content of the present Directory use command ls</li></ol><ul><li>ls command has many options like</li><li>ls -alts here “a” stands for all files including hidden files in the directory , “l” stands for long listing format where you will be able to see the owner of file or directory , permissions like read,write and execute, file size in bytes and last modified date, “t” stands for time, it sorts the list in last modified time and “s” shows the file size in disk block.</li></ul><p>3. Change Directory cd: used to move from one Directory to another</p><ul><li>cd ~ this command take you to the home directory</li><li>cd ./&lt;folder_name&gt; to go inside the child folder use this command.</li><li>cd .. This command take you to the parent folder</li><li>cd /home/&lt;username&gt;/Documents we can give absulute path ie path from home dir to navagate to perticular directory.</li></ul><h3>System Check</h3><p>Most servers run on Linux, and monitoring system health is essential for ensuring applications continue to run smoothly and for diagnosing issues quickly.</p><h3>Disk</h3><ol><li>To check the partitions present in the disk and how much space is allocated to each partition we use command lsblk .<br> — lsblk displays information about system storage devices, such as the size allocated to each partition, the number of SSDs or HDDs connected, and the mount points where these partitions are attached in the filesystem.<br> — A <strong>mount point</strong> is a directory in the Linux filesystem where a storage device (SSD, HDD, USB, partition, etc.) is attached so that its contents can be accessed.</li><li>df -h displays how much space is used and available on each mounted filesystem, along with the usage percentage. For example, the root (/) partition stores most system and application data. If its usage becomes high, you may need to either extend the partition using LVM or remove unnecessary files to free up space.<br> — Here -h is Human readable , if we don’t use -h then it gives size in 1-kilobyte blocks, if we need only in MB use -m or if need in GB use -g instead of -h.</li><li>du -h displays the disk usage of a directory and shows the size of each file and subdirectory in a human-readable format.</li><li>lsblk -o NAME,MODEL,TYPE displays the disk name along with its vendor and model details, helping you identify the hardware and type of storage device connected to the system.</li></ol><h3>Memory</h3><p>Memory (RAM) usage is a critical part of system health checks. If the RAM is heavily used, it can affect the application’s performance. Some portion of disk may be configured as swap space, which acts as backup memory when RAM is fully utilized. However, once RAM usage crosses 80%, it becomes a warning sign. At that point, you should investigate which processes are consuming memory, coordinate with developers to optimize the application, or terminate unnecessary processes running on the server.</p><ul><li>free -h displays important memory details such as the total RAM available, the amount of memory currently in use, and the remaining free memory. The -h option shows the output in a human-readable format (MB/GB).</li><li>sudo dmidecode --type memory provides detailed hardware information about the system’s RAM, including the number of memory slots, how many are filled, the size of each RAM module, memory type (DDR3/DDR4/DDR5), speed, manufacturer, and serial numbers.</li></ul><h3>CPU</h3><p>Most server crashes occur due to high CPU usage by applications or unexpected spikes in traffic. Monitoring CPU and memory usage helps identify processes consuming excessive resources, so you can kill or restart them in time. This proactive approach helps prevent server crashes and ensures smooth application performance.</p><ul><li>ps -aux displays detailed information about every running process on the system. It shows how much CPU and memory each process is using, the process ID (PID), the user running the process, the start time, and the exact command that launched the process. This helps identify resource-heavy or abnormal processes for troubleshooting and system monitoring.</li><li>Here “a” option is used to show all process running in all users, “u” option is used to display the inforamtion in a <strong>detailed, human-readable format, “x” is used to</strong> show processes that do <strong>not</strong> have a terminal, such as background services and daemons.</li><li>ps -aux --sort=-%cpu sorts all running processes from highest to lowest CPU usage. Similarly, using ps -aux --sort=-%mem sorts processes based on memory usage, showing the most memory-consuming processes first.</li><li>top is an interactive, real-time alternative to the ps command. It displays the total number of running processes, CPU usage, memory and swap usage, along with details such as process priority, nice value, and the user running each process. Unlike ps, which shows a static snapshot, top continuously updates the information, allowing you to monitor system activity in real time.</li><li>In the top command, you can sort processes by CPU usage using Shift + P and by memory usage using Shift + M.</li><li>lscpu displays detailed information about the CPU, including architecture, number of cores, threads, vendor, model, and other hardware features.</li></ul><h3>System</h3><ul><li>journalctl is used to view system logs.</li><li>It helps identify issues related to hardware, OS, services, or system stability. If you want to quickly filter and view only error-level logs, we can use: journalctl -p err</li><li>The last command is used to view historical login and system event information.<br> — last reboot shows the last system reboots.<br> — last -x displays system shutdowns and run-level changes.<br> — Running last alone shows the last user login sessions.</li><li>lsb_release provides detailed information about the operating system, such as the distribution name, release version, and codename.</li><li>uname -a displays comprehensive system information, including the kernel version, system architecture, hostname, and other kernel-related details.</li></ul><h3>Network</h3><p>Checking the network connection — whether LAN or WiFi — and reviewing NetworkManager logs helps determine if the server is experiencing connectivity issues and whether the problem is with the internet connection or the system itself.</p><ul><li>ping 8.8.8.8 is commonly used to check whether the internet is reachable. The IP 8.8.8.8 belongs to Google’s public DNS server, often used for connectivity testing. The ping command sends ICMP packets to the target and reports packet loss and latency, helping identify network reliability issues.</li><li>journalctl -u NetworkManager is used to view logs related to the NetworkManager service. The journalctl command retrieves system logs managed by systemd, and the -u option filters the output to show logs for a specific service—in this case, NetworkManager.</li><li>nmcli con show --active displays the currently active network connections on the system, such as active LAN or WiFi interfaces.</li><li>Internet speed can be tested using speedtest-cli, but it is not installed by default. You need to install it manually using: sudo apt install speedtest-cli.</li></ul><h3>Network Configuration</h3><p>An important step when working with a client whose device is outside your network — such as an NVR, cameras, or other edge devices — is ensuring you have proper remote access. This involves verifying connectivity, configuring secure access methods, and confirming the device is reachable over the internet or through the client’s network setup.</p><ul><li>First, you need to install a few essential tools such as the OpenSSH client and OpenVPN. These are required to establish secure and encrypted remote connections to client devices.</li><li>sudo apt install openssh-client openvpn -y</li><li>Configure OpenVPN by placing the OpenVPN configuration file (.ovpn) inside the /etc/openvpn directory. Starting the OpenVPN service establishes a VPN tunnel, assigns a VPN IP address, and brings the remote device into our network.</li><li>If the configuration file name is <strong>client</strong>, use the following command to start and enable the OpenVPN</li><li>sudo systemctl enable --now openvpn@client</li><li>To assign a static IP and gateway to a LAN connection and bring the system into the client’s network, use the following command:</li><li>sudo nmcli con modify &lt;connection-name&gt; ipv4.address &lt;system-ip&gt; ipv4.gateway &lt;gateway-ip&gt; ipv4.method manual</li><li>Here, &lt;connection-name&gt; refers to the name of the network connection (which can be checked using nmcli con show), &lt;system-ip&gt; is the IP address you want to assign, and &lt;gateway-ip&gt; is the network gateway. The ipv4.method manual option ensures the system uses a static IP instead of obtaining one via DHCP.</li><li>After modifying the connection, the changes need to be applied by restarting the network interface. This is done with:</li><li>sudo nmcli con down &lt;connection-name&gt;</li><li>sudo nmcli con up &lt;connection-name&gt;</li><li>The first command, nmcli con down, temporarily deactivates the connection, while nmcli con up reactivates it, applying the new static IP and gateway settings. Together, these commands ensure that the system is correctly configured and connected to the client’s network.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16e904ff35f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>