<?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>Forem: Sivakumar</title>
    <description>The latest articles on Forem by Sivakumar (@saber9-8).</description>
    <link>https://forem.com/saber9-8</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%2F3021797%2F0e3f8446-160a-4127-bc64-3175c862a544.png</url>
      <title>Forem: Sivakumar</title>
      <link>https://forem.com/saber9-8</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/saber9-8"/>
    <language>en</language>
    <item>
      <title>Your Guide to Basic Linux Commands Day07</title>
      <dc:creator>Sivakumar</dc:creator>
      <pubDate>Sat, 21 Jun 2025 11:26:02 +0000</pubDate>
      <link>https://forem.com/saber9-8/your-guide-to-basic-linux-commands-day07-45gh</link>
      <guid>https://forem.com/saber9-8/your-guide-to-basic-linux-commands-day07-45gh</guid>
      <description>&lt;h3&gt;
  
  
  xargs
&lt;/h3&gt;

&lt;p&gt;xargs is a command-line utility in Unix/Linux used to build and execute command lines from standard input. It's often used to convert output from one command into arguments for another command.&lt;/p&gt;

&lt;p&gt;It can also be used for other purposes with its switches like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;xargs -a&lt;/strong&gt; = will show the contents of a file&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo f1 &amp;gt; file01.txt | xargs rm
xargs -a file02.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  runlevel
&lt;/h3&gt;

&lt;p&gt;Modern Linux distros use a concept called targets from systemd. runlevel is a concept of system initialization from the sysV . This defines the mode of operation whether its in single user mode , multi user mode , etc...&lt;br&gt;
  The different run levels are :&lt;br&gt;
    0   Halt (shuts down the system)&lt;br&gt;
    1   Single-user mode (for maintenance)&lt;br&gt;
    2   Multi-user mode (no network)&lt;br&gt;
    3   Multi-user with networking (text mode)&lt;br&gt;
    4   Undefined / user-definable&lt;br&gt;
    5   Multi-user with GUI (graphical desktop)&lt;br&gt;
    6   Reboot&lt;br&gt;
Example:&lt;br&gt;
    &lt;code&gt;runlevel&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  init
&lt;/h3&gt;

&lt;p&gt;init is the first command that will run when the system starts. It will always have the process id 01 and starts other process. This command can be used to switch between different run levels.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;init 0
init6
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The "init 0" command will shutdown the system and "init 6" will reboot the system.&lt;/p&gt;

&lt;h3&gt;
  
  
  ps
&lt;/h3&gt;

&lt;p&gt;This command will display a snapshot of the current active processes in the system.This has quite a few switches like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;ps -x&lt;/strong&gt; - displays process run by the user&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ps -ax&lt;/strong&gt; - displays all the process using BSD syntax&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;h3&gt;
  
  
  pstree
&lt;/h3&gt;

&lt;p&gt;This command will display a tree structure of the processes running. It is very helpful to identify which process started others and debug.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pstree
pstree -p saber ##displays the user process
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>linux</category>
      <category>cli</category>
    </item>
    <item>
      <title>Your Guide to Basic Linux Commands Day06</title>
      <dc:creator>Sivakumar</dc:creator>
      <pubDate>Fri, 20 Jun 2025 17:21:31 +0000</pubDate>
      <link>https://forem.com/saber9-8/your-guide-to-basic-linux-commands-day06-41h4</link>
      <guid>https://forem.com/saber9-8/your-guide-to-basic-linux-commands-day06-41h4</guid>
      <description>&lt;h3&gt;
  
  
  grep
&lt;/h3&gt;

&lt;p&gt;The grep is used to identify patterns in a file and show the lines that match the pattern. This also includes its switches:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;grep -v&lt;/strong&gt; = shows the lines that does not match the pattern&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;grep -i&lt;/strong&gt; = searches through the file with case insensitive&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Examples:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;grep "is" file01.txt
grep -i "error" logfile.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  wc
&lt;/h3&gt;

&lt;p&gt;The wc or word count command displays the number of lines, words &lt;br&gt;
 , letters in the given file. It's switches consist of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;wc -m&lt;/strong&gt; = prints the character counts&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;wc -l&lt;/strong&gt; = prints the number of lines&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Examples:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;wc linuxfile.txt
wc -m linuxfile.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  sort
&lt;/h3&gt;

&lt;p&gt;The sort filter can be used to show the output in a sorted order in the terminal. It will not actually sort the order within the file. Sort has so many switches but few of them are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;sort -f&lt;/strong&gt; = is case insensitive when it comes to sorting&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;sort -n&lt;/strong&gt; = compare and sort according to numerical value&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sort file01.txt
sort -f file01.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  uniq
&lt;/h3&gt;

