<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shiva Krishna beepeta</title>
    <description>The latest articles on DEV Community by Shiva Krishna beepeta (@shiva_beepeta).</description>
    <link>https://dev.to/shiva_beepeta</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3344616%2F48e6e622-fcd6-4fd9-ad5f-41bbe69c818b.png</url>
      <title>DEV Community: Shiva Krishna beepeta</title>
      <link>https://dev.to/shiva_beepeta</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shiva_beepeta"/>
    <language>en</language>
    <item>
      <title>Beyond Basics: Unlock the power of Advanced linux commands</title>
      <dc:creator>Shiva Krishna beepeta</dc:creator>
      <pubDate>Thu, 17 Jul 2025 05:32:33 +0000</pubDate>
      <link>https://dev.to/shiva_beepeta/beyond-basics-unlock-the-power-of-advanced-linux-commands-1mk4</link>
      <guid>https://dev.to/shiva_beepeta/beyond-basics-unlock-the-power-of-advanced-linux-commands-1mk4</guid>
      <description>&lt;p&gt;🚀 Advanced Linux Commands Every Power User Should Know&lt;/p&gt;

&lt;p&gt;Intro:&lt;/p&gt;

&lt;p&gt;Linux is powerful, and once you move beyond the basics, a whole new world of productivity opens up. This post dives into advanced Linux commands and pro tips to help you work faster, smarter, and more efficiently on the terminal.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔹 1. awk — Text Processing and Reporting
&lt;/h2&gt;

&lt;p&gt;Awk is a scripting language used for manipulating data and generating reports. The awk command programming language requires no compiling and allows the user to use variables, numeric functions, string functions, and logical operators.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;awk '{print $1, $3}' file.txt
awk options 'selection _criteria {action }' input-file &amp;gt; output-file
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Flags/options with awk command:-&lt;/p&gt;

&lt;p&gt;-F        Sets a custom field separator&lt;br&gt;
-f        Reads awk program from a file&lt;br&gt;
'{}'          Encloses action to take on match&lt;/p&gt;

&lt;p&gt;Use Case: Extract specific columns from structured files.&lt;/p&gt;


&lt;h2&gt;
  
  
  🔹 2. sed — Stream Editor for Modifying Files
&lt;/h2&gt;

&lt;p&gt;The SED command (short for Stream Editor) is one of the most powerful tools for text processing in Linux and Unix systems. It's commonly used for tasks like search and replace, text transformation, and stream editing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The basic syntax for using the SED command in Linux is:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sed [OPTIONS] 'COMMAND' [INPUTFILE...]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;where,&lt;/p&gt;

&lt;p&gt;'OPTIONS': These are optional flags that modify the behaviour of the sed command.&lt;br&gt;
'COMMAND': This defines the command or sequence of commands to execute on the input file.&lt;br&gt;
'INPUTFILE': One or more input files to be processed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;EXAMPLE:-&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sed 's/unix/linux/' geekfile.txt

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here the "s" specifies the substitution operation. The "/" are delimiters. The "unix" is the search pattern and the "linux" is the replacement string. By default, the sed command replaces the first occurrence of the pattern in each line and it won't replace the second, third...occurrence in the line.&lt;/p&gt;

&lt;p&gt;To replace only the nth occurance of a word in a line, use the following syntax:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;gt;  sed 's/old_word/new_word/n' filename&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
Use Case: Find and replace text in-place across files.&lt;/p&gt;


&lt;h2&gt;
  
  
  🔹 3. strace — Trace System Calls
&lt;/h2&gt;

&lt;p&gt;'strace' is a powerful tool for monitoring and diagnosing processes in Linux. It is primarily used for debugging programs, troubleshooting issues, intercepting and recording system calls, and tracing running processes.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;strace -p &amp;lt;PID&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use Case: Debug processes or binaries by inspecting their system calls.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔹 4. lsof — List Open Files
&lt;/h2&gt;

&lt;p&gt;In the world of Linux, understanding and managing open files is crucial for system administrators and users alike. The Linux operating system provides a powerful utility called lsof (List Open Files) that allows users to gain insights into the files currently open on their system&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;lsof
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use Case: Identify which process is using a port or file.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔹 5. watch — Repeat Commands Every N Seconds
&lt;/h2&gt;

