<?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: Ugochi Ukaegbu</title>
    <description>The latest articles on DEV Community by Ugochi Ukaegbu (@dhebbythenerd).</description>
    <link>https://dev.to/dhebbythenerd</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%2F1104435%2Faddcd8b3-2847-422a-83e5-abd6dcd2949d.jpg</url>
      <title>DEV Community: Ugochi Ukaegbu</title>
      <link>https://dev.to/dhebbythenerd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dhebbythenerd"/>
    <language>en</language>
    <item>
      <title>Linux Permissions: A Beginner's Guide</title>
      <dc:creator>Ugochi Ukaegbu</dc:creator>
      <pubDate>Thu, 02 May 2024 09:56:02 +0000</pubDate>
      <link>https://dev.to/dhebbythenerd/linux-permissions-a-beginners-guide-50mk</link>
      <guid>https://dev.to/dhebbythenerd/linux-permissions-a-beginners-guide-50mk</guid>
      <description>&lt;h2&gt;
  
  
  INTRODUCTION
&lt;/h2&gt;

&lt;p&gt;By now, you should be aware that on Linux, everything is a file. Different permission levels are assigned to these files. Permission, according to the Cambridge Dictionary, is the act of permitting someone or something to happen.&lt;/p&gt;

&lt;p&gt;As an illustration, the owner of a document in Google Docs can provide different access to all users or only specific users.&lt;/p&gt;

&lt;p&gt;The owner can grant read-only permission, meaning that other users can view the document but not alter it. Other users may be permitted to join as editors with the owner's consent. By doing this, they can edit the file. With Linux, the same is true.&lt;/p&gt;

&lt;p&gt;As the title suggests, this article is for beginners who are interested in knowing about Linux Permissions.&lt;/p&gt;

&lt;h2&gt;
  
  
  LINUX PERMISSIONS ON A PLATTER
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2FH7FRceqxVIGSBphHW5%2Fgiphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2FH7FRceqxVIGSBphHW5%2Fgiphy.gif" alt="gif"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A key component of the operating system's security model in Linux is the concept of permissions. Linux permissions regulate who can access and alter files and directories on a Linux system.&lt;/p&gt;

&lt;h3&gt;
  
  
  In Linux, who is eligible to gain access to files?
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Owner: The user who is the directory's or file's owner.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Group: A collection of users who may require access to the files.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Others: All other individuals not affiliated with the group or the owner.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;-rwxrwxrwx 1 vagrant vagrant 3771 Aug 3 21:56 Nigeria&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;The first group of permission (rwx) is for the owner.

 The second group of permission (rwx) is for the group.

 The third group of permission (rwx) is for other users

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

&lt;/div&gt;



&lt;p&gt;They may receive the following permissions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Read (r): This permission command allows you to view or read the file or directory.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Write (w): This permission allows you to modify a file or directory.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Execute (x): This permission allows you to run the file or directory.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  How to tell a file and directory apart?
&lt;/h3&gt;

&lt;p&gt;(d) indicates that the document is a directory while (-) indicates that it is a file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;-rw-r--r-- 1 vagrant vagrant 3771 Aug 3 21:56 .bashrcdrwx------ 2 vagrant vagrant 4096 Aug 14 16:56 .cache-rw-r--r-- 1 vagrant vagrant 807 Aug 3 21:56 .profiledrwx------ 2 vagrant vagrant 4096 Aug 14 16:56 .ssh-rw------- 1 vagrant vagrant 11048 Sep 17 21:03 .viminfo

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

&lt;/div&gt;



&lt;h3&gt;
  
  
  How to specify permissions?
&lt;/h3&gt;

&lt;p&gt;There are three methods for specifying permissions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The use of octal notation.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The symbolic approach.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Octal Notation Method&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Linux file and directory permissions can be represented using octal (base-8) numbers using the octal notation approach. It's an efficient approach to communicate authorization settings that use numbers.&lt;/p&gt;

&lt;p&gt;Each permission (read, write, execute) is assigned a numeric value and they are:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Read (r) is represented by the value 4.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Write (w) is represented by the value 2.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Execute (x) is represented by the value 1.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You must add these values for each permission type (owner, group, and others) in order to use octal notation. This indicates that the number must be 7 for any of the actors to have full permission.&lt;/p&gt;

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

