<?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: Aka</title>
    <description>The latest articles on DEV Community by Aka (@akaiissen).</description>
    <link>https://dev.to/akaiissen</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%2F3925590%2Fd899690d-e3a9-4a1f-824e-8a693ea1acb6.jpg</url>
      <title>DEV Community: Aka</title>
      <link>https://dev.to/akaiissen</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/akaiissen"/>
    <language>en</language>
    <item>
      <title>Linux Essentials</title>
      <dc:creator>Aka</dc:creator>
      <pubDate>Mon, 11 May 2026 19:46:00 +0000</pubDate>
      <link>https://dev.to/akaiissen/linux-essentials-2898</link>
      <guid>https://dev.to/akaiissen/linux-essentials-2898</guid>
      <description>&lt;h3&gt;
  
  
  What is Linux?
&lt;/h3&gt;

&lt;p&gt;Linux is an Operation System (just like Mac OS or Windows). It is free and open-source which means you can contribute to it. (Yaaay ^^)&lt;/p&gt;




&lt;h3&gt;
  
  
  Linux has distributions. But what is a Linux Distribution?
&lt;/h3&gt;

&lt;p&gt;A Linux distribution is an operating system built on the Linux kernel. Think of them as different flavors in an ice cream truck. You can choose the one that suits your taste.&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%2Fwb6lhuqqod6umhvxynxg.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%2Fwb6lhuqqod6umhvxynxg.png" alt="A Truck, full of linux distros" width="800" height="478"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Now that we mentioned it, what is the Kernel?
&lt;/h3&gt;

&lt;p&gt;The kernel is the core part of the operating system. It acts as a bridge between hardware and software, managing communication between them.&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%2Fbjr6rl3wxdhpukaahnpk.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%2Fbjr6rl3wxdhpukaahnpk.png" alt="software-kernel-hardware" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  In Linux, we can interact with the operating system in two ways:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;GUI&lt;/strong&gt; is where we use the mouse to click on buttons, icons (and etc.) to complete tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CLI&lt;/strong&gt; is where we type commands in the terminal to perform tasks.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now, hopefully, assuming most of us already know how to use the GUI, we can move on to learning…&lt;/p&gt;

&lt;h3&gt;
  
  
  …Linux commands.
&lt;/h3&gt;

&lt;p&gt;Let`s start with the things we already learned, such as the kernel.&lt;/p&gt;




&lt;h3&gt;
  
  
  Command: &lt;code&gt;Uname&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;For getting information about our system, we have the command &lt;code&gt;uname&lt;/code&gt;. It prints kernel name, version, architecture, and hostname.&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%2Fqms3u5z0p63r5gxe8as5.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%2Fqms3u5z0p63r5gxe8as5.png" alt="uname" width="800" height="94"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are a bunch of useful commands related to the system.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;uptime&lt;/code&gt; shows how long the system has been running.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;whoami&lt;/code&gt; shows our current user.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;top shows&lt;/code&gt;running processes and system usage.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;htop&lt;/code&gt; is improved version of top.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;free -h&lt;/code&gt; shows memory usage.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;df -h&lt;/code&gt; shows disk space usage.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Command: &lt;code&gt;hostname&lt;/code&gt;
&lt;/h3&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%2Fcxmo76084e788uy8jdyu.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%2Fcxmo76084e788uy8jdyu.png" alt="hostname" width="184" height="59"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If it is not already obvious from the command itself, this is for checking our hostname (which is ubuntu). But how can we change the hostname? We can do it with &lt;code&gt;sudo hostnamectl set-hostname new-hostname&lt;/code&gt; command. Make sure to use sudo if you are not already root.&lt;/p&gt;

&lt;h3&gt;
  
  
  Now, what is sudo and why do we need it?
&lt;/h3&gt;

&lt;p&gt;sudo means we are running a command with root access. In Linux (unlike win admin), root is the main user with full control over the system and can do literally anything. So when we put sudo in front of a command, we are running that command with root privileges for that moment.&lt;/p&gt;




&lt;h3&gt;
  
  
  Command: &lt;code&gt;pwd&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Now let`s see our path by pwd command.&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%2Frschfp061dia20b1wtz8.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%2Frschfp061dia20b1wtz8.png" alt="pwd" width="143" height="32"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Since we talk about paths. It is good to know about two types of paths:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Absolute Path and Relative Path&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An absolute path is the full location of a file or directory, starting from the root directory &lt;code&gt;/&lt;/code&gt;. It never changes because this path works from anywhere on the system.&lt;/p&gt;