&lt;p&gt;The uniq command displays only the unique contents within the file. It has quite a few switches namely:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;uniq -c&lt;/strong&gt; = prints the count of occurrence of a word&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;uniq -i&lt;/strong&gt; = ignores the case sensitive&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cat file01.txt | uniq
sort file01.txt | uniq -c 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  whoami
&lt;/h3&gt;

&lt;p&gt;This command displays the current user of the system.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;code&gt;whoami&lt;/code&gt;&lt;/p&gt;

</description>
      <category>linux</category>
      <category>cli</category>
    </item>
    <item>
      <title>Your Guide to Basic Linux Commands Day05</title>
      <dc:creator>Sivakumar</dc:creator>
      <pubDate>Thu, 19 Jun 2025 16:55:38 +0000</pubDate>
      <link>https://forem.com/saber9-8/your-guide-to-basic-linux-commands-day05-3ake</link>
      <guid>https://forem.com/saber9-8/your-guide-to-basic-linux-commands-day05-3ake</guid>
      <description>&lt;h3&gt;
  
  
  echo
&lt;/h3&gt;

&lt;p&gt;The echo command will display each argument it receives from the shell. The echo command will also add a new white space between the arguments it received.&lt;br&gt;
Example: &lt;code&gt;echo hello world&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  type
&lt;/h3&gt;

&lt;p&gt;Not all the commands available in linux are internal builtin commands. There are commands that are saved in a separate location known as external command. To identify whether a given command is builtin or external command, you can use the type command.&lt;br&gt;
Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;type ls
type cd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  history
&lt;/h3&gt;

&lt;p&gt;This command allows you to see the shell command history has been executed so far.&lt;br&gt;
Example:&lt;br&gt;
&lt;code&gt;history&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  cut
&lt;/h3&gt;

&lt;p&gt;The cut command will allow you to see the selected columns in a file.&lt;br&gt;
Example:&lt;br&gt;
&lt;code&gt;cut -d: -f1,3 /etc/passwd | tail -4&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  tr
&lt;/h3&gt;

&lt;p&gt;The tr(translate) command will replace the occurrence of a given character with another argument give.&lt;br&gt;
Example:&lt;br&gt;
&lt;code&gt;cat file01.txt | tr 'e' 'E'&lt;/code&gt;&lt;/p&gt;

</description>
      <category>linux</category>
      <category>cli</category>
    </item>
    <item>
      <title>Your Guide to Basic Linux Commands Day04</title>
      <dc:creator>Sivakumar</dc:creator>
      <pubDate>Wed, 18 Jun 2025 09:34:30 +0000</pubDate>
      <link>https://forem.com/saber9-8/your-guide-to-basic-linux-commands-day04-564p</link>
      <guid>https://forem.com/saber9-8/your-guide-to-basic-linux-commands-day04-564p</guid>
      <description>&lt;h3&gt;
  
  
  cat
&lt;/h3&gt;

&lt;p&gt;Today We are going to take a look at the cat command and its types.It's a universal command and can be used in many ways.In the first example , you can use it to display the contents of a file.&lt;br&gt;
Example:&lt;br&gt;
    &lt;code&gt;cat file01.txt&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  concatenate
&lt;/h3&gt;

&lt;p&gt;You can also use cat to concatenate multiple files into a single bigger file.Try the commands below one by one&lt;br&gt;
Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo one &amp;gt; part1
echo two &amp;gt; part2
echo three &amp;gt; part3
cat part1 part2 part3
cat all
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here the echo command returns the input given that is one and this command is saved in part 1 file and the same for part2 and part3. This is then concatenated together using &lt;strong&gt;cat&lt;/strong&gt; command and displayed using &lt;strong&gt;cat all&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Createfiles
&lt;/h3&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;The cat command can also be used to create a file and allows you to write until you use ctrl+d which will send an EOF(End Of File) command and save the file.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;code&gt;cat &amp;gt; file86.txt&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Copyfiles
&lt;/h3&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;The same cat command can also be used to copy a file.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;code&gt;cat file86.txt &amp;gt; file95.txt&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  tac
&lt;/h3&gt;

&lt;p&gt;This is the reverse of the cat display command which will display the contents of the file in reverse order.&lt;br&gt;
Example:&lt;br&gt;
&lt;code&gt;tac file86.txt&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;This will be all the commands for today.We will be going more into arguements and control operators next time. Have fun learning
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>linux</category>
      <category>cli</category>
    </item>
    <item>
      <title>Your Guide to Basic Linux Commands Day03</title>
      <dc:creator>Sivakumar</dc:creator>
      <pubDate>Tue, 17 Jun 2025 15:51:10 +0000</pubDate>
      <link>https://forem.com/saber9-8/your-guide-to-basic-linux-commands-day03-2i83</link>
      <guid>https://forem.com/saber9-8/your-guide-to-basic-linux-commands-day03-2i83</guid>
      <description>&lt;h3&gt;
  
  
  cp
