<?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: Sudip Roy</title>
    <description>The latest articles on DEV Community by Sudip Roy (@imsudiproy).</description>
    <link>https://dev.to/imsudiproy</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%2F528811%2F3aa14320-63b6-4f09-ba4f-973b245d01ed.jpeg</url>
      <title>DEV Community: Sudip Roy</title>
      <link>https://dev.to/imsudiproy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/imsudiproy"/>
    <language>en</language>
    <item>
      <title>LINUX series (Part 1)</title>
      <dc:creator>Sudip Roy</dc:creator>
      <pubDate>Tue, 11 Oct 2022 15:19:20 +0000</pubDate>
      <link>https://dev.to/imsudiproy/introduction-to-unix-part-1-41p</link>
      <guid>https://dev.to/imsudiproy/introduction-to-unix-part-1-41p</guid>
      <description>&lt;h2&gt;
  
  
  Introduction to UNIX
&lt;/h2&gt;

&lt;p&gt;UNIX is an operating system developed by AT&amp;amp;T in 1969. UNIX is a multi-user, multi-process operating system.&lt;/p&gt;

&lt;p&gt;Primarily there are two base versions of UNIX available: &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;AT&amp;amp;T System V&lt;/li&gt;
&lt;li&gt;Berkeley Software Distribution (BSD).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Most of the UNIX versions are built using one of these versions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Variants of UNIX
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Sun Solar UNIX&lt;/li&gt;
&lt;li&gt;IBM AIX&lt;/li&gt;
&lt;li&gt;Hewlett Packard HP-UX&lt;/li&gt;
&lt;li&gt;Red Hat Enterprise LINUX&lt;/li&gt;
&lt;li&gt;Fedora Core&lt;/li&gt;
&lt;li&gt;SUSE Linux&lt;/li&gt;
&lt;li&gt;Debian OS X&lt;/li&gt;
&lt;li&gt;Mac OS X&lt;/li&gt;
&lt;li&gt;KNOPPIX&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;10.Yellow Dog Linux&lt;br&gt;
11.SCO OpenServer&lt;br&gt;
12.SGI IRIX&lt;br&gt;
13.FreeBSD&lt;br&gt;
14.OpenBSD&lt;br&gt;
15.NetBSD&lt;br&gt;
16.OS/390 Unix&lt;br&gt;
17.Plan 9&lt;/p&gt;

&lt;p&gt;As you can see there are many available variants, and their implementation is also different, but the core commands and their functionalities remain the same. IEEE has created a standard called &lt;strong&gt;Portable Operating System Interface (POSIX)&lt;/strong&gt; to standardize the UNIX OS. Though all the UNIX versions does not follow the POSIX standard completely, but most do adhere to the major principles outlined in the standard.&lt;/p&gt;

&lt;p&gt;Currently UNIX development focuses on UNIX-based system called LINUX. &lt;br&gt;
&lt;strong&gt;Two major groups of Linux distribution&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;1. .rpm based:&lt;/strong&gt; .rpm stands for Red Hat Package Management&lt;br&gt;
&lt;strong&gt;2. .deb based:&lt;/strong&gt; .deb is the short form of Debian.&lt;/p&gt;
&lt;h2&gt;
  
  
  Basic commands:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;To find the version:
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudip@system1=:~$ cat /proc/version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Or you can also use &lt;code&gt;uname&lt;/code&gt; command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudip@system1=:~$ uname -a
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;-a&lt;/code&gt; is used to print all information&lt;br&gt;
 You can refer to the &lt;code&gt;man&lt;/code&gt; page to see different options.&lt;/p&gt;

&lt;p&gt;2.List the content of a directory:&lt;br&gt;
   This will list all the files and folders present in your current directory.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudip@system1=:~$ ls
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;3.To concatenate the files and print the standard output:&lt;br&gt;
   &lt;code&gt;cat&lt;/code&gt; command can be used as&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudip@system1=:~$ cat fileName.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let me explain this a bit. Suppose the above-mentioned file &lt;code&gt;fileName.txt&lt;/code&gt; contains your biodata. So, this &lt;code&gt;cat&lt;/code&gt; command will print the contents of that file. You can also edit the file with the use of some inbuilt editors. That we will discuss later.&lt;br&gt;
 Remember we have used the same &lt;code&gt;cat&lt;/code&gt; command to get the version information? Well, that was nothing, we were just printing the version information stared in this &lt;code&gt;/proc/version&lt;/code&gt; location.&lt;/p&gt;

&lt;p&gt;4.To find present working directory &lt;code&gt;pwd&lt;/code&gt; is used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudip@system1=:~$ pwd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;5.Give information about login users use &lt;code&gt;w&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudip@system1=:~$ w
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;6.Use &lt;code&gt;hostname&lt;/code&gt; to find the name of the host:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudip@system1=:~$ hostname
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>linux</category>
      <category>unix</category>
    </item>
  </channel>
</rss>