&lt;p&gt;A relative path shows the location of a file or directory based on the current directory, not from the root &lt;code&gt;/&lt;/code&gt;. If you change your location, the path will change.&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%2F4c3e7lbkj13hrts9zp9m.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%2F4c3e7lbkj13hrts9zp9m.png" alt="Alice-in-Wonderland" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We can think of it as an address on a piece of paper. Let’s say we want to find the way from our home to the rabbit hole. The full (absolute) path is &lt;strong&gt;&lt;em&gt;/home/farm/garden/tree/rabbit-hole&lt;/em&gt;&lt;/strong&gt;. No matter where we are this won’t change.&lt;/p&gt;

&lt;p&gt;But now imagine we are already somewhere inside the farm. We ask a caterpillar if he knows the way. He says “&lt;strong&gt;&lt;em&gt;garden/tree/rabbit-hole&lt;/em&gt;&lt;/strong&gt;”. This is a relative path.&lt;/p&gt;

&lt;p&gt;We walk some more and reach the garden. Then we ask the Cheshire Cat again, and he says “&lt;strong&gt;&lt;em&gt;tree/rabbit-hole&lt;/em&gt;&lt;/strong&gt;”. Now the path has changed because we are in the garden. This is how relative path works. It depends on our current location (where we are now).&lt;/p&gt;




&lt;h3&gt;
  
  
  Command: &lt;code&gt;mkdir&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;We can create a folder there. Type &lt;code&gt;mkdir directory_name&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%2Fyuy5z2b80d88dliz2qt2.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%2Fyuy5z2b80d88dliz2qt2.png" alt="mkdir" width="277" height="40"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To delete the folder: &lt;code&gt;rmdir example_folder&lt;/code&gt; or &lt;code&gt;rm -rf example_folder&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%2Ftehtb0hrzh48nqs1opvd.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%2Ftehtb0hrzh48nqs1opvd.png" alt="rmdir" width="275" height="119"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Command: &lt;code&gt;ls&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;How to see what we created? &lt;code&gt;ls&lt;/code&gt; command lists files in a 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%2F88k06nz9wd86nbtna5ht.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%2F88k06nz9wd86nbtna5ht.png" alt="ls" width="271" height="78"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can add some flags (options) to the command ls. Such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;ls -a&lt;/code&gt; (show all files including hidden ones)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ls -l&lt;/code&gt; (long format listing)&lt;/li&gt;
&lt;/ul&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%2Fqka34dl67yuzwfudbp48.jpg" 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%2Fqka34dl67yuzwfudbp48.jpg" alt="ls -a" width="745" height="103"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Command: &lt;code&gt;alias&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;How about we try to command &lt;code&gt;ll&lt;/code&gt;? Normally, it is alias for ls -l, but since our Linux is Ubuntu default, it is &lt;code&gt;ls -alf&lt;/code&gt; (which includes all hidden files, long detailed formats and symbols like &lt;code&gt;/&lt;/code&gt; for directories).&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%2Flzz3antdcz8ea3l2j6wh.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%2Flzz3antdcz8ea3l2j6wh.png" alt="alias" width="462" height="221"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So, what is alias? It is a shortcut for a longer command. Such as ll. The structure is simple. &lt;code&gt;alias shortcut='full_command'&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%2Fnj5e3krzk3vv65q25rk8.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%2Fnj5e3krzk3vv65q25rk8.png" alt="example-alias" width="388" height="98"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Command: &lt;code&gt;cd&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;In Linux we have &lt;code&gt;cd&lt;/code&gt; command for navigation.&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%2F43py7sg18orl5e2q646f.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%2F43py7sg18orl5e2q646f.png" alt="cd" width="257" height="36"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We used cd to move to the example_directory. In order to return, we type cd .. command.&lt;/p&gt;




&lt;h3&gt;
  
  
  Command: &lt;code&gt;touch&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Let's say we want to create a file in this directory. There are several ways to do this basic task, however we will start with the easiest: The command &lt;code&gt;touch&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%2Ft5ip20rf68qrqm14bitt.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%2Ft5ip20rf68qrqm14bitt.png" alt="touch" width="369" height="53"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To delete the file: &lt;code&gt;rm file_name.txt&lt;/code&gt; or &lt;code&gt;rm -rf file_name.txt&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%2Fllav9my1f4wajw99g6vp.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%2Fllav9my1f4wajw99g6vp.png" alt="rm1" width="247" height="128"&gt;&lt;/a&gt;&lt;br&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%2Fdn88eh9y5rmd72quh5qn.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%2Fdn88eh9y5rmd72quh5qn.png" alt="rm2" width="260" height="157"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Warning: &lt;code&gt;rm -rf /*&lt;/code&gt; deletes your entire system.&lt;/p&gt;




&lt;h3&gt;
  
  
  Text editors
&lt;/h3&gt;

