<?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: Petar Ćevriz</title>
    <description>The latest articles on DEV Community by Petar Ćevriz (@prozdrljivac).</description>
    <link>https://dev.to/prozdrljivac</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%2F534608%2F74ef0b32-4ffc-42fc-8053-50185db7865c.JPG</url>
      <title>DEV Community: Petar Ćevriz</title>
      <link>https://dev.to/prozdrljivac</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/prozdrljivac"/>
    <language>en</language>
    <item>
      <title>5 Commands for Web Developers that just started using Linux</title>
      <dc:creator>Petar Ćevriz</dc:creator>
      <pubDate>Sun, 06 Oct 2024 15:58:29 +0000</pubDate>
      <link>https://dev.to/prozdrljivac/5-commands-for-web-developers-that-just-started-using-linux-6io</link>
      <guid>https://dev.to/prozdrljivac/5-commands-for-web-developers-that-just-started-using-linux-6io</guid>
      <description>&lt;p&gt;As a Web Developer, it doesn't matter if you are a generalist or a specialist, one way or the other you will find yourself working with a server and most of today’s servers run on Linux.&lt;/p&gt;

&lt;p&gt;Linux can be intimidating for beginners, especially when you transition from a colorful GUI-based system where everything was, more or less, done with one click to a black screen with a blinking line staring at you. When I started working with Linux, truth be told I felt lost. Where to begin? Where am I? What to do? How to do it? These were some of the questions that popped into my mind while looking at that blinking white line.&lt;/p&gt;

&lt;p&gt;Drawing inspiration from answering these questions and hope that this will be helpful to other developers who find themselves in the same spot, I have prepared 5 commands that in my opinion every Web Developer should know. These commands will help you navigate the Linux file system, find the right commands for your task and understand their functionalities, making your journey into Linux more manageable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Commands
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;pwd - print working directory&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you are lost, the first thing you want to know is where you are. By entering &lt;code&gt;pwd&lt;/code&gt; into the terminal, as an output we get the full pathname of the current directory we are in.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frdlo8dgid1v4ue28xuwd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frdlo8dgid1v4ue28xuwd.png" alt="Terminal showing output of pwd command" width="657" height="120"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;ls - list&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Okay, we now know where we are, next thing to know is what is around us. By entering &lt;code&gt;ls&lt;/code&gt; into the terminal we get a list of directories and files that are in the working directory.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiq8avaj7kp7xqxvpssh2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiq8avaj7kp7xqxvpssh2.png" alt="Terminal showing output of ls command" width="800" height="150"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;cd - change directory&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Now that we know where we are and what is around us it is useful to know how to move around. Change directory command allows us just that. By entering &lt;code&gt;cd &amp;lt;dir-path&amp;gt;&lt;/code&gt; we move to the desired directory. Let’s say we want to move to the &lt;strong&gt;&lt;em&gt;Downloads&lt;/em&gt;&lt;/strong&gt; directory. By entering &lt;code&gt;cd Downloads&lt;/code&gt; we go from &lt;strong&gt;&lt;em&gt;/home/username&lt;/em&gt;&lt;/strong&gt; to &lt;strong&gt;&lt;em&gt;/home/username/Downloads&lt;/em&gt;&lt;/strong&gt;. To double check this we can use the previously learned command &lt;code&gt;pwd&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6ppcm68gy3o320iygoc1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6ppcm68gy3o320iygoc1.png" alt="Terminal showing output of cd command in first line and output of pwd command in the second line" width="576" height="124"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;apropos&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;As we said in the beginning, there are a lot of commands that you need to remember when working with Linux and as someone who just started that can look scary. This command makes that burden a little easier to bear. If you have a general idea what you want to do but don’t know the exact command, &lt;code&gt;apropos&lt;/code&gt; can help you search for it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frmihr35yjv7cxxs97qa6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frmihr35yjv7cxxs97qa6.png" alt="Terminal showing output of apropos command" width="800" height="830"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;man - manual&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Cool, we can find what command to use for our desired action. Now we want to learn more about it, what it does, what options does it support. By entering &lt;code&gt;man &amp;lt;name-of-the-command&amp;gt;&lt;/code&gt;, we get a manual for the desired command with all of the necessary information. The command I was looking for was &lt;strong&gt;&lt;em&gt;mkdir&lt;/em&gt;&lt;/strong&gt;, so I will read more about it by entering command &lt;code&gt;man mkdir&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpdexndfahkmjfjrbka2y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpdexndfahkmjfjrbka2y.png" alt="Terminal showing output of man command" width="800" height="438"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;p&gt;In this blog we went over 5 Linux commands that in my opinion every Web Developer that has just started with Linux should know. We didn’t go over the options that each of the commands provides because I wanted to keep this as simple as possible but I do encourage you the reader to use the &lt;code&gt;man&lt;/code&gt; command and go over some of the options for these commands and try them out.&lt;/p&gt;

&lt;p&gt;By knowing these 5 commands, the developer is able to find his way around the server, research and build upon their knowledge of existing commands without leaving the terminal. Naturally not everything can be learned from the terminal so I do advise that you learn more by browsing the web, reading more about the topic you want and most important of all, applying what you have learned.&lt;/p&gt;

&lt;p&gt;I hope you found this article helpful, wish you all the best and until the next one.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
