<?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 Pankajchougale on Medium]]></title>
        <description><![CDATA[Stories by Pankajchougale on Medium]]></description>
        <link>https://medium.com/@pankajchougale1008?source=rss-cc7c7812fd2d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7WJmfX_OsnWi3WBhZAQAUQ.jpeg</url>
            <title>Stories by Pankajchougale on Medium</title>
            <link>https://medium.com/@pankajchougale1008?source=rss-cc7c7812fd2d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 07:37:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pankajchougale1008/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[How to install OTOBO in Centos/RHEL]]></title>
            <link>https://medium.com/@pankajchougale1008/how-to-install-otobo-in-centos-rhel-db0e7a483ffc?source=rss-cc7c7812fd2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/db0e7a483ffc</guid>
            <category><![CDATA[otobo]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[otobo-installation]]></category>
            <category><![CDATA[centos]]></category>
            <dc:creator><![CDATA[Pankajchougale]]></dc:creator>
            <pubDate>Mon, 22 Sep 2025 15:52:36 GMT</pubDate>
            <atom:updated>2025-09-22T15:53:48.596Z</atom:updated>
            <content:encoded><![CDATA[<p>This chapter describes the installation and basic configuration of the central OTOBO framework.</p><p>Follow the detailed steps in this chapter to install OTOBO on your server. You can then use its web interface to login and administer the system.</p><p>Also a youtube video is available on my channel, please follow the below link <a href="https://youtu.be/uShSmKf3TaY">https://youtu.be/uShSmKf3TaY</a></p><h3><strong>Disable SELinux for RHEL/CentOS/Fedora.</strong></h3><p>Configure SELINUX=disabled in the /etc/selinux/config file:</p><pre># This file controls the state of SELinux on the system.<br># SELINUX= can take one of these three values:<br>#       enforcing - SELinux security policy is enforced.<br>#       permissive - SELinux prints warnings instead of enforcing.<br>#       disabled - No SELinux policy is loaded.<br>SELINUX=disabled<br># SELINUXTYPE= can take one of these two values:<br>#       targeted - Targeted processes are protected,<br>#       mls - Multi Level Security protection.<br>SELINUXTYPE=targeted</pre><p>Reboot your system. After reboot, confirm that the getenforce command returns <em>Disabled</em>:</p><pre>root&gt; getenforce<br>Disabled</pre><h3><strong>Update your linux and install Perl Packages.</strong></h3><pre>root&gt; sudo dnf update<br>root&gt; cpanm namespace::autoclean<br>root&gt; dnf -y install httpd httpd-devel apr-devel apr-util-devel<br>root&gt; dnf -y groupinstall &quot;Development Tools&quot;<br>root&gt; dnf -y install gcc make automake autoconf git wget curl tar \<br>               perl perl-core perl-App-cpanminus \<br>               perl-devel perl-CPAN \<br>               perl-libwww-perl perl-LWP-Protocol-https \<br>               perl-IO-Socket-SSL perl-Net-SSLeay \<br>               expat expat-devel libxml2 libxml2-devel \<br>               libxslt libxslt-devel openssl openssl-devel<br><br>root&gt; cpanm --notest Const::Fast JSON::XS Date::Format DateTime CSS::Minifier::XS \<br>    Convert::BinHex DBIx::Connector File::chmod HTTP::Message \<br>    JavaScript::Minifier::XS List::AllUtils LWP::UserAgent Moo \<br>    Net::DNS Net::SMTP::SSL Path::Class Plack Template Toolkit \<br>    Template::Stash::XS Text::CSV Text::CSV_XS Text::Trim XML::LibXML \<br>    YAML::XS ModPerl::Util Mail::IMAPClient Authen::SASL Authen::NTLM \<br>    Plack::Middleware::Header Plack::Middleware::ReverseProxy \<br>    Encode::HanExtra Net::LDAP Crypt::Eksblowfish::Bcrypt XML::LibXSLT<br><br>root&gt; dnf config-manager --set-enabled crb<br>root&gt; dnf install epel-release<br>root&gt; dnf install httpd mod_perl</pre><h3>Unpack and Install OTOBO</h3><p>Download the latest otobo release from <a href="https://ftp.otobo.org/pub/otobo/">https://ftp.otobo.org/pub/otobo/</a>. Unpack the source archive (for example, using tar) into the directory /opt/otobo-install:</p><pre>root&gt; mkdir /opt/otobo-install &amp;&amp; mkdir /opt/otobo                      # Create a temporary install directory<br>root&gt; cd /opt/otobo-install                                             # Change into the update directory<br>root&gt; wget https://ftp.otobo.org/pub/otobo/otobo-latest-11.0.tar.gz     # Download he latest OTOBO 10 release<br>root&gt; tar -xzf otobo-latest-11.0.tar.gz                                 # Unzip OTOBO<br>root&gt; cp -r otobo-10.x.x/* /opt/otobo                                     # Copy the new otobo directory to /opt/otobo</pre><h3>Create the OTOBO User</h3><p>Create a dedicated user for OTOBO within its own group:</p><pre>root&gt; useradd -r -U -d /opt/otobo -c &#39;OTOBO user&#39; otobo -s /bin/bash</pre><p>Add the user to web server group (if the web server is not running as otobo user):</p><pre>root&gt; usermod -G apache otobo</pre><h3>Activate the Default Configuration File</h3><p>There is an OTOBO configuration file bundled in $OTOBO_HOME/Kernel/Config.pm.dist. You must activate it by copying it without the .dist file name extension.</p><pre>root&gt; cp /opt/otobo/Kernel/Config.pm.dist /opt/otobo/Kernel/Config.pm</pre><h3>Configure the Apache Web Server</h3><pre>root&gt; yum install httpd mod_perl</pre><p>Apache Configuration (CGI mode — simpler)</p><p>Create /etc/httpd/conf.d/otobo.conf:</p><pre>&lt;VirtualHost *:80&gt;<br>    ServerName yourdomain.com<br><br>    # Installer and normal interface<br>    ScriptAlias /otobo/ &quot;/opt/otobo/bin/cgi-bin/&quot;<br>    Alias /otobo-web/ &quot;/opt/otobo/var/httpd/htdocs/&quot;<br><br>    &lt;Directory &quot;/opt/otobo/bin/cgi-bin&quot;&gt;<br>        Options +ExecCGI<br>        AddHandler cgi-script .pl<br>        Require all granted<br>    &lt;/Directory&gt;<br><br>    &lt;Directory &quot;/opt/otobo/var/httpd/htdocs&quot;&gt;<br>        Require all granted<br>    &lt;/Directory&gt;<br><br>    ErrorLog /var/log/httpd/otobo_error.log<br>    CustomLog /var/log/httpd/otobo_access.log combined<br>&lt;/VirtualHost&gt;</pre><h3>Set File Permissions</h3><pre>root&gt; /opt/otobo/bin/otobo.SetPermissions.pl</pre><h3>Setup the Database</h3><pre>yum install mysql-server</pre><p>After installing the MySQL server you need configure it.</p><pre>root&gt; mysql<br>CREATE USER &#39;otobo&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;Pfd4g456@1&#39;;<br>GRANT ALL PRIVILEGES ON otobo.* TO &#39;otobo&#39;@&#39;localhost&#39;;<br>FLUSH PRIVILEGES;<br>exit;</pre><p>The following configuration settings are minimum requirements for MySQL setups. Please add the following lines to the MySQL Server configuration file <strong>/etc/my.cnf.d/mysql-server.cnf</strong></p><pre>root&gt; vi mysql-server.cnf<br><br># add the below line under [mysqld]<br><br>max_allowed_packet   = 64M<br>innodb_log_file_size = 256M</pre><h3><strong>Restart the Mysql and reboot:</strong></h3><pre>root&gt; systemctl restart mysqld</pre><h3><strong>Disable the firewalld service</strong></h3><pre>root&gt; systemctl stop firewalld<br>root&gt; sudo systemctl disable firewalld<br>root&gt; systemctl start httpd<br>root&gt; systemctl enable httpd<br><br>root&gt; reboot</pre><h3>Basic System Configuration</h3><p>Please use the web installer at <a href="http://localhost/otobo/installer.pl">http://localhost/otobo/installer.pl</a> (replace “localhost” with your OTOBO hostname) to set up your database and basic system settings such as email accounts.</p><h3>First Login</h3><p>Now you are ready to login to your system at <a href="http://localhost/otobo/index.pl">http://localhost/otobo/index.pl</a> as user root@localhost with the password that was generated (see above).</p><h3><strong>Thank You</strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db0e7a483ffc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Linux System Log Monitoring | journalctl, dmesg & /var/log Explained]]></title>
            <link>https://medium.com/@pankajchougale1008/mastering-linux-system-log-monitoring-journalctl-dmesg-var-log-explained-4e3fcdf1cc3a?source=rss-cc7c7812fd2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e3fcdf1cc3a</guid>
            <category><![CDATA[system-logs]]></category>
            <category><![CDATA[linux-log]]></category>
            <category><![CDATA[log-service]]></category>
            <dc:creator><![CDATA[Pankajchougale]]></dc:creator>
            <pubDate>Mon, 08 Sep 2025 14:33:04 GMT</pubDate>
            <atom:updated>2025-09-08T14:33:04.309Z</atom:updated>
            <content:encoded><![CDATA[<p>When something goes wrong on a Linux system — from a failed service to a hardware issue — <strong>logs are your best friend</strong>. They tell the story of what happened, when, and why.</p><p>In this guide, we’ll explore the <strong>three most important ways</strong> to monitor logs in Linux:</p><ul><li>journalctl (systemd-based logging)</li><li>dmesg (kernel logs)</li><li>/var/log/ files (traditional log files)</li></ul><p>By the end, you’ll know <strong>where to look when things break</strong> and how to read logs like a pro.</p><h3>🔹 1. journalctl — Systemd Logs</h3><p>On modern Linux distros (Ubuntu, CentOS, RHEL, Fedora), logs are managed by <strong>systemd-journald</strong>.<br> The <strong>journalctl</strong> command lets you view and filter these.</p><p>👉 <strong>Basic usage:</strong></p><pre>journalctl</pre><p>Shows the full system log.</p><p>👉 <strong>View logs for a specific service:</strong></p><pre>journalctl -u sshd</pre><p>👉 <strong>View logs since last boot:</strong></p><pre>journalctl -b</pre><p>👉 <strong>Follow logs in real-time (like tail -f):</strong></p><pre>journalctl -f</pre><p>👉 <strong>Filter logs by time:</strong></p><pre>journalctl --since &quot;2025-08-01 10:00:00&quot; --until &quot;2025-08-01 12:00:00&quot;</pre><p>💡 Use journalctl when you want structured, system-wide logs managed by <strong>systemd</strong>.</p><h3>🔹 2. dmesg — Kernel Logs</h3><p>The <strong>kernel</strong> records messages about hardware detection, drivers, and low-level system activity.<br> To read them, use <strong>dmesg</strong>.</p><p>👉 <strong>View kernel ring buffer:</strong></p><pre>dmesg</pre><p>👉 <strong>View only errors:</strong></p><pre>dmesg --level=err</pre><p>👉 <strong>Follow live kernel logs:</strong></p><pre>dmesg --follow</pre><p>Use dmesg for <strong>hardware-related issues</strong> (e.g., failing disk, USB device errors, driver problems).</p><h3>🔹 3. /var/log/ Files — Traditional Logs</h3><p>Linux stores plain-text logs in the <strong>/var/log/ directory</strong>.<br> Some of the most important files include:</p><p>📂 /var/log/syslog (Debian/Ubuntu)<br> 📂 /var/log/messages (RHEL/CentOS) — system-wide logs<br> 📂 /var/log/auth.log — authentication &amp; login attempts<br> 📂 /var/log/secure — security-related messages (RHEL-based)<br> 📂 /var/log/dmesg — saved kernel logs<br> 📂 /var/log/nginx/ or /var/log/httpd/ — web server logs</p><p>👉 <strong>Examples:</strong></p><pre>tail -f /var/log/syslog<br>tail -f /var/log/auth.log<br>less /var/log/messages<br>💡 Use /var/log/ files for service-specific debugging or when systemd logging isn’t available.</pre><h3>🔹 Practical Demo</h3><p>Imagine your <strong>SSH service fails</strong> to start:</p><ol><li>Check service logs:</li></ol><pre>journalctl -u sshd</pre><p>2. If it’s hardware-related, look at kernel logs:</p><pre>dmesg | grep network</pre><p>3. Finally, check authentication attempts:</p><pre>tail -f /var/log/auth.log</pre><h3>🔹 Conclusion</h3><p>Logs are your <strong>first line of defense</strong> when troubleshooting Linux systems.</p><ul><li>Use <strong>journalctl</strong> for structured, systemd-based logs.</li><li>Use <strong>dmesg</strong> for kernel and hardware issues.</li><li>Explore <strong>/var/log/</strong> for service-specific logs.</li></ul><p>By mastering these tools, you’ll be able to <strong>quickly identify problems, trace system activity, and secure your servers.</strong></p><p>👉 Stay tuned — in my upcoming YouTube video, I’ll <strong>demonstrate these log monitoring techniques step by step</strong> with real examples.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e3fcdf1cc3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monitoring Network Usage in Linux: A Complete Guide]]></title>
            <link>https://medium.com/@pankajchougale1008/monitoring-network-usage-in-linux-a-complete-guide-e1e1c0652d29?source=rss-cc7c7812fd2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1e1c0652d29</guid>
            <category><![CDATA[sss]]></category>
            <category><![CDATA[nload]]></category>
            <category><![CDATA[netstat]]></category>
            <category><![CDATA[iftop]]></category>
            <category><![CDATA[ip-addr]]></category>
            <dc:creator><![CDATA[Pankajchougale]]></dc:creator>
            <pubDate>Sun, 31 Aug 2025 09:28:57 GMT</pubDate>
            <atom:updated>2025-08-31T09:28:57.212Z</atom:updated>
            <content:encoded><![CDATA[<p>Network monitoring is one of the most important skills for any Linux user, whether you’re a <strong>system administrator, developer, or enthusiast</strong>. Monitoring helps you:</p><ul><li>Diagnose <strong>network slowdowns</strong></li><li>Detect <strong>suspicious connections</strong></li><li>Identify <strong>bandwidth-hungry processes</strong></li><li>Troubleshoot <strong>server connectivity issues</strong></li></ul><p>In this guide, we’ll cover <strong>five powerful Linux commands</strong> for monitoring network usage:</p><ul><li>ip addr – View network interfaces and IP addresses</li><li>ss – Inspect socket statistics and active connections</li><li>netstat – Legacy but still popular for network stats</li><li>iftop – Real-time bandwidth usage per connection</li><li>nload – Real-time incoming and outgoing traffic</li></ul><p>Each section includes <strong>examples and real-time use cases</strong> you can try on your system.</p><h3>🔹 1. ip addr – View Network Interfaces &amp; IPs</h3><p>The ip command (from the <strong>iproute2</strong> package) is the modern replacement for ifconfig. It helps you check the status of your network interfaces and assigned IP addresses.</p><pre>ip addr</pre><p>Example Output:</p><pre>2: ens33: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500<br>    inet 192.168.1.100/24 brd 192.168.1.255 scope global ens33</pre><ul><li>ens33 → network interface name</li><li>inet 192.168.1.100/24 → IP with subnet mask</li><li>UP → interface is active</li></ul><p>Useful Options:</p><ul><li>ip addr show → same as above</li><li>ip addr show ens33 → details for a specific interface</li><li>ip -4 addr → shows the ipv4 address</li><li>ip -6 addr→ shows the ipv6 address</li><li>ip -br addr → <strong>brief format</strong> (clean table view)</li></ul><pre>ip -br addr</pre><p>Output:</p><pre>lo        UNKNOWN    127.0.0.1/8<br>ens33     UP         192.168.1.100/24</pre><p>✅ <strong>Real-Time Use Case</strong>: When your server is <strong>not reachable via SSH</strong>, quickly run ip addr from the console to check if the network interface has a valid IP assigned.</p><h3>🔹 2. ss – Socket Statistics</h3><p>ss (socket statistics) is a <strong>fast replacement for netstat</strong>. It displays <strong>TCP, UDP, and Unix socket connections</strong> with detailed info.</p><p>Usage:</p><pre>ss -tuln</pre><p>👉 Lists all listening ports with protocol and port number.</p><p>Example Output:</p><pre>Netid State  Recv-Q Send-Q Local Address:Port  Peer Address:Port<br>tcp   LISTEN 0      128    0.0.0.0:22         0.0.0.0:*</pre><h3>Useful Options:</h3><ul><li>ss -t → show TCP connections</li><li>ss -u → show UDP connections</li><li>ss -l → show listening sockets</li><li>ss -n → show numeric IPs (skip DNS lookup)</li><li>ss -p → show processes using connections</li></ul><p>Example :</p><pre>ss -tnp</pre><p>Output:</p><pre>ESTAB  0  0  192.168.1.100:22  192.168.1.105:53221  users:((&quot;sshd&quot;,pid=1234,fd=3))</pre><p>✅ <strong>Real-Time Use Case</strong>: If your server’s <strong>web app is not loading</strong>, use ss -tuln | grep 80 to check if the web server is really listening on port 80.</p><h3>🔹 3. netstat – Network Statistics (Legacy Tool)</h3><p>netstat is older but still widely available. It shows open ports, active connections, and routing tables.</p><p>Usage:</p><pre>netstat -tuln</pre><p>Example Output:</p><pre>tcp   0   0 0.0.0.0:22   0.0.0.0:*   LISTEN<br>udp   0   0 0.0.0.0:68   0.0.0.0:*</pre><h3>Useful Options:</h3><ul><li>netstat -t → TCP connections</li><li>netstat -u → UDP connections</li><li>netstat -l → listening ports</li><li>netstat -n → numeric IPs/ports</li><li>netstat -p → show process IDs</li></ul><pre>netstat -anp | grep 22</pre><p>👉 Shows which process is bound to port 22.</p><p>✅ <strong>Real-Time Use Case</strong>: If you suspect <strong>multiple services are using the same port</strong>, netstat -anp helps quickly identify the conflicting processes.</p><h3>🔹 4. iftop – Real-Time Bandwidth Usage per Connection</h3><p>iftop is like top, but for network traffic. It shows <strong>bandwidth usage per connection</strong> in real time.</p><p>Installation:</p><pre>sudo apt install iftop   # Ubuntu/Debian<br>sudo yum install iftop   # CentOS/RHEL</pre><p>Usage:</p><pre>sudo iftop</pre><p>Example Output:</p><pre>192.168.1.100 =&gt; 192.168.1.1      1.45Mb  1.38Mb  1.42Mb<br>192.168.1.100 &lt;= 192.168.1.1      2.12Mb  2.20Mb  2.18Mb</pre><ul><li>=&gt; Outgoing traffic</li><li>&lt;= Incoming traffic</li></ul><p>Useful Options:</p><ul><li>iftop -i eth0 → monitor a specific interface</li><li>iftop -n → disable DNS lookup (faster output)</li><li>iftop -N → show port numbers</li></ul><p>✅ <strong>Real-Time Use Case</strong>: If your server is <strong>slowing down due to high bandwidth usage</strong>, run iftop to see which remote host is consuming the most bandwidth.</p><h3>🔹 5. nload – Real-Time Network Traffic</h3><p>nload gives a <strong>graphical view</strong> of incoming and outgoing traffic separately.</p><p>Installation:</p><pre>sudo apt install nload   # Ubuntu/Debian<br>sudo yum install nload   # CentOS/RHEL</pre><p>Usage:</p><pre>nload</pre><p>Example Output:</p><pre>Incoming:  1.23 Mbit/s<br>Outgoing:  0.89 Mbit/s</pre><h3>Useful Options:</h3><ul><li>nload -i 500 → refresh every 500 ms</li><li>nload -u M → show stats in Mbit/s</li><li>nload eth0 → monitor specific interface</li></ul><p>✅ <strong>Real-Time Use Case</strong>: If you want to <strong>monitor total bandwidth usage</strong> on a VPS to ensure you’re not exceeding your provider’s limits, use nload for a simple incoming/outgoing view.</p><h3>✅ Final Thoughts</h3><ul><li>Use <strong>ip addr</strong> to check if your system has the correct IP configuration.</li><li>Use <strong>ss</strong> or <strong>netstat</strong> to check open ports and active connections.</li><li>Use <strong>iftop</strong> to spot bandwidth-heavy connections.</li><li>Use <strong>nload</strong> to see overall traffic trends in real time.</li></ul><p>By combining these tools, you get a <strong>complete picture of network activity</strong> — from interface status to per-host traffic analysis.</p><p>🔥 Pro Tip: For <strong>system administrators</strong>, these commands are often combined with logging and monitoring tools like <strong>Nagios, Zabbix, or Grafana</strong> for advanced dashboards.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1e1c0652d29" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monitoring CPU Usage & Processes in Linux (With Examples)]]></title>
            <link>https://medium.com/@pankajchougale1008/monitoring-cpu-usage-processes-in-linux-with-examples-439b89be7a31?source=rss-cc7c7812fd2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/439b89be7a31</guid>
            <category><![CDATA[cpu-monitoring]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Pankajchougale]]></dc:creator>
            <pubDate>Fri, 29 Aug 2025 10:31:26 GMT</pubDate>
            <atom:updated>2025-08-29T10:31:26.172Z</atom:updated>
            <content:encoded><![CDATA[<p>Efficient system monitoring is a crucial skill for every Linux user, especially when working with servers or performance-heavy applications. In this guide, we will explore the <strong>most important Linux commands</strong> to monitor CPU usage and processes:</p><ul><li>top</li><li>htop</li><li>uptime</li><li>ps</li><li>pidstat</li><li>kill</li></ul><p>Each command comes with its <strong>most commonly used options</strong> and real-world usage examples.</p><h3>1. top – Real-Time Process Monitoring</h3><p>The top command displays running processes and resource usage in real-time. It’s one of the most commonly used monitoring tools.</p><p>Syntax:</p><pre>top</pre><h3>Example Output (key sections):</h3><ul><li><strong>PID</strong> → Process ID</li><li><strong>USER</strong> → Process owner</li><li><strong>%CPU</strong> → CPU usage of process</li><li><strong>%MEM</strong> → Memory usage</li><li><strong>COMMAND</strong> → Name of the process</li></ul><pre>Useful Options:<br><br>top -u &lt;username&gt; # → Show processes for a specific user<br><br>Press M # → Sort by memory usage<br><br>Press P # → Sort by CPU usage<br><br>Press k # → Kill a process by PID<br><br>Press -d &lt;seconds&gt; # → Sets the delay time (update interval) in seconds between screen updates<br><br>Press -n &lt;iterations&gt; # → Specifies the number of iterations (updates) top should perform before exiting.<br><br>Press q # → Quit</pre><p>👉 <strong>Quick Use Case:</strong> Find and kill a high-CPU process.</p><h3>2. htop – Interactive Process Viewer</h3><p>htop is an improved, interactive version of top. It provides a colorful, user-friendly interface.</p><p>Installation (if not installed):</p><pre>sudo apt install htop   # Ubuntu/Debian<br>sudo yum install htop   # CentOS/RHEL</pre><p>Usage:</p><pre>htop</pre><h3>Features:</h3><ul><li>Arrow keys → Navigate processes</li><li>F6 → Sort by CPU, Memory, Time, etc.</li><li>F9 → Kill a process</li><li>Real-time CPU, memory, and swap graphs</li></ul><p>👉 <strong>Quick Use Case:</strong> Quickly find the most resource-hungry process visually.</p><h3>3. uptime – System Load &amp; Uptime</h3><p>The uptime command shows how long the system has been running and the system load averages.</p><p>Syntax:</p><pre>uptime</pre><p>Example Output:</p><p>12:10:25 up 5 days, 2:31, 2 users, load average: 0.25, 0.40, 0.35</p><ul><li><strong>5 days, 2:31</strong> → System uptime</li><li><strong>2 users</strong> → Logged-in users</li><li><strong>Load average</strong> (1, 5, 15 mins) → CPU load</li></ul><p>👉 <strong>Quick Use Case:</strong> Check if your system is under heavy load.</p><h3>4. ps – Snapshot of Processes</h3><p>The ps command shows a snapshot of current processes. Unlike top, it doesn’t update continuously.</p><p>Syntax:</p><pre>ps [options]</pre><h3>Common Options:</h3><ul><li>ps aux → List all processes</li><li>ps -u &lt;username&gt; → Processes of a user</li><li>ps -p &lt;PID&gt; → Details of a specific process</li></ul><p>Example:</p><pre>ps aux | grep apache</pre><p>👉 Find if Apache web server is running.</p><h3>5. pidstat – Per-Process CPU Usage</h3><p>pidstat (from the sysstat package) provides detailed CPU usage statistics per process.</p><p>Install:</p><pre>sudo apt install sysstat   # Ubuntu/Debian<br>sudo yum install sysstat   # CentOS/RHEL</pre><p>Usage:</p><pre>pidstat 2 5</pre><ul><li>Runs pidstat every <strong>2 seconds</strong>, <strong>5 times</strong></li></ul><h3>Options:</h3><ul><li>pidstat -u → CPU usage per process</li><li>pidstat -r → Memory usage per process</li><li>pidstat -d → I/O statistics</li></ul><p>👉 <strong>Quick Use Case:</strong> Find processes consuming high CPU over time.</p><h3>6. kill – Terminate a Process</h3><p>The kill command is used to stop a process using its PID.</p><p>Syntax:</p><pre>kill &lt;PID&gt;</pre><h3>Useful Options:</h3><ul><li>kill -9 &lt;PID&gt; → Force kill a process</li><li>kill -15 &lt;PID&gt; → Graceful termination</li></ul><p>Example:</p><pre>ps aux | grep firefox<br>kill -9 2345</pre><p>👉 Kills a misbehaving Firefox process.</p><h3>🔥 Pro Tip: Combining Commands</h3><ul><li>Find a process using ps and kill it:</li></ul><pre>ps aux | grep python<br>kill -9 &lt;PID&gt;</pre><p>Monitor CPU &amp; kill directly in top:<br> Press k inside top → Enter PID → Kill process.</p><h3>✅ Conclusion</h3><p>By mastering these Linux commands, you can efficiently:</p><ul><li>Monitor <strong>CPU &amp; process usage</strong> (top, htop, ps, pidstat)</li><li>Check <strong>system uptime &amp; load</strong> (uptime)</li><li>Terminate unwanted processes (kill)</li></ul><p>Whether you’re troubleshooting performance issues or managing servers, these tools are your <strong>first line of defense</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=439b89be7a31" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Memory Usage and Disk Usage]]></title>
            <link>https://medium.com/@pankajchougale1008/memory-usage-and-disk-usage-494da597aad2?source=rss-cc7c7812fd2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/494da597aad2</guid>
            <dc:creator><![CDATA[Pankajchougale]]></dc:creator>
            <pubDate>Wed, 27 Aug 2025 14:28:24 GMT</pubDate>
            <atom:updated>2025-08-28T05:22:23.096Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qDDO8NOt-nqNBoXV.png" /></figure><p>Here we are going to talk about the commands which are used to check the details about memory and disk.</p><ol><li>Free :</li></ol><p>The free command in Linux provides a summary of system memory usage, including both physical RAM and swap space. By default, it displays values in kibibytes (KB).</p><p>The free command output typically shows two main lines: Mem (for physical RAM) and Swap (for swap space), with several columns:</p><ul><li><strong>total: </strong>The total amount of physical memory (RAM) or swap space available on the system.</li><li><strong>used: </strong>The amount of memory currently in use by processes, the operating system, and data structures. For Mem, this includes memory used by applications, the kernel, and cached data.</li><li><strong>free: </strong>The amount of physical memory or swap space that is completely unused and readily available for new allocations.</li><li><strong>shared: </strong>Memory shared by multiple processes, often used by tmpfs file systems.</li><li><strong>buff/cache: </strong>The combined memory used by kernel buffers and the page cache. This memory is used to store frequently accessed data and can be reclaimed by applications if needed.</li><li><strong>available: </strong>An estimate of how much memory is available for starting new applications without causing the system to swap. This value is generally a more accurate indicator of usable memory than “free” because it includes reclaimable buff/cache memory.</li></ul><pre>Common Options:<br>-h (or --human): # Displays memory sizes in human-readable units (e.g., MB, GB) for easier interpretation.<br>-b, -k, -m, -g:  # Displays memory in bytes, kilobytes, megabytes, or gigabytes, respectively.<br>-s &lt;interval&gt; (or --seconds &lt;interval&gt;): # Continuously updates the output every &lt;interval&gt; seconds.<br>-t (or --total): # Displays a line showing the total amount of RAM and swap combined. <br>-w (or --wide): # Displays the output in a wide format, showing buffers and cache separately for more detail.<br>Example Usage:<br>free -h: # Displays memory usage in a human-readable format.<br>free -m: # Displays memory usage in megabytes.<br>free -s 5: # Updates the memory usage display every 5 seconds.</pre><p>2. /proc/meminfo :</p><p>The /proc/meminfo file is a virtual file in Linux that provides a detailed, real-time report on the system’s memory usage, including total RAM, free and available memory, cache, buffers, and swap space, presented in kilobytes.</p><pre>cat /proc/meminfo</pre><p>3. df :</p><p>The df command in Unix-like operating systems, such as Linux, stands for &quot;disk free.&quot; It is used to report file system disk space usage.</p><p>Purpose: The primary purpose of df is to display information about the total space, used space, available space, and usage percentage of mounted file systems. It provides an overview of how much storage is being consumed and how much is still accessible on various partitions or storage devices.</p><p>The output of the df command typically includes several columns:</p><ul><li><strong>Filesystem:</strong> The name of the file system or device (e.g., /dev/sda1, tmpfs).</li><li><strong>1K-blocks (or Size):</strong> The total size of the file system in 1K blocks (or other units depending on options).</li><li><strong>Used:</strong> The amount of disk space currently in use.</li><li><strong>Available:</strong> The amount of disk space available for use by non-privileged users.</li><li><strong>Use%:</strong> The percentage of disk space currently in use.</li><li><strong>Mounted on:</strong> The directory where the file system is mounted (its mount point).</li></ul><pre>Common Options:<br>-h (human-readable): # Displays sizes in human-readable units (e.g., KB, MB, GB), making the output easier to interpret.<br>-a (all): # Includes all file systems, even those with 0 blocks, such as pseudo-filesystems.<br>-T (type): # Shows the file system type (e.g., ext4, xfs, nfs).<br>-i (inodes): # Displays inode usage information instead of block usage. Inodes represent the number of files and directories.<br>-x &lt;TYPE&gt; (exclude): # Excludes file systems of a specified type from the output.<br>--total: # Produces a grand total of available space and elides insignificant entries.</pre><p>4. du :</p><p>The du (disk usage) command in Linux is a utility used to estimate file space usage. It provides information about the disk space occupied by files and directories within a specified path. If no path is provided, du reports on the files in the current directory.</p><pre># Commonly used du command options include:<br>du -h /path/to/directory # -h (human-readable)<br>du -sh /path/to/directory # -s (summarize): Displays a total summary for each argument (directory or file) rather than listing the size of every subdirectory. <br>du -ah /path/to/directory # -a (all files): Displays disk usage for all files, not just directories.<br>du -ch /path/to/directory # -c (grand total): Displays a grand total of disk usage for all specified arguments at the end of the output.</pre><p>5. lsblk :</p><p>The lsblk command in Linux is used to list information about all available or specified block devices. Block devices are storage devices such as hard drives, solid-state drives (SSDs), USB drives, and their partitions.</p><pre>Commonly used options:<br>lsblk: # Basic usage, lists all block devices in a tree format.<br>lsblk -a: # Includes empty devices in the list.<br>lsblk -f: # Shows filesystem information (UUID, LABEL, FSTYPE, MOUNTPOINT).<br>lsblk -l: # Displays output in a list format instead of a tree.<br>lsblk -o &lt;columns&gt;: # Specifies which output columns to print (e.g., lsblk -o NAME,SIZE,MOUNTPOINT).<br>lsblk /dev/sda: # Displays information for a specific device, in this case, /dev/sda.</pre><p>6. Key Differences between free,df,du</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*jATYOCbBrpRfjgu0q6ViTQ.png" /></figure><p>Exercise : <br>Practice the iostat command in your linux system.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=494da597aad2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Linux Systemd and Service Management | A Complete Guide]]></title>
            <link>https://medium.com/@pankajchougale1008/mastering-linux-systemd-and-service-management-a-complete-guide-f29f5a10e95a?source=rss-cc7c7812fd2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f29f5a10e95a</guid>
            <category><![CDATA[systemd-service]]></category>
            <category><![CDATA[systemd]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Pankajchougale]]></dc:creator>
            <pubDate>Tue, 26 Aug 2025 14:28:01 GMT</pubDate>
            <atom:updated>2025-08-26T14:47:32.062Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xNkBITb4xQRPdlaL007Z0g.png" /></figure><p>Linux system administration is incomplete without understanding <strong>Systemd</strong>. It is the <strong>default init system</strong> in most modern Linux distributions (Ubuntu, CentOS, RHEL, Fedora, Debian, etc.) and is responsible for <strong>booting the system, managing services, handling logging, and much more</strong>.</p><p>In this article, we’ll explore <strong>what Systemd is, how to manage services with </strong><strong>systemctl, check logs with </strong><strong>journalctl, and work with targets (runlevels)</strong> — along with practical examples.</p><h3>🔹 What is Systemd?</h3><p><strong>Systemd</strong> is the system and service manager for Linux.</p><p>It replaced the old <strong>SysVinit</strong> system, providing faster boot times and parallel service startup.</p><p>It manages:</p><ol><li><strong>Services (daemons)</strong></li><li><strong>System targets (like runlevels)</strong></li><li><strong>Logs (via journald)</strong></li><li><strong>Units (configuration files for services, sockets, devices, timers, etc.)</strong></li></ol><p>📂 Unit file locations:</p><ul><li>/etc/systemd/system/ → Local custom unit files</li><li>/usr/lib/systemd/system/ → Default unit files</li><li>/run/systemd/system/ → Runtime units</li></ul><h3>🔹 Managing Services with systemctl</h3><h3>Listing the services :</h3><p>1. Listing all loaded services (active and inactive):<br>To list all services that systemd has loaded, including those that are active, inactive, or have failed:</p><pre>systemctl list-units --type=service --all</pre><p>2. Listing only active and running services:</p><p>To specifically see services that are currently active and running:</p><pre>systemctl list-units --type=service --state=running</pre><p>3. Listing all installed service unit files:</p><p>To view all available service unit files, regardless of their current state (enabled, disabled, static):</p><pre>systemctl list-unit-files --type=service</pre><p>The <strong>systemctl</strong> command is your main tool for interacting with Systemd</p><p>👉 Start a service:</p><pre>sudo systemctl start sshd</pre><p>👉 Stop a service:</p><pre>sudo systemctl stop sshd</pre><p>👉 Restart a service:</p><pre>sudo systemctl restart sshd</pre><p>👉 Reload service without restart:</p><pre>sudo systemctl reload sshd</pre><p>🔹 Enable or Disable Services</p><p>Enable services to start automatically at boot, or disable them as needed.</p><p>👉 Enable service on boot:</p><pre>sudo systemctl enable sshd</pre><p>👉 Disable service:</p><pre>sudo systemctl disable sshd</pre><p>👉 Check if enabled:</p><pre>systemctl is-enabled sshd</pre><p>🔹 Checking Status and Logs</p><p>👉 Check service status:</p><pre>systemctl status sshd</pre><p>👉 View service logs with journalctl:</p><pre>journalctl -u sshd</pre><p>👉 Show last 50 logs:</p><pre>journalctl -u sshd -n 50</pre><p>Show logs since last boot:</p><pre>journalctl -u sshd -b</pre><h3>🔹 Practical Demo Examples</h3><p>Here are some <strong>real-life use cases</strong> to try:</p><ul><li>Start/stop <strong>Apache</strong> or <strong>Nginx</strong> service.</li><li>Enable <strong>SSH service</strong> at boot and check its status.</li><li>View logs of a service after restarting it.</li><li>Change default boot target between CLI and GUI.</li></ul><h3>🔹 Conclusion</h3><p>Systemd has become the <strong>backbone of modern Linux systems</strong>, giving administrators complete control over service management and system behavior.</p><p>By mastering commands like <strong>systemctl</strong> and <strong>journalctl</strong>, you can:<br> ✅ Start/stop/restart services easily<br> ✅ Enable/disable services on boot<br> ✅ Monitor logs and debug issues</p><p>🔥 <em>In my upcoming YouTube video, I’ll explain Systemd and Service Management with live demos. Stay tuned!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f29f5a10e95a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Linux Permissions & Ownership: A Complete Guide for Beginners and Professionals]]></title>
            <link>https://medium.com/@pankajchougale1008/mastering-linux-permissions-ownership-a-complete-guide-for-beginners-and-professionals-0c0327e80d2b?source=rss-cc7c7812fd2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c0327e80d2b</guid>
            <category><![CDATA[linux-file-permission]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <dc:creator><![CDATA[Pankajchougale]]></dc:creator>
            <pubDate>Fri, 15 Aug 2025 06:36:33 GMT</pubDate>
            <atom:updated>2025-08-15T06:36:33.361Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lwLX7vwPDaNtHYckIt-7gQ.png" /></figure><h3>Introduction</h3><p>In Linux, everything is a file — and every file has rules that determine <strong>who can read it, write to it, or execute it</strong>. These rules are called <strong>permissions</strong>, and they are one of the most important aspects of Linux security. Understanding how permissions and ownership work will help you manage your system securely and efficiently.</p><p>In this guide, we will explore <strong>file ownership</strong>, <strong>permissions</strong>, and <strong>advanced concepts</strong> like special bits, with <strong>practical examples</strong> so you can follow along.</p><h3>1. Understanding File Ownership</h3><p>Linux organizes access control based on three entities:</p><ul><li><strong>User (Owner)</strong> — The person who created the file.</li><li><strong>Group</strong> — A set of users with shared access rights.</li><li><strong>Others</strong> — All other users on the system.</li></ul><p>You can view file ownership with:</p><pre>ls -l</pre><p>Example output:</p><ul><li>rw-r — r — 1 pankaj developers 1024 Aug 14 file.txt</li></ul><p>Here:</p><ul><li><strong>pankaj</strong> = owner</li><li><strong>developers</strong> = group</li><li>-rw-r--r-- = permission bits</li></ul><h3>2. File Permission Types</h3><p>Each file or directory can have three types of permissions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*ASIj27AcEaIO4lg5BAAGjw.png" /></figure><h3>3. Representing Permissions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*4TI-W6Ztp_uW2C-OlC49sA.png" /></figure><p><strong>Symbolic representation</strong>:</p><pre>chmod u+x file.txt   # Add execute permission to owner<br>chmod g-w file.txt   # Remove write permission from group</pre><p><strong>Numeric (Octal) representation</strong>:</p><ul><li><strong>Read (r):</strong> 4</li><li><strong>Write (w):</strong> 2</li><li><strong>Execute (x):</strong> 1</li></ul><p>The numeric permission for each category (owner, group, others) is calculated by summing the values of the granted permissions. For example:</p><ul><li><strong>Read and Write:</strong> 4 (read) + 2 (write) = 6</li><li><strong>Read and Execute:</strong> 4 (read) + 1 (execute) = 5</li><li><strong>Read, Write, and Execute:</strong> 4 (read) + 2 (write) + 1 (execute) = 7</li></ul><p>Example:</p><pre>chmod 755 script.sh</pre><p>This means:</p><ul><li>Owner = rwx (7)</li><li>Group = r-x (5)</li><li>Others = r-x (5)</li></ul><h3>4. Changing Ownership</h3><p>In Linux, the ownership of files and directories is managed using the chown and chgrp commands.</p><p>1. Changing File Owner:</p><p>The chown command is used to change the owner of a file or directory.</p><pre>chown new_owner filename</pre><ul><li>new_owner: The username or UID of the new owner.</li><li>filename: The name of the file or directory whose ownership is to be changed.</li></ul><p>Example: To change the owner of report.txt to john:</p><pre>chown john report.txt</pre><p>2. Changing File Group:</p><p>The chgrp command is used to change the group ownership of a file or directory.</p><pre>chgrp new_group filename</pre><ul><li>new_group: The group name or GID of the new group.</li><li>filename: The name of the file or directory whose group ownership is to be changed.</li></ul><p>Example: To change the group of report.txt to developers:</p><pre>chgrp developers report.txt</pre><p>3. Changing Both Owner and Group Simultaneously:</p><p>The chown command can also be used to change both the owner and the group of a file or directory at once.</p><pre>chown new_owner:new_group filename</pre><ul><li>new_owner: The username or UID of the new owner.</li><li>new_group: The group name or GID of the new group.</li><li>filename: The name of the file or directory whose ownership is to be changed.</li></ul><p>Example: To change the owner of report.txt to john and the group to developers:</p><pre>chown john:developers report.txt</pre><p>4. Changing Ownership Recursively:</p><p>To apply ownership changes to all files and subdirectories within a directory, the -R (recursive) option can be used with chown.</p><pre>chown -R new_owner:new_group directory_name</pre><p>Example: To change the owner of /var/www/html to www-data and the group to www-data, including all its contents:</p><pre>chown -R www-data:www-data /var/www/html</pre><h3>Conclusion</h3><p>Mastering Linux permissions and ownership is crucial for <strong>system security</strong>, <strong>data protection</strong>, and <strong>multi-user collaboration</strong>.<br> Always follow these best practices:</p><ul><li>Grant <strong>minimum permissions necessary</strong>.</li><li>Avoid chmod 777 unless unavoidable.</li><li>Double-check changes with ls -l.</li></ul><p>By applying these principles, you’ll have complete control over <strong>who can access, modify, or execute files</strong> on your Linux system.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c0327e80d2b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering User and Group Management in Linux: A Practical Guide for Beginners]]></title>
            <link>https://medium.com/@pankajchougale1008/mastering-user-and-group-management-in-linux-a-practical-guide-for-beginners-3df6d5562b51?source=rss-cc7c7812fd2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/3df6d5562b51</guid>
            <dc:creator><![CDATA[Pankajchougale]]></dc:creator>
            <pubDate>Wed, 06 Aug 2025 12:43:54 GMT</pubDate>
            <atom:updated>2025-08-07T08:40:45.432Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g3LVYajP42IuLC-dxL2-ag.png" /></figure><p>Managing users and groups is a fundamental skill for every Linux administrator. In this article, we’ll break down the essential commands and concepts to help you create, modify, and manage users and groups efficiently on both Ubuntu and RHEL-based systems — complete with examples and best practices.</p><h3>📌 1. Understanding Users and Groups</h3><ul><li><strong>Users</strong>: Individuals who use the Linux system. Each user has a unique UID.</li><li><strong>Groups</strong>: A collection of users. Useful for setting permissions on files/folders for multiple users.</li></ul><h3>📂 <strong>2. Important Files</strong></h3><pre>| File           | Purpose                          |<br>| -------------- | -------------------------------- |<br>| `/etc/passwd`  | Stores user account information  |<br>| `/etc/shadow`  | Stores encrypted user passwords  |<br>| `/etc/group`   | Stores group information         |<br>| `/etc/gshadow` | Stores encrypted group passwords |</pre><h3>👤 <strong>3. User Management Commands</strong></h3><p>➤ Add a New User</p><ul><li>useradd [options] username: Creates a new user account. Use -m to create a home directory.</li></ul><pre># options :<br>-m or --create-home: # Creates the user&#39;s home directory if it does not already exist. Without this option, a home directory is not created by default.<br><br>-c # allows us to add comments <br><br>-d HOME_DIR or --home HOME_DIR: # Specifies a custom path for the user&#39;s home directory. This overrides the default location (usually /home/username).<br><br>-g GROUP or --gid GROUP: # Assigns the new user to an existing primary group, specified by its name or GID.<br><br>-G GROUP1,GROUP2,... or --groups GROUP1,GROUP2,...: # Adds the new user to one or more supplementary groups. Multiple groups can be specified, separated by commas.<br><br>-p PASSWORD or --password PASSWORD: #Sets an encrypted password for the new user. This method is generally not recommended for security reasons; it is better to set the password after user creation using the passwd command.</pre><ul><li>id username :Shows the details of user.</li><li>passwd username: Sets or changes the password for a user.</li><li>usermod [options] username: Modifies user account properties (e.g., home directory, primary group, secondary groups). Use -aG groupname to add a user to a secondary group.</li></ul><pre># options :<br>-d, --home HOME_DIR: # Changes the user&#39;s home directory to HOME_DIR.<br>ex: sudo usermod -d /home/newhome -m username<br><br>-g, --gid GROUP: # Changes the user&#39;s primary group to GROUP<br>ex: sudo usermod -g newgroup username<br><br>-G, --groups GROUP1[,GROUP2,...]: # Changes the user&#39;s supplementary groups. Use with -a to append.<br>ex: sudo usermod -G supplementarygroup username<br><br>-l, --login NEW_LOGIN: # Changes the user&#39;s login name (username).<br>ex: usermod -l new_username old_username<br><br>-L, --lock: # Locks the user account, disabling password-based login.<br>ex: sudo usermod -L username<br><br>-U, --unlock: # Unlocks a locked user account.<br>ex: sudo usermod -U username</pre><ul><li>userdel [options] username: Deletes a user account.</li></ul><pre># options :<br>-r or --remove: # This option removes the user&#39;s home directory and mail spool along with the user account. This is a common and often desired option for a complete user removal.<br>ex: sudo userdel -r username<br><br>-f or --force: # This option forces the removal of the user account, even if the user is currently logged in or if processes owned by the user are still running. It also forces the removal of the home directory and mail spool if -r is also specified, even if another user shares the home directory or the mail spool is not owned by the specified user. <br>ex: sudo userdel -f username</pre><h3>👥 <strong>4. Group Management Commands</strong></h3><pre>groupadd groupname # Creates a new group.<br><br>groupdel groupname # Deletes an empty group.<br><br>sudo groupmod [options] groupname # Modify Group details<br>ex: groupmod -n newname oldname # Renames the group<br></pre><h3>🔄 <strong>5. User-Group Mapping</strong></h3><pre>sudo usermod -aG groupname username # Add User to Group<br><br>sudo gpasswd -d username groupname # Remove User from Group<br><br>getent group groupname # View Group Members<br></pre><h3>👤 6. <strong>User and Group Management Difference in Ubuntu and RHEL</strong></h3><pre>| Task            | Ubuntu                        | CentOS                                       |<br>| --------------- | ----------------------------- | -------------------------------------------- |<br>| Add user        | `sudo adduser user1`          | `sudo adduser user1` or `sudo useradd user1` |<br>| Change password | `sudo passwd user1`           | `sudo passwd user1`                          |<br>| Add to group    | `sudo usermod -aG sudo user1` | `sudo usermod -aG wheel user1`               |</pre><p>🔸 In Ubuntu: sudo group gives admin rights<br>🔸 In CentOS: wheel group gives admin rights</p><h3>📌 Bonus Tips</h3><ul><li><strong>View currently logged-in users</strong>: who, w, users</li><li><strong>List all users</strong>: cut -d: -f1 /etc/passwd</li><li><strong>List all groups</strong>: cut -d: -f1 /etc/group</li><li><strong>Switch User</strong> su username</li><li><strong>Super User Access</strong> sudo su</li></ul><h3>✅ Conclusion:</h3><p>User and group management forms the backbone of Linux system security and organization. Whether you’re setting up a personal server or administering enterprise infrastructure, mastering these commands ensures better control, accountability, and efficiency.</p><p>Now that you’ve got a solid understanding, I’ve also created a step-by-step video tutorial to guide you through real-time implementation — check it out on my YouTube channel for hands-on practice!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3df6d5562b51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[20 Must-Know Linux Commands for Beginners (Ubuntu & RHEL)]]></title>
            <link>https://medium.com/@pankajchougale1008/20-must-know-linux-commands-for-beginners-ubuntu-rhel-646afa66d17b?source=rss-cc7c7812fd2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/646afa66d17b</guid>
            <dc:creator><![CDATA[Pankajchougale]]></dc:creator>
            <pubDate>Fri, 01 Aug 2025 16:26:34 GMT</pubDate>
            <atom:updated>2025-08-01T16:26:34.956Z</atom:updated>
            <content:encoded><![CDATA[<p>Want to start using Linux confidently?<br> In this beginner-friendly tutorial, we’ll go over the <strong>most commonly used Linux commands</strong> that will help you <strong>navigate, manage files, check system info, manage users, and more</strong>.</p><h4>🧰 <strong>Basic Linux Commands with Usage and Syntax</strong></h4><ol><li><strong>pwd</strong> – <em>Print Working Directory</em></li></ol><p><strong>Usage:</strong> Shows the current directory you’re working in.</p><p>Syntax:</p><pre>pwd</pre><p><strong>Example Output:</strong> /home/pankaj</p><h4>2. ls – List Directory Contents</h4><ul><li><strong>Usage:</strong> Lists files and directories.</li><li><strong>Syntax:</strong></li></ul><pre>ls [options] [directory]<br>ex: <br>ls -l /etc</pre><ol><li>ls -l : List current directory contents.</li><li>ls -a : This provides detailed information, including file permissions, number of links, owner, group, size, and modification date. List all files (including hidden files).</li><li>ls -lh : This displays all files, including those that start with a dot (.), which are typically hidden by default. Human-readable sizes.</li><li>ls -r : This lists only directories within the current working directory. reverse order.</li><li>This lists the contents in reverse alphabetical order.</li></ol><h4>3. cd – Change Directory</h4><ul><li><strong>Usage:</strong> Move between directories.</li></ul><p>Syntax:</p><pre>cd [directory]</pre><p>Example:</p><pre>cd /var/log</pre><p>4. <strong>touch</strong> – <em>Create Empty Files</em></p><p><strong>Usage:</strong> Create a new empty file.</p><p><strong>Syntax:</strong></p><pre>touch filename.txt</pre><p>5. <strong>mkdir</strong> – <em>Make Directory</em></p><p><strong>Usage:</strong> Creates a new directory.</p><p>Syntax:</p><pre>mkdir foldername</pre><h4>6. rm – Remove Files or Directories</h4><p><strong>Usage:</strong> Deletes files or directories.</p><p>Syntax :</p><pre>rm filename.txt<br>rm -r foldername/ # remove all the files inside the folder<br>rm -rf filename.txt # force remove</pre><h4>7. cp – Copy Files or Directories</h4><p><strong>Usage:</strong> Copies files and folders.</p><p><strong>Syntax:</strong></p><pre>cp source.txt destination.txt<br>cp -r folder1/ folder2/</pre><h4>8. mv – Move or Rename Files</h4><p><strong>Usage:</strong> Move or rename files.</p><p><strong>Syntax:</strong></p><pre>mv oldname.txt newname.txt<br>mv file.txt /home/pankaj/</pre><h4>9. cat – View File Contents</h4><p><strong>Usage:</strong> Displays file contents.</p><p><strong>Syntax:</strong></p><pre>cat filename.txt</pre><h4>10. nano, vi, or vim – Edit Text Files</h4><p><strong>Usage:</strong> Opens the text editor in terminal.</p><p><strong>Syntax:</strong></p><pre>nano filename.txt<br>vi filename.txt</pre><h4>11. chmod – Change Permissions</h4><p><strong>Usage:</strong> Modifies file permissions.</p><p><strong>Syntax:</strong></p><pre>chmod 755 script.sh</pre><h4>13. df -h – Disk Space Usage</h4><p><strong>Usage:</strong> Shows disk usage in human-readable form.</p><p><strong>Syntax:</strong></p><pre>df -h</pre><h4>14. top / htop – Monitor System Processes</h4><p><strong>Usage:</strong> See real-time system usage.</p><p><strong>Syntax:</strong></p><pre>top<br>htop  # If installed</pre><h4>15. ps – List Running Processes</h4><p><strong>Usage:</strong> Show currently running processes.</p><p><strong>Syntax:</strong></p><pre>ps aux | grep processname</pre><h4>16. kill / killall – Terminate Processes</h4><p><strong>Usage:</strong> Kill a process by PID or name.</p><p><strong>Syntax:</strong></p><pre>kill 1234<br>killall firefox</pre><h4>17. sudo – Run as Superuser</h4><p><strong>Usage:</strong> Executes commands with root privileges.</p><p><strong>Syntax:</strong></p><pre>sudo apt update</pre><h4>18. apt / yum / dnf – Install Packages</h4><p><strong>Usage:</strong> Install, remove, or update software.</p><p><strong>Syntax (Ubuntu):</strong></p><pre>sudo apt install git</pre><p>Syntax (RHEL/CentOS):</p><pre>sudo yum install git</pre><h4>19. man – Manual Pages</h4><p><strong>Usage:</strong> Get help on commands.</p><p><strong>Syntax:</strong></p><pre>man ls</pre><h4>20. history – Show Command History</h4><p><strong>Usage:</strong> Lists past commands used.</p><p><strong>Syntax:</strong></p><pre>history</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=646afa66d17b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Add an SSL Certificate to Your Metabase URL]]></title>
            <link>https://medium.com/@pankajchougale1008/how-to-add-an-ssl-certificate-to-your-metabase-url-c7fb64fd16a3?source=rss-cc7c7812fd2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7fb64fd16a3</guid>
            <dc:creator><![CDATA[Pankajchougale]]></dc:creator>
            <pubDate>Tue, 03 Jun 2025 11:24:49 GMT</pubDate>
            <atom:updated>2025-06-03T11:24:49.671Z</atom:updated>
            <content:encoded><![CDATA[<p>This guide helps you secure your Metabase installation with HTTPS using a free SSL certificate from <strong>Let’s Encrypt</strong> and <strong>Nginx</strong> as a reverse proxy.</p><p><strong>✅ Prerequisites</strong></p><ul><li>A domain name (e.g., metabase.example.com) pointing to your server’s public IP.</li><li>Metabase running on port 3000.</li><li>Nginx installed on the server.</li><li>certbot and python3-certbot-nginx installed for generating the SSL certificate.</li></ul><p><strong>Step 1: Install Certbot</strong></p><p>sudo apt update</p><p>sudo apt install certbot python3-certbot-nginx -y</p><p><strong>Step 2: Configure Nginx Reverse Proxy</strong></p><p>Create a config file for your Metabase domain:</p><p>sudo nano /etc/nginx/sites-available/metabase</p><p>Paste the following (replace metabase.example.com with your domain):</p><p>server {</p><p>listen 80;</p><p>server_name metabase.example.com;</p><p>location / {</p><p>proxy_pass <a href="http://localhost:3000/;">http://localhost:3000/;</a></p><p>proxy_set_header Host $host;</p><p>proxy_set_header X-Real-IP $remote_addr;</p><p>proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;</p><p>proxy_set_header X-Forwarded-Proto $scheme;</p><p>}</p><p>}</p><p>Enable the configuration:</p><p>sudo ln -s /etc/nginx/sites-available/metabase /etc/nginx/sites-enabled/</p><p>sudo nginx -t</p><p>sudo systemctl restart nginx</p><p><strong>Step 3: Obtain SSL Certificate</strong></p><p>sudo certbot — nginx -d metabase.example.com</p><p>Follow the prompts. When asked, choose the option to <strong>redirect HTTP to HTTPS</strong>.</p><p><strong>Step 4: Auto-Renew SSL</strong></p><p>Let’s Encrypt certificates are valid for 90 days. Set up auto-renewal with:</p><p>sudo crontab -e</p><p>Add this line to renew daily at 2:30 AM:</p><p>30 2 * * * /usr/bin/certbot renew — quiet</p><p><strong>✅ Done!</strong></p><p>Now you can access Metabase securely at:</p><p><a href="https://metabase.example.com/">https://metabase.example.com</a></p><p><strong>Optional: Firewall Rules</strong></p><p>If you’re using ufw, allow Nginx Full:</p><p>sudo ufw allow ‘Nginx Full’</p><p>sudo ufw delete allow ‘Nginx HTTP’</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7fb64fd16a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>