&lt;p&gt;The other way to create a file is using one of the text editors in Linux. &lt;code&gt;Nano&lt;/code&gt;, &lt;code&gt;Vim&lt;/code&gt; (Vi Improved) or &lt;code&gt;Vi&lt;/code&gt; (old).&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%2F6do59pjua23itl5sn9w1.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%2F6do59pjua23itl5sn9w1.png" alt="text-editor1" width="378" height="55"&gt;&lt;/a&gt;&lt;br&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%2Fk6qfrz22elb44udaz5va.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%2Fk6qfrz22elb44udaz5va.png" alt="text-editor2" width="527" height="103"&gt;&lt;/a&gt;&lt;br&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%2F0rpl53w9zvr7nydi5bvd.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%2F0rpl53w9zvr7nydi5bvd.png" alt="text-editor3" width="345" height="73"&gt;&lt;/a&gt;&lt;br&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%2Fjoi0x878clj1a9aupcgw.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%2Fjoi0x878clj1a9aupcgw.png" alt="text-editor4" width="441" height="592"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Command: &lt;code&gt;Cat&lt;/code&gt; ฅ^&amp;gt;⩊&amp;lt;^ ฅ
&lt;/h3&gt;

&lt;p&gt;We can also check out what is inside our files by cat command.&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%2Fmkufdrxuci9ryx0a41om.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%2Fmkufdrxuci9ryx0a41om.png" alt="cat" width="359" height="101"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With &lt;code&gt;cat&lt;/code&gt; command we can more than that. What if we check a system file that contains details about our Linux distro?&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%2Fbv40j31skyvxoky31kwd.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%2Fbv40j31skyvxoky31kwd.png" alt="info-distro" width="800" height="401"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We can also create a file with &lt;code&gt;cat&lt;/code&gt; command and &lt;code&gt;&amp;gt;&lt;/code&gt; symbol.&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%2Fi96rtlr82xnucxug3lsk.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%2Fi96rtlr82xnucxug3lsk.png" alt="create-file" width="377" height="195"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Command: &lt;code&gt;grep&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;If we want to search for a specific word inside a file, we can use the grep command.&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%2Fv1lxrhhec5f6osqkzfvn.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%2Fv1lxrhhec5f6osqkzfvn.png" alt="grep" width="309" height="54"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Another way to use &lt;code&gt;grep&lt;/code&gt; is by combining it with the &lt;code&gt;cat&lt;/code&gt; command.&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%2Fcyw999vn8prqgmspvm1q.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%2Fcyw999vn8prqgmspvm1q.png" alt="grep-cat" width="280" height="37"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;|&lt;/code&gt; (pipe) operator allows us to pass the output of one command (&lt;code&gt;cat&lt;/code&gt;) as input to another command (&lt;code&gt;grep&lt;/code&gt;).&lt;/p&gt;




&lt;h3&gt;
  
  
  Command: &lt;code&gt;echo&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Another way of creating a file is using echo command.&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%2F022kst2iwmj59s75i19n.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%2F022kst2iwmj59s75i19n.png" alt="echo" width="668" height="144"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Normally, &lt;code&gt;echo&lt;/code&gt; will print text to the terminal.&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%2Ftm48o1szm93fq5qeg3c9.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%2Ftm48o1szm93fq5qeg3c9.png" alt="print-echo" width="354" height="60"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We can also print variables but do not forget the symbol &lt;code&gt;$&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%2Fqnkmuwb50424t7g8wpbt.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%2Fqnkmuwb50424t7g8wpbt.png" alt="symbol" width="373" height="74"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Lastly, we have &lt;code&gt;cp&lt;/code&gt; and &lt;code&gt;mv&lt;/code&gt; commands.
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;cp&lt;/code&gt; command copies a file or directory to another location.&lt;/li&gt;
&lt;/ol&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%2Fm0df6pq9tojvtbyo0goj.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%2Fm0df6pq9tojvtbyo0goj.png" alt="cp1" width="403" height="297"&gt;&lt;/a&gt;&lt;br&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%2Fehjem0vuqfibbktdlfix.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%2Fehjem0vuqfibbktdlfix.png" alt="cp2" width="332" height="67"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;mv&lt;/code&gt; changes the location of a file or directory.&lt;/li&gt;
&lt;/ol&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%2F9k51gi6xip8hob9wiuwc.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%2F9k51gi6xip8hob9wiuwc.png" alt="mv" width="452" height="229"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;A question for you!!! (〃￣ω￣〃ゞ&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;What is the difference between &lt;code&gt;mv&lt;/code&gt; and &lt;code&gt;cp&lt;/code&gt; that you have encountered?&lt;/em&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>linux</category>
      <category>devops</category>
      <category>cybersecurity</category>
    </item>
  </channel>
</rss>