&lt;blockquote&gt;
&lt;p&gt;A file that has permission &lt;code&gt;765&lt;/code&gt; implies that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;the owner has permission to read(4), write(2) and execute(1) which totals (7).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;the users in the group has permission to read(4) and write(2) which totals (6).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;the other users has permission to read(4) and execute (1) which totals (5).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;The Symbolic Method&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This approach makes use of operators and enables the specification of permission using single-letter abbreviations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;There are three main components to this method's basic structure&lt;/strong&gt; :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Who: The following letters can be used to denote different authorization categories:&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Operator: The following symbols can be used to denote the operation you wish to carry out:&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Permissions: The specific permissions you wish to request are represented by letters:&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Changing file permissions
&lt;/h3&gt;

&lt;p&gt;You can change file permissions in Linux using the &lt;code&gt;chmod&lt;/code&gt; command which means change mode. There are multiple ways to specify the new permissions, including the symbolic method and the absolute (octal) method.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Using the symbolic notation to assign permissions to files or directories:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;chmod u+r file.txt (This command adds read permission to the owner of &lt;code&gt;file.txt)&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;chmod g+rw file.txt (This command adds both read and write permissions to the group of &lt;code&gt;file.txt)&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;chmod g=rw file.txt (This command sets the group permissions of &lt;code&gt;file.txt&lt;/code&gt; to read and write only.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;chmod -R u+rw directory (This command adds read and write permissions to the owner recursively for all files and subdirectories within &lt;code&gt;directory)&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Using the Octal method to assign permissions to files and directories:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;chmod 755 file.txt (This command sets the permissions of &lt;code&gt;file.txt&lt;/code&gt; to read, write, and execute for the owner, and only read and execute for the group and others).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;chmod 640 file.txt (This command sets the permissions of &lt;code&gt;file.txt&lt;/code&gt; to read and write for the owner, read-only for the group, and no permissions for others).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;chmod -R 644 directory (This command sets the permissions of all files and subdirectories within &lt;code&gt;directory&lt;/code&gt; to read and write for the owner and read-only for the group and others).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Linux file permissions are essential for regulating access to files and directories on a Linux system, and you can modify the permissions of the files and directories using any of these techniques.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Bash Script Operators</title>
      <dc:creator>Ugochi Ukaegbu</dc:creator>
      <pubDate>Sun, 22 Oct 2023 23:08:17 +0000</pubDate>
      <link>https://dev.to/dhebbythenerd/bash-script-operators-4e6e</link>
      <guid>https://dev.to/dhebbythenerd/bash-script-operators-4e6e</guid>
      <description>&lt;h2&gt;
  
  
  INTRODUCTION
&lt;/h2&gt;

&lt;p&gt;A Bash shell script, often known as a shell script or just a shell, is a text file that contains a series of commands written in the Bash (Bourne Again Shell) scripting language.&lt;/p&gt;

&lt;p&gt;Operators are special symbols or characters used in Bash scripting to carry out various operations on values and variables; these operators are frequently employed with commands to carry out numerous operations, comparisons, and conditional checks.&lt;/p&gt;

&lt;p&gt;This article is for beginners who are interested in learning the definition of bash operators and how to use them with Linux commands.&lt;/p&gt;

&lt;p&gt;Note: You should have prior knowledge of Shebang and the importance of including them in the script.&lt;/p&gt;

&lt;p&gt;You should also have knowledge of Linux permissions.&lt;/p&gt;

&lt;h2&gt;
  
  
  KNOW YOUR BASH OPERATORS
&lt;/h2&gt;

&lt;p&gt;There are different categories of bash operators but for the purpose of this article we will focus on four:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Arithmetic Operators&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Relational or Comparison Operators&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Boolean or Logical Operators&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;FileTest Operators&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Arithmetic Operators
&lt;/h2&gt;

&lt;p&gt;These operators are used to perform mathematical operations. The following is a list of the seven bash arithmetic operators:&lt;/p&gt;

&lt;p&gt;For the purpose of the explanation of these operators, two variables would be used:&lt;br&gt;
&lt;code&gt;num1=20&lt;/code&gt;&lt;br&gt;
&lt;code&gt;num2=5&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Addition&lt;/strong&gt; &lt;code&gt;+&lt;/code&gt;: This operator is used to add two operands or concatenate two strings and returns the result of that operation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo $(( num1 + num2 ))
echo $(( 20 + 5 ))
echo $(( 25 ))
output: 25
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Subtraction&lt;/strong&gt;&lt;code&gt;-&lt;/code&gt;: This operator is used to subtract one operand from the other and returns the result of that operation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo $(( num1 - num2 ))
echo $(( 20 - 5 ))
echo $(( 15 ))
output: 15
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Multiplication&lt;/strong&gt;&lt;code&gt;*&lt;/code&gt;: This operator is used to multiply two operands and returns the result of that operation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo $(( num1 * num2 ))
echo $(( 20 * 5 ))
echo $(( 100 ))
output: 100
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Division&lt;/strong&gt;&lt;code&gt;/&lt;/code&gt;: This operator is used to divide two operands and returns only the integer part.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo $(( num1 / num2 ))
echo $(( 20 / 5 ))
echo $(( 4 ))
output: 4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Modulus&lt;/strong&gt; &lt;code&gt;%&lt;/code&gt;: This operator is used to divide two operands and returns only the remainder part.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo $(( num1 % num2 ))
echo $(( 20 % 5 ))
echo $(( 0 ))
output: 0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Increment&lt;/strong&gt;&lt;code&gt;++&lt;/code&gt;: This is a unary operator used to increase the operand by one.&lt;br&gt;
Using the same example, we introduce another variable:&lt;br&gt;
&lt;code&gt;sum=$num1+$num2&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;echo $(( ++sum ))
output: 26
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Decrement&lt;/strong&gt;&lt;code&gt;--&lt;/code&gt;: This is a unary operator used to decrease the operand by one.&lt;br&gt;
Using the same example, we introduce another variable&lt;br&gt;
&lt;code&gt;sum=$num1*$num2&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;echo $(( --sum ))
output: 99
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;**An alternative way to use arithmetic operators is to use the &lt;code&gt;expr&lt;/code&gt; command. **This command is only used for integer values. This means that this command will not work with float numbers. This method will give the same output as the method above.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo $( expr $num1 + $num2 )
echo $( expr $num1 - $num2 )
echo $( expr $num1 / $num2 )
echo $( expr $num1 \* $num2)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is because * without \ will produce a syntax error.&lt;/p&gt;

&lt;h2&gt;
  
  
  Relational Operators
&lt;/h2&gt;

&lt;p&gt;These operators specify the relationship between two operands. Depending on the relationship, they either yield true or false. These operators are:&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Equal to *&lt;/em&gt;&lt;code&gt;(==)&lt;/code&gt; or &lt;code&gt;(-eq)&lt;/code&gt;: It returns &lt;code&gt;true&lt;/code&gt; if the two operands are equal otherwise returns &lt;code&gt;false&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;var1=40
var2=40

if (( $var1 == $var2 ))
then
    echo True
else
    echo False
fi
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;output: True&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Another example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var1='banana'
var2='banana'

if [[ "$var1" -eq "$var2" ]]
then
    echo True
else
    echo False
fi
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;output: True&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Not Equal to *&lt;/em&gt;&lt;code&gt;(!=)&lt;/code&gt; or &lt;code&gt;(-ne)&lt;/code&gt;: It returns &lt;code&gt;true&lt;/code&gt; if the two operands are not equal, otherwise it returns &lt;code&gt;false&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;var1=40
var2=20

if [[ "$var1" -ne "$var2" ]]
then
    echo True
else
    echo False
fi

Another way to write this is:
if (( "$var1" != "$var2" ))
then
    echo True
else
    echo False
fi
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;output: True&lt;/code&gt;&lt;br&gt;
*&lt;em&gt;Less than *&lt;/em&gt;&lt;code&gt;(&amp;lt;)&lt;/code&gt; or &lt;code&gt;(le)&lt;/code&gt;: The operator returns &lt;code&gt;true&lt;/code&gt; if the first operand is less than the second operand otherwise returns &lt;code&gt;false&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;var1=40
var2=20

if [[ "$var1" -lt "$var2" ]]
then
    echo True
else
    echo False
fi

Another way to write this is:
if (( "$var1" &amp;lt; "$var2" ))
then
    echo True
else
    echo False
fi
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;output: False&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Greater than&lt;/strong&gt; &lt;code&gt;(&amp;gt;)&lt;/code&gt; or &lt;code&gt;(-gt)&lt;/code&gt;: It returns &lt;code&gt;true&lt;/code&gt; if the first operand is greater than the second operand, otherwise it will return &lt;code&gt;false&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;var1=40
var2=20

if [[ "$var1" -gt "$var2" ]]
then
    echo True
else
    echo False
fi

Another way to write this is:
if (( "$var1" &amp;gt; "$var2" ))
then
    echo True
else
    echo False
fi
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;output: True&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Less or equal to&lt;/strong&gt;&lt;code&gt;(&amp;lt;=)&lt;/code&gt; or &lt;code&gt;(-le)&lt;/code&gt;: This operator returns &lt;code&gt;true&lt;/code&gt; if the first operand is less than or equal to the second operand otherwise returns &lt;code&gt;false&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;var1=40
var2=20

if [[ "$var1" -le "$var2" ]]
then
    echo True
else
    echo False
fi

Another way to write this is:
if (( "$var1" &amp;lt;= "$var2" ))
then
    echo True
else
    echo False
fi
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;output: False&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Greater or equal to&lt;/strong&gt; &lt;code&gt;(&amp;lt;=)&lt;/code&gt; or &lt;code&gt;(-ge)&lt;/code&gt;: This operator returns &lt;code&gt;true&lt;/code&gt; if the first operand is less than or equal to the second operand otherwise returns &lt;code&gt;false&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;var1=40
var2=20

if [[ "$var1" -ge "$var2" ]]
then
    echo True
else
    echo False
fi

Another way to write this is:
if (( "$var1" &amp;gt;= "$var2" ))
then
    echo True
else
    echo False
fi
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;output: True&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Boolean Operators
&lt;/h2&gt;

&lt;p&gt;These operators are used for comparing two values or expressions, if they are &lt;code&gt;true&lt;/code&gt; then it will return &lt;code&gt;True&lt;/code&gt; else &lt;code&gt;False&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Logical And&lt;/strong&gt;&lt;code&gt;(&amp;amp;&amp;amp;)&lt;/code&gt;: This operator returns &lt;code&gt;true&lt;/code&gt; if both the operands are &lt;code&gt;true&lt;/code&gt; otherwise returns &lt;code&gt;false&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;var=40

if [ "$var" -gt 20 -a "$var" -lt 60 ]
then
    echo true
else
    echo false
fi 

Alternatively, it can be written in the following ways:

if ["$var" -gt 20] &amp;amp;&amp;amp; ["$var" -lt 60]
then
    echo true
else
    echo false
fi

or this way;
if [[ "$var" -gt 20 &amp;amp;&amp;amp; "$var" -lt 60 ]]
then
    echo true
else
    echo false
fi
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;output: True&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Logical Or&lt;/strong&gt;&lt;code&gt;(||)&lt;/code&gt;: This operator returns &lt;code&gt;true&lt;/code&gt; if either of the operands is true or both the operands are true and returns &lt;code&gt;false&lt;/code&gt; if none of them is false.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var=40

if [ "$var" -gt 60 -o "$var" -lt 50 ]
then
    echo true
else
    echo false
fi 

Alternatively, it can be written in the following ways:

if [ "$var" -gt 60 ] || [ "$var" -lt 50 ]
then
    echo true
else
    echo false
fi

or this way;
if [[ "$var" -gt 60 || "$var" -lt 50 ]]
then
    echo true
else
    echo false
fi
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;output: True&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Logical Not&lt;/strong&gt;&lt;code&gt;(!)&lt;/code&gt;: This unary operator returns &lt;code&gt;true&lt;/code&gt; if the operand is false and returns &lt;code&gt;false&lt;/code&gt; if the operand is true.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var=40

if [ ! "$var" -gt 60 -o "$var" -lt 50 ]
then
    echo true
else
    echo false
fi 

Alternatively, it can be written in the following ways:
if [[ ! "$var" -gt 60 &amp;amp;&amp;amp; "$var" -lt 50 ]]
then
    echo true
else
    echo false
fi
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;False&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  File Operators
&lt;/h2&gt;

&lt;p&gt;In Bash, file operators are used to verify and test files and directories. In order to show whether a certain condition is satisfied, file operators return a Boolean value (true or false).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;-b operator&lt;/strong&gt;: This operator determines whether or not a file is a block special file. If the file is a block special file, it returns true; otherwise, it returns false.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;-c operator&lt;/strong&gt;: This operator determines whether or not a file is a character special file. If the file is a character special file, it returns true; otherwise, it returns false.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;-d operator&lt;/strong&gt;: This operator checks if a directory. If it exists it returns true; otherwise, it returns false.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;-e operator&lt;/strong&gt;: This operator checks if a file exists. If it exists it returns true; otherwise, it returns false.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;-f operator&lt;/strong&gt;: This operator checks if a path exists and points to a regular file (not a directory or device). If it exists it returns true; otherwise, it returns false.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;-l operator&lt;/strong&gt;: This operator checks if the path exists and is a symbolic link. If the path exists then it returns true; otherwise, it returns false.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;-r operator&lt;/strong&gt;: This operator checks if the file and directory exist and are readable. If the file or directory is readable then it returns true; otherwise, it returns false.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;-s operator&lt;/strong&gt;: This operator checks the size of the given file. If the size of the given file is greater than 0 then it returns true; otherwise, it is false&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;-w operator&lt;/strong&gt;: This operator checks if the file and directory exist and are writable. If the file or directory is writable then it returns true; otherwise, it returns false.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;-x operator&lt;/strong&gt;: This operator checks if the file and directory exist and are executable. If the file or directory is executable then it returns true; otherwise, it returns false.&lt;/p&gt;

&lt;p&gt;The syntax to use any of the file operators is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if [ fileoperator file-name ]

var=/etc/ssh/sshd_config
if [ -l $var ]
then
    echo ' '
else
    echo ' '
fi
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;You can write Bash scripts that make decision, carry out computations, and interact with files and directories by using operators such the arithmetic, comparison, logical, and file operators. These operators are necessary for building flexible, error-handling scripts that can respond to a variety of situations.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>devops</category>
      <category>cloudcomputing</category>
      <category>bash</category>
    </item>
    <item>
      <title>JAVASCRIPT INTRO FOR BEGINNERS</title>
      <dc:creator>Ugochi Ukaegbu</dc:creator>
      <pubDate>Fri, 30 Jun 2023 17:01:30 +0000</pubDate>
      <link>https://dev.to/dhebbythenerd/javascript-intro-for-beginners-514p</link>
      <guid>https://dev.to/dhebbythenerd/javascript-intro-for-beginners-514p</guid>
      <description>&lt;h2&gt;
  
  
  INTRODUCTION
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SOOXGKmM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3odd5lad9v1ce48p4kwy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SOOXGKmM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3odd5lad9v1ce48p4kwy.png" alt="Image description" width="276" height="155"&gt;&lt;/a&gt;&lt;br&gt;
Creating the front end of a web page requires using tools like Hypertext Markup Language (HTML), Cascading Style Sheets (CSS), and JavaScript. JavaScript is a programming language that allows you to add interactivity and dynamic functionality to a web page. &lt;/p&gt;

&lt;p&gt;Front-end developers employ the popular programming language JavaScript to make webpages interactive. When an instruction is requested, Java Script instructs the computers what to perform and executes that command.&lt;/p&gt;

&lt;p&gt;Consider an e-commerce site where the product you have chosen is immediately added to the cart when you click the add to cart button. JavaScript is carrying out this command.&lt;/p&gt;

&lt;p&gt;An additional example of how JavaScript is used is in a smart home, where the instructions have been established so that when someone enters the house, the lights turn on, and when they depart, the lights turn out. The lights turn on as a result of instructions being delivered, which can be accomplished using JavaScript.&lt;/p&gt;

&lt;p&gt;Are there other programming languages? Yes, they are but JavaScript is the main language used for the interactivity and dynamic functionality of a website.&lt;/p&gt;

&lt;p&gt;Read this article on the &lt;a href="https://www.springboard.com/blog/data-science/history-of-javascript/"&gt;history and origin of JavaScript&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Setting up the Development Environment:
&lt;/h2&gt;

&lt;p&gt;The different options for running JavaScript code include: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;using a web browser &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;using an Integrated Development Environment (IDE)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The following steps are required when using a web browser to run JavaScript code:&lt;br&gt;
&lt;strong&gt;Open a new tab on your browser&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--020w5OOb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a65k2meu8peley2fjxci.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--020w5OOb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a65k2meu8peley2fjxci.png" alt="Image description" width="800" height="322"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Right-click on the web page&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Click on inspect&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ZQiwdjG9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4f6vbzzwznvronc6li1l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZQiwdjG9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4f6vbzzwznvronc6li1l.png" alt="Image description" width="606" height="141"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Click on the console&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wlJDW0wU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hxhfmdonj0e7gy70688z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wlJDW0wU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hxhfmdonj0e7gy70688z.png" alt="Image description" width="800" height="102"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Clear out the error message&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Fl2gFiWX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r4z24z0msi6r1v2v9lsp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Fl2gFiWX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r4z24z0msi6r1v2v9lsp.png" alt="Image description" width="619" height="242"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Type your code&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CaPFVkDK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yhgv98q32s01smdloko2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CaPFVkDK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yhgv98q32s01smdloko2.png" alt="Image description" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is an IDE?&lt;/strong&gt;&lt;br&gt;
An integrated development environment is a tool developers use to write, edit, and manage their code more efficiently. Examples of some of the IDEs are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://code.visualstudio.com/"&gt;Visual Studio Code&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sublimetext.com/"&gt;Sublime Text&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The following are the steps required to use Visual Studio Code to run JavaScript code:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Download Visual Studio Code
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YK0sOjAM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9ojy98lslkdpmuv89m6t.png" alt="Image description" width="775" height="671"&gt;
&lt;/li&gt;
&lt;li&gt;Install Visual Studio Code&lt;/li&gt;
&lt;li&gt;Create a Folder inside the document folder on your computer&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Open your VS Code.&lt;br&gt;
To open your VS code do the following:&lt;/p&gt;

&lt;p&gt;a. Click on File&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vHhlytCy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xgst6768x5ofpamlx0qh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vHhlytCy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xgst6768x5ofpamlx0qh.png" alt="Image description" width="496" height="98"&gt;&lt;/a&gt;&lt;br&gt;
    b. Click on Open your folder&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--K2dXmb7U--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/77tthxkg2pc5tkic0isc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--K2dXmb7U--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/77tthxkg2pc5tkic0isc.png" alt="Image description" width="515" height="226"&gt;&lt;/a&gt;&lt;br&gt;
    c. Click on the File icon to create a JavaScript file&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--S2KTgUh9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9noxxfj5r33b0ay2mk62.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--S2KTgUh9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9noxxfj5r33b0ay2mk62.png" alt="Image description" width="315" height="143"&gt;&lt;/a&gt;&lt;br&gt;
    d. Type in the name of your file&lt;br&gt;
    e. Install Quokka in your VS code&lt;br&gt;
Note: &lt;br&gt;
Your file name must end with a .js extension.  e.g newTask.js&lt;br&gt;
Read this article to learn more about &lt;a href="https://fireflysemantics.medium.com/running-javascript-snippets-in-vscode-quokka-js-f8e88b42e947"&gt;Quokka&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Variables in JavaScript
&lt;/h2&gt;

&lt;p&gt;Variables are containers used to store values. You can think of variables as a box that contains various items.&lt;/p&gt;

&lt;p&gt;Items like books, clothes, kitchen utensils, and so on can be stored in a box. In JavaScript, these items are called values and they are of different data types.&lt;/p&gt;

&lt;p&gt;Data is a collection of facts and information to be examined and used for decision-making. This data is categorized into:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Numbers&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Strings&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Bigint&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Boolean&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Null&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Undefined&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Arrays&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Object&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Consider this equation:&lt;br&gt;
let X = 5. &lt;br&gt;
In JavaScript, this means that X is a container that holds 5. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Declaration of Variable&lt;/strong&gt;&lt;br&gt;
JavaScript is case-sensitive so when declaring variables take note of your words.&lt;/p&gt;

&lt;p&gt;The different keywords used when declaring variables are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Automatically&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;let&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;const&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;var&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;e.g let firstName;&lt;/p&gt;

&lt;p&gt;"Let" is the Keyword while "firstName" is the variable name.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Assigning Values to variables&lt;/strong&gt;&lt;br&gt;
The assignment operator (=) is used to assign values to the variable. Think of a woman who wants to relocate to another city; she could pack all her clothes in a red leather bag and kitchenware in a paper box. She chooses what each box should hold. Variables store different values as a result of the assignment operator. The variable remains empty if the assignment operator doesn't assign it any values.&lt;/p&gt;

&lt;p&gt;Example 1:    let firstName = “Sandra”&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Naming variables&lt;/strong&gt;&lt;br&gt;
There are different ways of naming variables and they include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Camel Case.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Snake Case.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Pascal Case.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Camel Case&lt;/strong&gt;: This is the practice of writing where each word or abbreviation after the first word begins with a capital letter with no punctuation or spaces&lt;br&gt;
Examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;let  firstName&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;let  multipleUserName&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;const  secondJourney&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Snake Case&lt;/strong&gt;: This is the practice of separating different words with an underscore. The words are written in lowercase.&lt;br&gt;
Examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;var my_car&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;const the_three_numbers&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Paschal Case&lt;/strong&gt;: This is the practice of writing the first letter of the words in uppercase. &lt;br&gt;
Examples are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;let  UserAccount&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;const FullName&lt;br&gt;
Note: Do not try to use the different styles on the same project. Choose a style and stick with it.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Arithmetic Operators in JavaScript
&lt;/h2&gt;

&lt;p&gt;There are different types of operators in JavaScript but this article will focus only on arithmetic operators.&lt;/p&gt;

&lt;p&gt;In JavaScript, the arithmetic operators used to perform operations on number data type:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ARITHMETIC OPERATORS&lt;/strong&gt;    &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;(+ Addition)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;(- Subtraction)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;(* Multiplication)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;(/ Division)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;(% Modulus)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;(** Exponential)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;(++ Increment)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;(-- Decrement)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Examples:&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Using (+) operator&lt;/strong&gt;&lt;br&gt;
let x = 18;&lt;br&gt;
let y = 30;&lt;br&gt;
console.log(x + Y)&lt;br&gt;
output: 48&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using (-) operator&lt;/strong&gt;&lt;br&gt;
let priceOfShirt = 400;&lt;br&gt;
var priceOfTie = 150;&lt;br&gt;
console.log(priceOfShirt - priceOfTie)&lt;br&gt;
output: 250&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using (*) operator&lt;/strong&gt;&lt;br&gt;
var m = 40;&lt;br&gt;
var n = 8;&lt;br&gt;
console.log(m * n)&lt;br&gt;
output: 320&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using (/) operator&lt;/strong&gt;&lt;br&gt;
const unitsOfBags = 200;&lt;br&gt;
var priceOfBags = 5;&lt;br&gt;
console.log(unitsOfBags / priceOfBags)&lt;br&gt;
output: 40&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using (%) operator&lt;/strong&gt;&lt;br&gt;
let a = 50;&lt;br&gt;
let b = 6;&lt;br&gt;
console.log(a % b)&lt;br&gt;
output: 2&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using the exponential operator&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--pYh4FH0t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mdu1r3bn42qq07ajsbsm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pYh4FH0t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mdu1r3bn42qq07ajsbsm.png" alt="Image description" width="415" height="228"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;You have started the process of learning JavaScript by becoming familiar with these key ideas. To further develop your skills, keep in mind to practice writing code, look into alternative sources, and look for real-world applications.&lt;/p&gt;

&lt;p&gt;As a constantly changing language, there is always more to learn about JavaScript. You will therefore be well on your road to becoming a JavaScript developer if you keep exploring and trying new things. &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>TECHNICAL WRITING 101: THE BASICS</title>
      <dc:creator>Ugochi Ukaegbu</dc:creator>
      <pubDate>Mon, 19 Jun 2023 21:06:58 +0000</pubDate>
      <link>https://dev.to/dhebbythenerd/technical-writing-101-the-basics-4fpb</link>
      <guid>https://dev.to/dhebbythenerd/technical-writing-101-the-basics-4fpb</guid>
      <description>&lt;p&gt;&lt;strong&gt;INTRODUCTION&lt;/strong&gt;&lt;br&gt;
You are reading this because you want to learn more about technical writing. The article is not for you if you have experience with technical writing. This article aims to simplify technical writing for beginners and show them how to communicate their experiences.&lt;/p&gt;

&lt;p&gt;How technical writing is used varies, but one such situation is when people choose to develop technical skills because of the numerous work opportunities that technology provides.&lt;/p&gt;

&lt;p&gt;What happens when they hear words like HTML and JavaScript? If the meaning of the words is conveyed in a way that they can’t understand, they'll become overwhelmed and confused. Technical writing can help with this.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;READY TO DIVE INTO THE WORLD OF TECHNICAL WRITING?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kWZP7Znx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4kjcvpa91445yaxn0c16.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kWZP7Znx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4kjcvpa91445yaxn0c16.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
In the simplest of terms, technical writing involves technical skills that require training, and writing requires documenting those skills on a Notebook, Note-pad, or, Laptop.&lt;/p&gt;

&lt;p&gt;Technical writing is a style of communication that involves empathizing with your readers by providing them with detailed instructions or explanations of what a technical subject is all about.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ANALYSE YOUR AUDIENCE&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--t_Vtev74--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z27abde6h568scoqwgco.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--t_Vtev74--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z27abde6h568scoqwgco.png" alt="Image description" width="800" height="800"&gt;&lt;/a&gt;&lt;br&gt;
You went through the elementary, high school, and university stages of studying the same topic. The only difference is the content underwent significant improvement; the same applies to technical writing.  &lt;/p&gt;

&lt;p&gt;Before you start writing on any concept, you have to ask yourself this question:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Who do I intend to write to?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Do I want to write to beginners, intermediate or advanced learners?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What are the pain points of the audience?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;How do I solve these challenges?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Consider that the goal of your writing is to make HTML simpler for readers who are just learning about it. It's improper to create an article and use the abbreviation HTML, with the expectation that the reader would comprehend the full form of HTML. For them to become familiar with the concept, it is required to write out the full form of HTML multiple times.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MASTER THE ART OF RESEARCH AND INFORMATION GATHERING&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The ideology that you must be an expert in a particular field before writing about it is false. Some properties in the programming languages used in the past are deprecated today,  so it's crucial that whatever you put out there for readers to digest has to be up-to-date. &lt;br&gt;
Researching a concept in your field that is foreign to you is another option. When you are knowledgeable enough about the subject to explain it to a teenager, you are ready to make it available for readers to digest.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CLEAR AND CONCISE COMMUNICATION&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---rCOGzKq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pka9udnlguzfee1d3vf4.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---rCOGzKq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pka9udnlguzfee1d3vf4.gif" alt="Image description" width="480" height="252"&gt;&lt;/a&gt;&lt;br&gt;
Technical writing originated from the need to break down complex terms for every stakeholder to understand. The stakeholders can be students, colleagues, and so on.&lt;br&gt;
Avoid using jargon; make sure that you are clear and concise as possible. Communication in technical writing is effective when the receiver can assimilate your message.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;KNOW YOUR TOOLS&lt;/strong&gt;&lt;br&gt;
Technical Writers utilize different tools to publish their works, making their writings very engaging and explanatory for the readers.&lt;br&gt;
The following tools used by technical writers are:&lt;br&gt;
writing tools. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;spell-check tools.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;publishing tools.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;image editing tools.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;screen capture tools.&lt;br&gt;
Use writing tools like Microsoft Word and Google Docs to pen down your thoughts. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Install spell-check tools like Grammarly to correct your spelling and check your grammar for clarity. &lt;/p&gt;

&lt;p&gt;Some readers are visual learners. They get bored when it's only text used from the beginning to the end of the article, so using image editing tools like Canva to create beautiful pictures and story is necessary for a Technical Writer.  &lt;/p&gt;

&lt;p&gt;Use screen-capturing tools to capture snippets of your code. You need to realize that some readers would prefer watching a video in, let’s say C++. If you have to write a text-based explanation on C++, you have to include snippets of your code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;REGISTER ON A PUBLISHING PLATFORM&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0nHVfqb2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ptn9br59a84s9r8ovoik.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0nHVfqb2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ptn9br59a84s9r8ovoik.png" alt="Image description" width="800" height="800"&gt;&lt;/a&gt;&lt;br&gt;
When your content is ready for readers to digest, the next step is to register on a publishing platform. Register on publishing platforms like DEV to publish your articles.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CONCLUSION&lt;/strong&gt;&lt;br&gt;
Technical writing is a skill that makes it possible to explain complex information effectively. Technical writers can create documents that their readers can readily access and understand by understanding the intended audience, adopting clarity and conciseness. Careful planning, research, and the use of visual aids all help to increase the impact and quality of technical writing. &lt;br&gt;
Beginners can learn the skill of technical writing and unleash their ability to communicate information clearly and precisely. Accept the challenge, learn about technical writing, and embark on a path that enables you to speak clearly and authoritatively.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>technicalwriting</category>
    </item>
  </channel>
</rss>