&lt;p&gt;The 'watch' command in Linux is a powerful utility that allows you to execute a command periodically, displaying its output in fullscreen mode.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;watch -n 2 df -h

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use Case: Monitor disk usage or other outputs in real-time.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔹 6. rsync — Efficient File Transfer
&lt;/h2&gt;

&lt;p&gt;rsync or remote synchronization is a software utility for Unix-Like systems that efficiently sync files and directories between two hosts or machines.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rsync -avz /src/ user@host:/dest/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use Case: Fast, incremental backups or file transfers.&lt;/p&gt;




&lt;p&gt;🧠 Bonus Tips:&lt;/p&gt;

&lt;p&gt;Use alias to speed up repeated commands.&lt;/p&gt;

&lt;p&gt;Combine find, xargs, and grep for powerful one-liners.&lt;/p&gt;

&lt;p&gt;Learn bash functions to automate routine terminal tasks.&lt;/p&gt;




&lt;p&gt;📌 Final Thoughts&lt;/p&gt;

&lt;p&gt;Mastering these commands can dramatically improve your Linux workflow. Whether you're managing servers, writing scripts, or troubleshooting systems, these tools give you the power and flexibility that make Linux truly shine.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>learning</category>
      <category>devops</category>
      <category>devto</category>
    </item>
    <item>
      <title>Linux cheat sheet for day-to-day actions...!!!</title>
      <dc:creator>Shiva Krishna beepeta</dc:creator>
      <pubDate>Sun, 13 Jul 2025 10:06:38 +0000</pubDate>
      <link>https://dev.to/shiva_beepeta/linux-cheat-sheet-for-day-to-day-actions-5507</link>
      <guid>https://dev.to/shiva_beepeta/linux-cheat-sheet-for-day-to-day-actions-5507</guid>
      <description>&lt;p&gt;Linux is a powerful operating system that become much more manageable when you know your way around the terminal. This cheat sheet will make your day-to-day easier.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Files &amp;amp; Dir Navigation:-&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;pwd&lt;/strong&gt;     -    prints current working directory&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ls&lt;/strong&gt;      -    list all files and directories&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;cd&lt;/strong&gt;      -    change directory&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;mkdir&lt;/strong&gt;   -    create directory&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;rmdir&lt;/strong&gt;   -    remove directory&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;File Operations:-&lt;/strong&gt; &lt;/p&gt;

&lt;blockquote&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;touch filename&lt;/strong&gt;   - create empty file&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;cp file1 file2&lt;/strong&gt;   - copy file.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;mv old new&lt;/strong&gt;       - move or rename.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;rm file&lt;/strong&gt;          - delete file&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;cat file&lt;/strong&gt;         - view the content of file&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;less file&lt;/strong&gt;        - view file one page at a time&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;head -n 10  file&lt;/strong&gt; - show first 10 lines. modify 10 in command to get required number of lines.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;tail -n 10 file&lt;/strong&gt;  - show last 10 lines.&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Search &amp;amp; Filter:-&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;find . -name ".txt"&lt;/strong&gt;     - find files by name&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;grep "Word" filename&lt;/strong&gt;    - search for the key word in a file&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;grep -r "word" dir/&lt;/strong&gt;     - search recursively for a word in directory&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;System Info and Monitoring:-&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;uname -a&lt;/strong&gt;             - kernel and system info&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;df -h&lt;/strong&gt;                - disk space usage&lt;/li&gt;
&lt;li&gt;*&lt;em&gt;du -sh * *&lt;/em&gt;            - directory size summary&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;top&lt;/strong&gt;                  - live process&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;free -h&lt;/strong&gt;              - memory usage&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;uptime&lt;/strong&gt;               - system running time&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Networking commands:-&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;ip -a&lt;/strong&gt;                    - show ip address&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ping 0.0.0.0&lt;/strong&gt;             - pings the ip address&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;curl &lt;a href="https://sample.com" rel="noopener noreferrer"&gt;https://sample.com&lt;/a&gt;&lt;/strong&gt;  - make http requests&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;wget URL&lt;/strong&gt;                 - downloads files&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;netstat -tunlp&lt;/strong&gt;           - show open ports and services&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ss -tunl&lt;/strong&gt;                 - display listening ports&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;This linux cheat sheet is a starting point, but real understanding comes from practice. bookmark this page or print out and stick at your desk. stay tuned for more information.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>linux</category>
      <category>devops</category>
      <category>learning</category>
      <category>bash</category>
    </item>
  </channel>
</rss>