&lt;/h3&gt;

&lt;p&gt;This command allows you to copy one file content to another file in the terminal. you can even copy directories in the same method which copies all the source files.&lt;/p&gt;

&lt;p&gt;This command also has multiple switches like:&lt;br&gt;
   &lt;strong&gt;cp -r&lt;/strong&gt; = this allows you to even copy the subdirectories using recursive option.&lt;br&gt;
   &lt;strong&gt;cp -i&lt;/strong&gt; = this switch asks you with a yes/no if there already exists a file with some content that is about to be rewritten by copying&lt;/p&gt;

&lt;p&gt;example :&lt;br&gt;
  &lt;strong&gt;cp file01.txt fileo2.txt&lt;/strong&gt;&lt;br&gt;
  &lt;strong&gt;cp -r dir01 dir02&lt;/strong&gt;&lt;br&gt;
  &lt;strong&gt;cp -i file01.txt file02.txt&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  mv
&lt;/h3&gt;

&lt;p&gt;To rename a file or move it to another location , you can use this &lt;strong&gt;mv&lt;/strong&gt; command.you can also use this command to rename directories as well.&lt;/p&gt;

&lt;p&gt;This command has a single switch &lt;strong&gt;-i&lt;/strong&gt; that asks a yes/no before overwriting a file.&lt;/p&gt;

&lt;p&gt;example:&lt;br&gt;
  &lt;strong&gt;mv -i demo.txt file01.txt&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Working with file contents
&lt;/h2&gt;

&lt;p&gt;The following commands we are going to take a look at will cover about performing actions on a file like reading, modifying, etc..&lt;/p&gt;

&lt;h3&gt;
  
  
  head
&lt;/h3&gt;

&lt;p&gt;head command will show the first 10 lines of a file. You can also provide it with a &lt;strong&gt;n&lt;/strong&gt; number to show that &lt;strong&gt;n&lt;/strong&gt; number of lines of a line or &lt;strong&gt;-cn&lt;/strong&gt; will show n number of bytes.&lt;/p&gt;

&lt;p&gt;example:&lt;br&gt;
  &lt;strong&gt;head file01.txt&lt;/strong&gt;&lt;br&gt;
  &lt;strong&gt;head -15 file01.txt&lt;/strong&gt;&lt;br&gt;
  &lt;strong&gt;head -c15 file01.txt&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  tail
&lt;/h3&gt;

&lt;p&gt;This command is very similar to that of the head command and will show the last ten lines of a file. This command has also the same switches.&lt;/p&gt;

&lt;p&gt;example:&lt;br&gt;
  &lt;strong&gt;tail file86.txt&lt;/strong&gt;&lt;br&gt;
  &lt;strong&gt;tail -15 file86.txt&lt;/strong&gt;&lt;br&gt;
  &lt;strong&gt;tail -c15 file86.txt&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;These are the commands I learned today. I will share about the cat command   in the next blog since it contains so many different functions and variations&lt;/p&gt;

</description>
      <category>linux</category>
      <category>cli</category>
    </item>
    <item>
      <title>Your Guide to Basic Linux Commands Day02</title>
      <dc:creator>Sivakumar</dc:creator>
      <pubDate>Mon, 16 Jun 2025 12:10:29 +0000</pubDate>
      <link>https://forem.com/saber9-8/your-guide-to-basic-linux-commands-day02-5cli</link>
      <guid>https://forem.com/saber9-8/your-guide-to-basic-linux-commands-day02-5cli</guid>
      <description>&lt;h3&gt;
  
  
  mkdir
&lt;/h3&gt;

&lt;p&gt;Following the previous day commands on working with directories , The next command will be about how you can create a directory or a folder for yourself in the terminal. &lt;strong&gt;i.e mkdir&lt;/strong&gt;&lt;br&gt;
eg: &lt;strong&gt;mkdir newdirectory&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There is a switch available for this command that allows you to create multiple directories within another directory by using &lt;strong&gt;mkdir -p&lt;/strong&gt;&lt;br&gt;
eg:&lt;strong&gt;mkdir  -p mydir2/mysubdir2&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  rmdir
&lt;/h3&gt;

&lt;p&gt;This command allows you to delete a directory when it is empty.otherwise it will show that the directory cannot be deleted.&lt;br&gt;
eg:&lt;strong&gt;rmdir newdirectory&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This also has the same switch that allows you to delete the parent directories recursively.&lt;br&gt;
eg:&lt;strong&gt;rmdir  -p mydir2/mysubdir2&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  File Management Commands
&lt;/h2&gt;

&lt;p&gt;These commands allow you to create, modify , delete files.All the files are case sensitive and therefore treated as different files.&lt;/p&gt;

&lt;h3&gt;
  
  
  file
&lt;/h3&gt;

&lt;p&gt;The &lt;strong&gt;file&lt;/strong&gt; command shows the datatype of a file.Linux does not use extensions to determine the type of a file.The file command uses a magic file(literally it's name) that contains patterns to recognise file types.file is located in /usr/share/file/magic.&lt;br&gt;
eg:&lt;strong&gt;file file54.pdf&lt;/strong&gt; , &lt;strong&gt;file /etc/passwd&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  touch
&lt;/h3&gt;

&lt;p&gt;The &lt;strong&gt;touch&lt;/strong&gt; command allows you to create an empty file.&lt;br&gt;
eg: &lt;strong&gt;touch file86.txt&lt;/strong&gt;&lt;br&gt;
Like other commands , This command also has multiple switches available like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;touch -t&lt;/strong&gt; = allows you to set the time on when the file was created.
eg: &lt;strong&gt;touch -t 2412311159 demo.txt&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  rm
&lt;/h3&gt;

&lt;p&gt;This command removes a file forever since it will not be sent to trash or recycle bin.&lt;br&gt;
eg:&lt;strong&gt;rm file86.txt&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The switches available for this commands are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;rm -i&lt;/strong&gt; = using this switch prevents accidental deletion of a file by asking for confirmation before deleting the file.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;rm -rf&lt;/strong&gt; = This switch recursively deletes the file forcefully. It can even delete everything if not used in the proper environment. So be careful when you use it.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping up
&lt;/h2&gt;

&lt;p&gt;This will be the commands for today. Try experimenting on them to your preferences and also refer to man pages if you want to learn a lot more.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>cli</category>
    </item>
    <item>
      <title>Your Guide to Basic Linux Commands Day01</title>
      <dc:creator>Sivakumar</dc:creator>
      <pubDate>Sun, 15 Jun 2025 11:41:58 +0000</pubDate>
      <link>https://forem.com/saber9-8/your-guide-to-basic-linux-commands-day01-3id4</link>
      <guid>https://forem.com/saber9-8/your-guide-to-basic-linux-commands-day01-3id4</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  Sometimes , It is really confusing on where to begin with Linux and its commands in general. Today I am going to share how I begin my journey .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  man
&lt;/h2&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  The simplest command you can start from is by using man command where **man** refers to manual . This command can show the definitions , types or switches of other commands , files etc.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;eg: &lt;strong&gt;man man&lt;/strong&gt; , &lt;strong&gt;man ls&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  pwd
&lt;/h2&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   The next command that will help you with your everyday activity will be the **pwd** command. This command shows you the current working directory or where you are working in the terminal.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;eg: &lt;strong&gt;pwd&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  ls
&lt;/h2&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   This command is one of the easiest yet satisfying command . i.e **ls** , It will show all the files that is the directory or folder you are currently in.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;eg:&lt;strong&gt;ls&lt;/strong&gt; &lt;br&gt;
       Here we will introduce the concept of switches(-), This will allow you to modify the base command into other predefined choices to show other outputs. Such switches for the ls commands are&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;ls -a&lt;/strong&gt;= allows you to see hidden files in the directory.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ls -l&lt;/strong&gt;= shows the files in long listing order.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ls -lh&lt;/strong&gt;= &lt;strong&gt;-h&lt;/strong&gt; switch in general shows contents in human readable format. Using it with -l(or -lh)shows long listing in readable format.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  cd
&lt;/h2&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   The following command will be your primary way of navigating forward and backward from the linux terminal. In Linux , Everything is considered as a file and you can find anything in the format as a file hiding somewhere in some directories you cannot figure out.

  There are two concepts in navigating through all these files. Absolute path and relative path. When you type a path
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;starting with a slash (/), then the root of the file tree is assumed. If you don't start your path with a slash, then the current directory is the assumed as the starting point.eg: &lt;strong&gt;/home/Documents&lt;/strong&gt;(absolute path), &lt;strong&gt;New_Folder/Images&lt;/strong&gt;(Relative path)&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   Therefore by using the **cd** command , you can go to the path we mentioned above and access the files in those directories.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;eg:&lt;strong&gt;cd Documents&lt;/strong&gt;&lt;br&gt;
       The other types for the cd commands are &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;cd -~&lt;/strong&gt; = This is a shortcut to get you back to your home directory&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;cd ..&lt;/strong&gt; = This takes you back to your parent directory or one folder back step.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;cd -&lt;/strong&gt; = This allows you to go back to the previous directory where you were working on&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Wrapping Up
&lt;/h2&gt;

&lt;p&gt;These Commands are pretty easy to implement and some of them will work regardless whether it is windows or linux(no experience with mac unfortunately). &lt;/p&gt;

&lt;p&gt;Try the man command for these commands since there are so many switches for all these commands and so much to learn. So, try working them out on your own :)&lt;/p&gt;

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