<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux - Techyaz.com</title>
	<atom:link href="https://techyaz.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Tips, Tutorials and How-to Topics</description>
	<lastBuildDate>Sun, 06 May 2018 11:47:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8</generator>

<image>
	<url>https://techyaz.com/wp-content/uploads/2017/11/cropped-Site-icon-150x150.png</url>
	<title>Linux - Techyaz.com</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Use CAT Command on Linux System?</title>
		<link>https://techyaz.com/linux/how-to-use-cat-command-in-linux-system/</link>
					<comments>https://techyaz.com/linux/how-to-use-cat-command-in-linux-system/#respond</comments>
		
		<dc:creator><![CDATA[Angelo Marquez]]></dc:creator>
		<pubDate>Tue, 24 Apr 2018 13:55:44 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=2126</guid>

					<description><![CDATA[<p>This time we continue with the explanation of simple Linux command to learn basics. The command chosen today is the cat command. Cat comes from the word &#8220;concatenate&#8220;.  In short the main utility is to display the contents of one or&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/linux/how-to-use-cat-command-in-linux-system/">How to Use CAT Command on Linux System?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This time we continue with the explanation of simple Linux command to learn basics. The command chosen today is the cat command. Cat comes from the word &#8220;<em>concatenate</em>&#8220;.  In short the main utility is to display the contents of one or more files in the terminal. Here, i will describe most useful examples of CAT command.</p>
<p>Normally the cat command is applied for basically three things in particular:</p>
<ul>
<li>Display the contents of a file</li>
<li>Copy text files to another text file</li>
<li>Append a text file&#8217;s contents to another text file</li>
</ul>
<p>Being a UNIX command it is ported to all GNU/LINUX distributions and of course, it has options to expand and vary the power of the command itself.  Let&#8217;s see the output at the terminal if we do the following command:</p>
<pre><span style="color: #0000ff;"><strong>cat --help</strong></span></pre>
<p>The command shows us a quick help on the cat command including its options.</p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-2127" src="http://techyaz.com/wp-content/uploads/2018/04/1-cat-min.png" alt="cat help" width="616" height="504" srcset="https://techyaz.com/wp-content/uploads/2018/04/1-cat-min.png 616w, https://techyaz.com/wp-content/uploads/2018/04/1-cat-min-300x245.png 300w" sizes="(max-width: 616px) 100vw, 616px" /></p>
<p>The basic usage syntax is:</p>
<p><strong><em>cat [OPTION] [FILE]&#8230;</em></strong></p>
<p>And the list of commands is shown in this table:</p>
<table>
<tbody>
<tr>
<td width="234"><strong>Option</strong></td>
<td width="342"><strong>Description</strong></td>
</tr>
<tr>
<td width="234">-A</td>
<td width="342">&#8211;show-all Euivalent to –vET</td>
</tr>
<tr>
<td width="234">-b</td>
<td width="342">&#8211;number-nonblank number nonempty output lines, overrides -n</td>
</tr>
<tr>
<td width="234">-e</td>
<td width="342">equivalent to -vE</td>
</tr>
<tr>
<td width="234">-E</td>
<td width="342">&#8211;show-ends display $ at end of each line</td>
</tr>
<tr>
<td width="234">-n</td>
<td width="342">&#8211;number number all outpout lines</td>
</tr>
<tr>
<td width="234">-s</td>
<td width="342">&#8211;squeeze-blank  suppress repeated empty output lines</td>
</tr>
<tr>
<td width="234">-t</td>
<td width="342">equivalent to -vT</td>
</tr>
<tr>
<td width="234">-T</td>
<td width="342">&#8211;show-tabs display TAB characters as ^I</td>
</tr>
<tr>
<td width="234">-u</td>
<td width="342">(ignored)</td>
</tr>
<tr>
<td width="234">-V</td>
<td width="342">&#8211;show-nonprinting   use ^ and M- notation, except for LFD and TAB</td>
</tr>
</tbody>
</table>
<p>Don&#8217;t worry; we&#8217;ll examine the most useful options with several examples.</p>
<h5><span style="color: #993300;">Display Content of File</span></h5>
<p>If we want to show the content of a text file, the syntax would be:</p>
<pre><span style="color: #0000ff;"><strong>cat path_of_the_archive</strong></span></pre>
<p>I&#8217;m going to show the content of a file called file1.txt located in the Example folder. Run below command to display file1.txt content.</p>
<pre><span style="color: #0000ff;"><strong>cat file1.txt</strong></span></pre>
<p><img decoding="async" class="alignnone size-full wp-image-2128" src="http://techyaz.com/wp-content/uploads/2018/04/2-cat-min.png" alt="Show content of a file using CAT" width="842" height="167" srcset="https://techyaz.com/wp-content/uploads/2018/04/2-cat-min.png 842w, https://techyaz.com/wp-content/uploads/2018/04/2-cat-min-300x60.png 300w, https://techyaz.com/wp-content/uploads/2018/04/2-cat-min-768x152.png 768w" sizes="(max-width: 842px) 100vw, 842px" /></p>
<p>And there we have the content of the file shown on the terminal in above image.</p>
<p>If you would like to display the contents of several files, simply place them next. Run below command to display contents of two files file1.txt and file2.txt.</p>
<pre><span style="color: #0000ff;"><strong>cat file1.txt file2.txt</strong></span></pre>
<p>The exit at the terminal would be as follows:</p>
<p><img decoding="async" class="alignnone size-full wp-image-2129" src="http://techyaz.com/wp-content/uploads/2018/04/3-cat-min.png" alt="Display content of several files" width="805" height="167" srcset="https://techyaz.com/wp-content/uploads/2018/04/3-cat-min.png 805w, https://techyaz.com/wp-content/uploads/2018/04/3-cat-min-300x62.png 300w, https://techyaz.com/wp-content/uploads/2018/04/3-cat-min-768x159.png 768w" sizes="(max-width: 805px) 100vw, 805px" /></p>
<p>You can see the contents of both files one by one in above image.</p>
<h5><span style="color: #993300;">Identify Specific File Content</span></h5>
<p>As we can see in above image, it simply shows the contents of file 1 and when it ends, it immediately shows the content of file 2 as if they were &#8220;concatenated&#8221;. If you would like to know where the content of each file ends, then use the <strong>-e</strong> option to show a <strong>$</strong> at the end of the file.</p>
<pre><span style="color: #0000ff;"><strong>cat –e file1.txt file2.txt</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2130" src="http://techyaz.com/wp-content/uploads/2018/04/4-cat-min.png" alt="Display where the content of the file ends" width="815" height="167" srcset="https://techyaz.com/wp-content/uploads/2018/04/4-cat-min.png 815w, https://techyaz.com/wp-content/uploads/2018/04/4-cat-min-300x61.png 300w, https://techyaz.com/wp-content/uploads/2018/04/4-cat-min-768x157.png 768w" sizes="auto, (max-width: 815px) 100vw, 815px" /></p>
<h5><span style="color: #993300;">Add Number of Lines in Output</span></h5>
<p>If you want to display the number of lines along with the file content then you can show it by adding <strong>-n</strong> option. Run below command to display the line numbers while displaying the file content.</p>
<pre><span style="color: #0000ff;"><strong>cat –n file1.txt file2.txt</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2131" src="http://techyaz.com/wp-content/uploads/2018/04/5-cat-min.png" alt="display the number of lines in a file" width="887" height="167" srcset="https://techyaz.com/wp-content/uploads/2018/04/5-cat-min.png 887w, https://techyaz.com/wp-content/uploads/2018/04/5-cat-min-300x56.png 300w, https://techyaz.com/wp-content/uploads/2018/04/5-cat-min-768x145.png 768w" sizes="auto, (max-width: 887px) 100vw, 887px" /></p>
<h5><span style="color: #993300;">Copy Contents of One file to Another</span></h5>
<p>We can also copy the content of one text file to another using CAT command. Run below command to copy content of file1.txt to file4.txt.</p>
<pre><span style="color: #0000ff;"><strong>cat file1.txt &gt; file4.txt</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2132" src="http://techyaz.com/wp-content/uploads/2018/04/6-cat-min.png" alt="Copy content of file 1 to file 2" width="698" height="167" srcset="https://techyaz.com/wp-content/uploads/2018/04/6-cat-min.png 698w, https://techyaz.com/wp-content/uploads/2018/04/6-cat-min-300x72.png 300w" sizes="auto, (max-width: 698px) 100vw, 698px" /></p>
<p>In this case, the command reads the contents of file1.txt and overwrites the contents of the new file. If it does not exist, it is simply created. Now we can validate above command whether contents have been copied to not. Now we proceed to show the contents of <em>file4.txt</em> to verify that it made the &#8220;copy&#8221;. Display content of file4.txt by running below command.</p>
<pre><span style="color: #0000ff;"><strong>cat file4.txt</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2133" src="http://techyaz.com/wp-content/uploads/2018/04/7-cat-min.png" alt="Validate the copied content" width="655" height="167" srcset="https://techyaz.com/wp-content/uploads/2018/04/7-cat-min.png 655w, https://techyaz.com/wp-content/uploads/2018/04/7-cat-min-300x76.png 300w" sizes="auto, (max-width: 655px) 100vw, 655px" /></p>
<p>We can see the content is same as file1.txt in above image.</p>
<h5><span style="color: #993300;">Combine or Append the Content of One File to Another</span></h5>
<p>The cat command also allows us to combine or append a text file data to another one, thanks to the operator &gt;&gt;</p>
<p>In this case, we will combine the content of file1.txt with that of file2.txt</p>
<pre><span style="color: #0000ff;"><strong>cat file1.txt &gt;&gt; file2.txt</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2134" src="http://techyaz.com/wp-content/uploads/2018/04/8-cat-min.png" alt="Combine the content of two files into one file" width="693" height="167" srcset="https://techyaz.com/wp-content/uploads/2018/04/8-cat-min.png 693w, https://techyaz.com/wp-content/uploads/2018/04/8-cat-min-300x72.png 300w" sizes="auto, (max-width: 693px) 100vw, 693px" /></p>
<p>And then we check the contents of the file2.txt file to validate it.</p>
<pre><span style="color: #0000ff;"><strong>cat file2.txt</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2135" src="http://techyaz.com/wp-content/uploads/2018/04/9-cat-min.png" alt="Validate the combined content" width="626" height="167" srcset="https://techyaz.com/wp-content/uploads/2018/04/9-cat-min.png 626w, https://techyaz.com/wp-content/uploads/2018/04/9-cat-min-300x80.png 300w" sizes="auto, (max-width: 626px) 100vw, 626px" /></p>
<p>We can see contents have been combined in to this file. Basically the command takes the content of file1.txt and places it at the end of the file2.txt file</p>
<p>As a conclusion we can say that the cat command is a useful and important command to work with text files in GNU/LINUX and everything about the terminal. It is very useful for managing service configuration files on a server.</p>
<p>I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">Facebook</a> page and <a href="https://twitter.com/Tech_yaz">Twitter</a> handle to get latest updates.</p>
<p><span style="color: #800000;"><em><strong>Read More:</strong></em></span></p>
<ul>
<li><strong><a href="http://techyaz.com/rhel/11-examples-ls-command-list-files-linux/" target="_blank" rel="noopener">11 Examples of ls command to List Files in Linux</a></strong></li>
<li><strong><a href="http://techyaz.com/rhel/linux-user-administration-add-delete-modify-user-accounts/" target="_blank" rel="noopener">Add, Delete &amp; Modify Linux User Accounts</a></strong></li>
<li><strong><a href="http://techyaz.com/rhel/how-to-reset-or-change-user-password-on-linux/" target="_blank" rel="noopener">How to Reset or Change Linux User Passwords?</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/sql-server-on-linux/change-hostname-red-hat-linux-server/" target="_blank" rel="noopener">How to Change Linux Server Name?</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/linux/how-to-use-cat-command-in-linux-system/">How to Use CAT Command on Linux System?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/linux/how-to-use-cat-command-in-linux-system/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install Zabbix on Ubuntu Server 16.04?</title>
		<link>https://techyaz.com/ubuntu/how-to-install-zabbix-on-ubuntu-server-16-04/</link>
					<comments>https://techyaz.com/ubuntu/how-to-install-zabbix-on-ubuntu-server-16-04/#respond</comments>
		
		<dc:creator><![CDATA[Angelo Marquez]]></dc:creator>
		<pubDate>Thu, 29 Mar 2018 18:06:46 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Tools]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[zebbix]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=2002</guid>

					<description><![CDATA[<p>Zabbix is a great open source tool for monitoring servers mainly under the GNU/LINUX environment, specialized in networks with an important user base and an active community that is always contributing both in its development and in its support for&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/ubuntu/how-to-install-zabbix-on-ubuntu-server-16-04/">How to Install Zabbix on Ubuntu Server 16.04?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Zabbix is a great open source tool for monitoring servers mainly under the GNU/LINUX environment, specialized in networks with an important user base and an active community that is always contributing both in its development and in its support for users. Today we are going to install Zabbix on Ubuntu Server 16.04.</p>
<p><strong>Note:</strong> The language in some of the screenshots is not in English but the command we have executed in English language. You just need to run the given commands and execution in your screen will show based on your preferred language set on the system,</p>
<h3><span style="color: #333399;"><strong>Install Zabbix on Ubuntu 16.04</strong></span></h3>
<p>The first thing we have to do is update the system in order to have the latest security updates.</p>
<pre><span style="color: #0000ff;"><strong>sudo apt update &amp;&amp; sudo apt –y upgrade</strong></span></pre>
<p>With this composite command, we refresh the repository cache and at the same time say yes to updates.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2003" src="http://techyaz.com/wp-content/uploads/2018/03/1.png" alt="Run updates" width="605" height="87" srcset="https://techyaz.com/wp-content/uploads/2018/03/1.png 605w, https://techyaz.com/wp-content/uploads/2018/03/1-300x43.png 300w" sizes="auto, (max-width: 605px) 100vw, 605px" /></p>
<p>Once you will enter sudo password in above screen, a series of transactions will be executed as shown in below screenshot.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2004" src="http://techyaz.com/wp-content/uploads/2018/03/2-updates.png" alt="sudo apt-get updates" width="720" height="400" srcset="https://techyaz.com/wp-content/uploads/2018/03/2-updates.png 720w, https://techyaz.com/wp-content/uploads/2018/03/2-updates-300x167.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>Once we have the system updated, the next thing we need to do is to install a basic LAMP server to run the Zabbix and mysql frontend as database manager.</p>
<pre><span style="color: #0000ff;"><strong>sudo apt install apache2 libapache2-mod-php7.0 mysql-server-5.7 mysql-client php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php-xml php-mbstring php-bcmath</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2005" src="http://techyaz.com/wp-content/uploads/2018/03/3-install-LAMP-server.png" alt="Install LAMP server" width="719" height="88" srcset="https://techyaz.com/wp-content/uploads/2018/03/3-install-LAMP-server.png 719w, https://techyaz.com/wp-content/uploads/2018/03/3-install-LAMP-server-300x37.png 300w" sizes="auto, (max-width: 719px) 100vw, 719px" /></p>
<p>Once you will execute above command, you will be getting a sequence of executions as shown in below image.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2006" src="http://techyaz.com/wp-content/uploads/2018/03/4-LAMP-server-installation.png" alt="LAMP server installation" width="720" height="400" srcset="https://techyaz.com/wp-content/uploads/2018/03/4-LAMP-server-installation.png 720w, https://techyaz.com/wp-content/uploads/2018/03/4-LAMP-server-installation-300x167.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>Once the LAMP server is installed, we must edit the <strong>php. ini</strong> file to set our time zone correctly. In my case “America/Caracas”.</p>
<pre><span style="color: #0000ff;"><strong>sudo nano /etc/php/7.0/apache2/php.ini</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2007" src="http://techyaz.com/wp-content/uploads/2018/03/5-edit-time-zone.png" alt="Edit Time zone" width="598" height="88" srcset="https://techyaz.com/wp-content/uploads/2018/03/5-edit-time-zone.png 598w, https://techyaz.com/wp-content/uploads/2018/03/5-edit-time-zone-300x44.png 300w" sizes="auto, (max-width: 598px) 100vw, 598px" /></p>
<p>Once you will execute above command, you will get below screen to edit the time zone. Inside the archive, we locate the part where the time zone is established and edit it with our own.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2008" src="http://techyaz.com/wp-content/uploads/2018/03/6-edit-time-zone.png" alt="edit time zone" width="720" height="400" srcset="https://techyaz.com/wp-content/uploads/2018/03/6-edit-time-zone.png 720w, https://techyaz.com/wp-content/uploads/2018/03/6-edit-time-zone-300x167.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>Now we will restart Apache service using below command..</p>
<pre><span style="color: #0000ff;"><strong>sudo systmectl restart apache2.service</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2009" src="http://techyaz.com/wp-content/uploads/2018/03/7-Apache-service-restart.png" alt="Apache service restart" width="646" height="88" srcset="https://techyaz.com/wp-content/uploads/2018/03/7-Apache-service-restart.png 646w, https://techyaz.com/wp-content/uploads/2018/03/7-Apache-service-restart-300x41.png 300w" sizes="auto, (max-width: 646px) 100vw, 646px" /></p>
<p>Now we must add the Zabbix repository, to do this we must download a. deb file hosted on their website.</p>
<pre><span style="color: #0000ff;"><strong><em>wget </em><a style="color: #0000ff;" href="http://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+xenial_all.deb"><em>http://repo.zabbix.com/zabbix/3.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.4-1+xenial_all.deb</em></a></strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2010" src="http://techyaz.com/wp-content/uploads/2018/03/8-wget.png" alt="download the package" width="720" height="284" srcset="https://techyaz.com/wp-content/uploads/2018/03/8-wget.png 720w, https://techyaz.com/wp-content/uploads/2018/03/8-wget-300x118.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>And then install it to add the repository.</p>
<pre><span style="color: #0000ff;"><strong>sudo dpkg –i zabbix-release_3.4-1+xenial_all.deb
</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2011" src="http://techyaz.com/wp-content/uploads/2018/03/9-install.png" alt="install downloaded package" width="720" height="153" srcset="https://techyaz.com/wp-content/uploads/2018/03/9-install.png 720w, https://techyaz.com/wp-content/uploads/2018/03/9-install-300x64.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>Now we must refresh the program sources cache and install zabbix packages. Run below command to update the repository.</p>
<pre><span style="color: #0000ff;"><strong>sudo apt update</strong></span></pre>
<p>You can see the execution of above command.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2012" src="http://techyaz.com/wp-content/uploads/2018/03/10-sudo-apt-update.png" alt="run sudo apt update" width="706" height="133" srcset="https://techyaz.com/wp-content/uploads/2018/03/10-sudo-apt-update.png 706w, https://techyaz.com/wp-content/uploads/2018/03/10-sudo-apt-update-300x57.png 300w" sizes="auto, (max-width: 706px) 100vw, 706px" /></p>
<p>Run below command to initiate the execution.</p>
<pre><span style="color: #0000ff;"><strong>sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-agent</strong></span></pre>
<p>We can see the installation in below image.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2013" src="http://techyaz.com/wp-content/uploads/2018/03/11.png" alt="Install Zabbix" width="719" height="344" srcset="https://techyaz.com/wp-content/uploads/2018/03/11.png 719w, https://techyaz.com/wp-content/uploads/2018/03/11-300x144.png 300w" sizes="auto, (max-width: 719px) 100vw, 719px" /></p>
<p><strong>Configure MySQL</strong></p>
<p>In this step we must configure mysql, skip this if you already had an installation before.</p>
<pre><span style="color: #0000ff;"><strong>sudo mysql_secure_installation</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2014" src="http://techyaz.com/wp-content/uploads/2018/03/12-configure-mysql.png" alt="configure mysql" width="695" height="219" srcset="https://techyaz.com/wp-content/uploads/2018/03/12-configure-mysql.png 695w, https://techyaz.com/wp-content/uploads/2018/03/12-configure-mysql-300x95.png 300w" sizes="auto, (max-width: 695px) 100vw, 695px" /></p>
<p>To the questions we must answer yes or no according to our needs. For this tutorial, the answers to these questions are no problem. The important thing is to remember the Mysql root password.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2015" src="http://techyaz.com/wp-content/uploads/2018/03/13.png" alt="Install mysql" width="720" height="400" srcset="https://techyaz.com/wp-content/uploads/2018/03/13.png 720w, https://techyaz.com/wp-content/uploads/2018/03/13-300x167.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>Then we must log in to Mysql when entering the command, we must enter the root password.</p>
<pre><span style="color: #0000ff;"><strong>mysql –u root –p</strong></span></pre>
<p>Once inside, we must create the zabbix database.</p>
<pre><span style="color: #0000ff;"><strong>CREATE DATABASE zabbix</strong></span></pre>
<p>We then create and give permission to a new Mysql user to use zabbix. This is a good security practice for our server.</p>
<pre><span style="color: #0000ff;"><strong>GRANT ALL ON zabbix TO ‘zabbix’@localhost IDENTIFIED BY ‘zabbixpss’;</strong></span></pre>
<p>Replace&#8217; zabbixpss&#8217; with another username if you prefer, and&#8217; zabbixpss&#8217; with another password. you can see all above steps in below command.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2018" src="http://techyaz.com/wp-content/uploads/2018/03/16.png" alt="Connect to Mysql, create db and assign permission" width="720" height="400" srcset="https://techyaz.com/wp-content/uploads/2018/03/16.png 720w, https://techyaz.com/wp-content/uploads/2018/03/16-300x167.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>Next we must &#8220;copy&#8221; the configuration of Mysql to the new zabbix user.</p>
<pre><span style="color: #0000ff;"><strong>zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql –u zabbix –p</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2019" src="http://techyaz.com/wp-content/uploads/2018/03/18.png" alt="copy the configuration of Mysql to the new zabbix user" width="720" height="115" srcset="https://techyaz.com/wp-content/uploads/2018/03/18.png 720w, https://techyaz.com/wp-content/uploads/2018/03/18-300x48.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>However at this point I got the error of &#8220;No database selected&#8221;. Don&#8217;t worry, we&#8217;ll figure it out. To fix error 1046, we must first copy and unzip the MySql creation file.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2020" src="http://techyaz.com/wp-content/uploads/2018/03/19.png" alt="fix error 1046" width="690" height="88" srcset="https://techyaz.com/wp-content/uploads/2018/03/19.png 690w, https://techyaz.com/wp-content/uploads/2018/03/19-300x38.png 300w" sizes="auto, (max-width: 690px) 100vw, 690px" /></p>
<p>And then edit the “create.sql” file, we just must add USE zabbix; at the beginning of the file.</p>
<pre><span style="color: #0000ff;"><strong>nano create.sql</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2021" src="http://techyaz.com/wp-content/uploads/2018/03/20.png" alt="edit the file" width="720" height="400" srcset="https://techyaz.com/wp-content/uploads/2018/03/20.png 720w, https://techyaz.com/wp-content/uploads/2018/03/20-300x167.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>Save and we will be able to import the file.</p>
<pre><span style="color: #0000ff;"><strong>cat create.sql | mysql –u zabbix –p</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2022" src="http://techyaz.com/wp-content/uploads/2018/03/21.png" alt="import the saved file" width="674" height="88" srcset="https://techyaz.com/wp-content/uploads/2018/03/21.png 674w, https://techyaz.com/wp-content/uploads/2018/03/21-300x39.png 300w" sizes="auto, (max-width: 674px) 100vw, 674px" /></p>
<p>This completes the configuration process of the database manager.</p>
<p>Now we proceed to edit the configuration file of zabbix to add the database parameters that the application will use.</p>
<pre><span style="color: #0000ff;"><strong>sudo nano /etc/zabbix/zabbix_server.conf</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2023" src="http://techyaz.com/wp-content/uploads/2018/03/23.png" alt="edit the zabbix configuration parameters" width="689" height="88" srcset="https://techyaz.com/wp-content/uploads/2018/03/23.png 689w, https://techyaz.com/wp-content/uploads/2018/03/23-300x38.png 300w" sizes="auto, (max-width: 689px) 100vw, 689px" /></p>
<p>Verify below parameters from below screenshot.</p>
<p>DBHost=localhost</p>
<p>DBName=zabbix</p>
<p>DBUser=zabbix</p>
<p>DBPassword=zabbixpss</p>
<p>These parameters are the ones that we have to locate in the archive and change for the positions.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2024" src="http://techyaz.com/wp-content/uploads/2018/03/24.png" alt="edit the zabbix configuration file" width="720" height="400" srcset="https://techyaz.com/wp-content/uploads/2018/03/24.png 720w, https://techyaz.com/wp-content/uploads/2018/03/24-300x167.png 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></p>
<p>Then we must restart Apache2 and Zabbix services.</p>
<pre><span style="color: #0000ff;"><strong>sudo systemctl restart apache2.service</strong></span>
<span style="color: #0000ff;"><strong>sudo systemctl restart zabbix-server.service</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2025" src="http://techyaz.com/wp-content/uploads/2018/03/25.png" alt="restart the zabbix services" width="706" height="88" srcset="https://techyaz.com/wp-content/uploads/2018/03/25.png 706w, https://techyaz.com/wp-content/uploads/2018/03/25-300x37.png 300w" sizes="auto, (max-width: 706px) 100vw, 706px" /></p>
<p><strong>Configure Zabbix</strong></p>
<p>Now, it&#8217;s ready. We have to go to our web browser and access from the ip address of the server computer.</p>
<p><em><strong>http://IP_ADRESS/zabbix </strong></em></p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2026" src="http://techyaz.com/wp-content/uploads/2018/03/26-min.png" alt="Zabbix window" width="648" height="421" srcset="https://techyaz.com/wp-content/uploads/2018/03/26-min.png 917w, https://techyaz.com/wp-content/uploads/2018/03/26-min-300x195.png 300w, https://techyaz.com/wp-content/uploads/2018/03/26-min-768x499.png 768w" sizes="auto, (max-width: 648px) 100vw, 648px" /></p>
<p>Then we proceed to configure it, pressing next. We check that all prerequisites are satisfied.</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2027" src="http://techyaz.com/wp-content/uploads/2018/03/27-min.png" alt="Configure zabbix" width="659" height="327" srcset="https://techyaz.com/wp-content/uploads/2018/03/27-min.png 1350w, https://techyaz.com/wp-content/uploads/2018/03/27-min-300x149.png 300w, https://techyaz.com/wp-content/uploads/2018/03/27-min-768x381.png 768w, https://techyaz.com/wp-content/uploads/2018/03/27-min-1024x508.png 1024w" sizes="auto, (max-width: 659px) 100vw, 659px" /></p>
<p>In this screen we must configure the database parameters that we have made in the previous steps.</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2029" src="http://techyaz.com/wp-content/uploads/2018/03/28-min.png" alt="enter database details" width="661" height="328" srcset="https://techyaz.com/wp-content/uploads/2018/03/28-min.png 1350w, https://techyaz.com/wp-content/uploads/2018/03/28-min-300x149.png 300w, https://techyaz.com/wp-content/uploads/2018/03/28-min-768x381.png 768w, https://techyaz.com/wp-content/uploads/2018/03/28-min-1024x508.png 1024w" sizes="auto, (max-width: 661px) 100vw, 661px" /></p>
<p>Then you have to configure the server parameters. In this case, we leave it the same way.</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2030" src="http://techyaz.com/wp-content/uploads/2018/03/29-min-1024x508.png" alt="enter server details" width="662" height="328" srcset="https://techyaz.com/wp-content/uploads/2018/03/29-min-1024x508.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/29-min-300x149.png 300w, https://techyaz.com/wp-content/uploads/2018/03/29-min-768x381.png 768w, https://techyaz.com/wp-content/uploads/2018/03/29-min.png 1350w" sizes="auto, (max-width: 662px) 100vw, 662px" /></p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2032" src="http://techyaz.com/wp-content/uploads/2018/03/30-min-1024x508.png" alt="server details" width="660" height="327" srcset="https://techyaz.com/wp-content/uploads/2018/03/30-min-1024x508.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/30-min-300x149.png 300w, https://techyaz.com/wp-content/uploads/2018/03/30-min-768x381.png 768w, https://techyaz.com/wp-content/uploads/2018/03/30-min.png 1350w" sizes="auto, (max-width: 660px) 100vw, 660px" /></p>
<p>In the end if everything is correct we should see a screen like this.</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2033" src="http://techyaz.com/wp-content/uploads/2018/03/31-min-1024x508.png" alt="Successful window" width="670" height="332" srcset="https://techyaz.com/wp-content/uploads/2018/03/31-min-1024x508.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/31-min-300x149.png 300w, https://techyaz.com/wp-content/uploads/2018/03/31-min-768x381.png 768w, https://techyaz.com/wp-content/uploads/2018/03/31-min.png 1350w" sizes="auto, (max-width: 670px) 100vw, 670px" /></p>
<p>Finally we can now access through the following form:</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2034" src="http://techyaz.com/wp-content/uploads/2018/03/32-min-1024x469.png" alt="Zabbix login screen" width="670" height="307" srcset="https://techyaz.com/wp-content/uploads/2018/03/32-min-1024x469.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/32-min-300x137.png 300w, https://techyaz.com/wp-content/uploads/2018/03/32-min-768x352.png 768w, https://techyaz.com/wp-content/uploads/2018/03/32-min-980x450.png 980w, https://techyaz.com/wp-content/uploads/2018/03/32-min.png 1366w" sizes="auto, (max-width: 670px) 100vw, 670px" /></p>
<p>Username: admin</p>
<p>Password: zabbix</p>
<p>And after that, we&#8217;ll have the main view with our zabbix running on the server.</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2035" src="http://techyaz.com/wp-content/uploads/2018/03/33-min-1024x854.png" alt="Zabbix Home window" width="679" height="566" srcset="https://techyaz.com/wp-content/uploads/2018/03/33-min-1024x854.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/33-min-300x250.png 300w, https://techyaz.com/wp-content/uploads/2018/03/33-min-768x640.png 768w, https://techyaz.com/wp-content/uploads/2018/03/33-min.png 1349w" sizes="auto, (max-width: 679px) 100vw, 679px" /></p>
<p>As a conclusion we can say that Zabbix is a great open source application for server monitoring, its installation in server is relatively simple and is very useful to all system administrators.</p>
<p><em><strong><span style="color: #800000;">Read More:</span></strong></em></p>
<ul>
<li><strong><a href="http://techyaz.com/rhel/install-htop-monitor-linux-processes/" target="_blank" rel="noopener">How to Install and Use HTop on Linux system?</a></strong></li>
<li><strong><a href="http://techyaz.com/debian/install-pgadmin-4-in-debian-9-stretch/" target="_blank" rel="noopener">Installing PgAdmin 4 on Debian Stretch</a></strong></li>
<li><strong><a href="http://techyaz.com/rhel/red-hat-enterprise-linux-interview-questions-answers/" target="_blank" rel="noopener">RHEL Interview Questions and Answers</a></strong></li>
</ul>
<p>&nbsp;</p>
<p>The post <a href="https://techyaz.com/ubuntu/how-to-install-zabbix-on-ubuntu-server-16-04/">How to Install Zabbix on Ubuntu Server 16.04?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/ubuntu/how-to-install-zabbix-on-ubuntu-server-16-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>11 Examples of ls Command to List Files in Linux</title>
		<link>https://techyaz.com/linux/11-examples-ls-command-list-files-linux/</link>
					<comments>https://techyaz.com/linux/11-examples-ls-command-list-files-linux/#respond</comments>
		
		<dc:creator><![CDATA[Angelo Marquez]]></dc:creator>
		<pubDate>Tue, 20 Mar 2018 10:21:41 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[Linux Interview Questions and Answers]]></category>
		<category><![CDATA[Linux Tools]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1958</guid>

					<description><![CDATA[<p>Normally, the work of system administrators consists of an almost permanent use of the terminal; this is because servers with GNU/LINUX-based systems, for security reasons, do not have a graphical desktop environment. And this means that we have to use&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/linux/11-examples-ls-command-list-files-linux/">11 Examples of ls Command to List Files in Linux</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Normally, the work of system administrators consists of an almost permanent use of the terminal; this is because servers with GNU/LINUX-based systems, for security reasons, do not have a graphical desktop environment. And this means that we have to use the terminal for basically everything from the simplest or most complex tasks. Today we will learn the <strong>ls</strong> command utility that allows us to list files and folders from the terminal. Here we will also describe different combinations and options that can be used with ls command to get different output.</p>
<h3><span style="color: #333399;"><strong>LIST FILES IN LINUX: &#8220;ls&#8221; COMMAND</strong></span><strong> </strong></h3>
<p>As it was said, the command <strong>ls</strong> allows you to list files and folders of a specific path, is easy to use and is very useful and used in the daily work. The command has several options to improve the listings. In a terminal, we can invoke the help of the command <strong>ls</strong> in this way.</p>
<pre><span style="color: #0000ff;"><strong>ls --help</strong><strong> </strong></span></pre>
<p>Above command will display all options available for ls command to list the files and folders. In this way we get the syntax of usage and options as output per terminal.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1959" src="http://techyaz.com/wp-content/uploads/2018/03/1-ls-cmd-min.png" alt="List all ls command options" width="758" height="736" srcset="https://techyaz.com/wp-content/uploads/2018/03/1-ls-cmd-min.png 758w, https://techyaz.com/wp-content/uploads/2018/03/1-ls-cmd-min-300x291.png 300w" sizes="auto, (max-width: 758px) 100vw, 758px" /></p>
<p>As all options will not cover in one single screenshot so i have scrolled the above screen and taken another screenshots to cover all options in screenshots that has been displayed below.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1960" src="http://techyaz.com/wp-content/uploads/2018/03/2-ls-cmd-min.png" alt="Display all ls command options" width="764" height="736" srcset="https://techyaz.com/wp-content/uploads/2018/03/2-ls-cmd-min.png 764w, https://techyaz.com/wp-content/uploads/2018/03/2-ls-cmd-min-300x289.png 300w" sizes="auto, (max-width: 764px) 100vw, 764px" /></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1961" src="http://techyaz.com/wp-content/uploads/2018/03/3-ls-cmd-min.png" alt="Display all ls command options" width="750" height="736" srcset="https://techyaz.com/wp-content/uploads/2018/03/3-ls-cmd-min.png 750w, https://techyaz.com/wp-content/uploads/2018/03/3-ls-cmd-min-300x294.png 300w" sizes="auto, (max-width: 750px) 100vw, 750px" /></p>
<p>As we can see the documentation is extensive, but don&#8217;t worry we will examine the most useful and used options. The basic syntax of the command is:</p>
<pre><span style="color: #0000ff;"><strong>ls [options] [file|dir]</strong></span></pre>
<p>Although it is possible to use ls from the most basic form only by typing:</p>
<pre><span style="color: #008000;"><strong>#List files from your given directory.</strong></span>
<span style="color: #0000ff;"><strong>ls</strong></span></pre>
<p>With this we only list the files that are in the directory where we are located in the terminal. For example, if we wanted to list everything in the root directory of our GNU/LINUX distribution it would be with the command:</p>
<pre><span style="color: #008000;"><strong>#List everything in the root directory</strong></span>
<span style="color: #0000ff;"><strong>ls /</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1962" src="http://techyaz.com/wp-content/uploads/2018/03/4-ls-cmd-min-1024x150.png" alt="Run ls / to display all directories" width="1024" height="150" srcset="https://techyaz.com/wp-content/uploads/2018/03/4-ls-cmd-min-1024x150.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/4-ls-cmd-min-300x44.png 300w, https://techyaz.com/wp-content/uploads/2018/03/4-ls-cmd-min-768x112.png 768w, https://techyaz.com/wp-content/uploads/2018/03/4-ls-cmd-min.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>It was easy, wasn&#8217;t it?</p>
<h5><span style="color: #993300;">Most Important Options of the Command &#8220;ls&#8221;</span></h5>
<p><strong>ls</strong> as well as all GNU/LINUX commands have options that modify the basic command execution result. Here is a list of the most outstanding ones for this command.</p>
<table style="height: 441px;" width="784">
<tbody>
<tr>
<td width="198"><strong>Options</strong></td>
<td width="374"><strong>Description</strong></td>
</tr>
<tr>
<td width="198">-a</td>
<td width="374"> Do not ignore entries starting with .</td>
</tr>
<tr>
<td width="198">-A</td>
<td width="374"> Do not list implied . And ..</td>
</tr>
<tr>
<td width="198">-d</td>
<td width="374">List directories themselves, not their contents</td>
</tr>
<tr>
<td width="198">-i</td>
<td width="374">print the index number of each file</td>
</tr>
<tr>
<td width="198">-l</td>
<td width="374">Use a long listing format.  Displays information such as permissions and owner of the folder or file.</td>
</tr>
<tr>
<td width="198">-r</td>
<td width="374">reverse order while sorting</td>
</tr>
<tr>
<td width="198">-R</td>
<td width="374">List subdirectories recursively.  Displays the contents of the directory subfolders.</td>
</tr>
<tr>
<td width="198">-s</td>
<td width="374">print the allocated size of each file, in blocks</td>
</tr>
<tr>
<td width="198">-S</td>
<td width="374">sort by file size, largest first</td>
</tr>
<tr>
<td width="198">-t</td>
<td width="374">sort by modification time, newest first</td>
</tr>
<tr>
<td width="198">-U</td>
<td width="374">do not sort; list entries in directory order</td>
</tr>
<tr>
<td style="text-align: left;" width="198">-X</td>
<td style="text-align: left;" width="374">sort alphabetically by entry extension</td>
</tr>
</tbody>
</table>
<h3><span style="color: #333399;"> Examples of Command &#8220;ls&#8221;</span></h3>
<p>Here i have given different examples of command ls that you can use to fulfill different requirements.</p>
<h5><span style="color: #993300;">List Hidden Files </span></h5>
<p>We can use option -a if we want to list the hidden files of a specific folder, it would be enough to write:</p>
<pre><span style="color: #0000ff;"><strong>ls –a path</strong></span></pre>
<p>In my case it would be something like that:</p>
<pre><span style="color: #0000ff;"><strong>ls –a /home/angelo/</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1963" src="http://techyaz.com/wp-content/uploads/2018/03/5-ls-cmd-min-1024x217.png" alt="list hidden files in Linux" width="1024" height="217" srcset="https://techyaz.com/wp-content/uploads/2018/03/5-ls-cmd-min-1024x217.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/5-ls-cmd-min-300x63.png 300w, https://techyaz.com/wp-content/uploads/2018/03/5-ls-cmd-min-768x162.png 768w, https://techyaz.com/wp-content/uploads/2018/03/5-ls-cmd-min.png 1182w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>You can see all hidden files as well in above screenshot. We can identify hidden files by looking at the output as such files or folders start with dot (.).</p>
<h5><span style="color: #993300;">Display Files with their Index Number</span></h5>
<p>We can list files with their index number by running below command. To show files/folders with their index number we will use the option –i along with command ls. You can see i have used below command and output is showing in below image.</p>
<pre><span style="color: #0000ff;"><strong>ls -i /home/angelo/
</strong></span><strong><em> </em></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1964" src="http://techyaz.com/wp-content/uploads/2018/03/6-ls-cmd-min-1024x195.png" alt="List folders with index number" width="1024" height="195" srcset="https://techyaz.com/wp-content/uploads/2018/03/6-ls-cmd-min-1024x195.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/6-ls-cmd-min-300x57.png 300w, https://techyaz.com/wp-content/uploads/2018/03/6-ls-cmd-min-768x147.png 768w, https://techyaz.com/wp-content/uploads/2018/03/6-ls-cmd-min.png 1142w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<h5><span style="color: #993300;">List Files with full Details (Permissions, Index no, Owner, Create Date etc.)</span></h5>
<p>We can use ls command to display information such as permissions and owner of the folder or file. We will be using option -I to show complete information about files and folders as shown in below screenshot.</p>
<pre><span style="color: #0000ff;"><strong>ls -l /home/angelo/</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1965" src="http://techyaz.com/wp-content/uploads/2018/03/7-ls-cmd-min.png" alt="Display all details of folders and files" width="778" height="462" srcset="https://techyaz.com/wp-content/uploads/2018/03/7-ls-cmd-min.png 778w, https://techyaz.com/wp-content/uploads/2018/03/7-ls-cmd-min-300x178.png 300w, https://techyaz.com/wp-content/uploads/2018/03/7-ls-cmd-min-768x456.png 768w" sizes="auto, (max-width: 778px) 100vw, 778px" /></p>
<p>This output shows us more specific information about what we have in the folder: First it shows the permissions on the folder, its index number, the owner of the folder, who created the folder, its size in kb, the date it was modified and the folder name.</p>
<h5><span style="color: #993300;">List Files or Folders in a Reverse Order</span></h5>
<p>ls command also gives an option to sort files and folders in reverse order. We can use -r option to show files and folders in a reverse order as shown in below screenshot after running below command.</p>
<pre><span style="color: #0000ff;"><strong>ls –r  /home/angelo/</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1966" src="http://techyaz.com/wp-content/uploads/2018/03/8-ls-cmd-min-1024x139.png" alt="Display files and folders in reverse order" width="1024" height="139" srcset="https://techyaz.com/wp-content/uploads/2018/03/8-ls-cmd-min-1024x139.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/8-ls-cmd-min-300x41.png 300w, https://techyaz.com/wp-content/uploads/2018/03/8-ls-cmd-min-768x105.png 768w, https://techyaz.com/wp-content/uploads/2018/03/8-ls-cmd-min.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<h5><span style="color: #993300;">List Subdirectories Recursively</span></h5>
<p>We can List subdirectories recursively by adding the -R option with ls command.  It will display the contents of the directory subfolders. Run below command to display the result.</p>
<pre><span style="color: #0000ff;"><strong>ls –R /home/angelo/</strong></span></pre>
<h5><strong><em> </em></strong><span style="color: #993300;">Display list of Directories Only</span></h5>
<p>We can use -d and an asterisk option to list and show only the directories. Have a look at below command that has displayed the list of directories under /home/angelo.</p>
<pre><span style="color: #0000ff;"><strong>ls –d */home/angelo/</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1967" src="http://techyaz.com/wp-content/uploads/2018/03/9-ls-cmd-min.png" alt="Show directories with astrick" width="980" height="184" srcset="https://techyaz.com/wp-content/uploads/2018/03/9-ls-cmd-min.png 980w, https://techyaz.com/wp-content/uploads/2018/03/9-ls-cmd-min-300x56.png 300w, https://techyaz.com/wp-content/uploads/2018/03/9-ls-cmd-min-768x144.png 768w" sizes="auto, (max-width: 980px) 100vw, 980px" /></p>
<h5><span style="color: #993300;">Display Files Sort by their File Size</span></h5>
<p>Run below command to display files sort by file size. It is possible with the option –S.</p>
<pre><span style="color: #0000ff;"><strong>ls -S /home/angelo/</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1968" src="http://techyaz.com/wp-content/uploads/2018/03/10-ls-cmd-min-1024x145.png" alt="Display files sort by file size" width="1024" height="145" srcset="https://techyaz.com/wp-content/uploads/2018/03/10-ls-cmd-min-1024x145.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/10-ls-cmd-min-300x42.png 300w, https://techyaz.com/wp-content/uploads/2018/03/10-ls-cmd-min-768x108.png 768w, https://techyaz.com/wp-content/uploads/2018/03/10-ls-cmd-min.png 1260w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<h5><span style="color: #993300;">Sort by Date/Time</span></h5>
<p>We can option -t to display files sort by date/time. Run below command to see the output that is also showing in below screenshot.</p>
<pre><span style="color: #0000ff;"><strong>ls –t /home/angelo/</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1969" src="http://techyaz.com/wp-content/uploads/2018/03/11-ls-cmd-min-1024x152.png" alt="Display files sort by date time" width="1024" height="152" srcset="https://techyaz.com/wp-content/uploads/2018/03/11-ls-cmd-min-1024x152.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/11-ls-cmd-min-300x45.png 300w, https://techyaz.com/wp-content/uploads/2018/03/11-ls-cmd-min-768x114.png 768w, https://techyaz.com/wp-content/uploads/2018/03/11-ls-cmd-min.png 1252w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<h5><span style="color: #993300;">Display Files as they were Created</span></h5>
<p>Use option -U to show folders and files in no order at all. It will display just as they are created.</p>
<pre><span style="color: #0000ff;"><strong>ls –U /home/angelo/</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1970 size-large" src="http://techyaz.com/wp-content/uploads/2018/03/12-ls-cmd-min-1024x132.png" alt="Display Files as they were created" width="1024" height="132" srcset="https://techyaz.com/wp-content/uploads/2018/03/12-ls-cmd-min-1024x132.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/12-ls-cmd-min-300x39.png 300w, https://techyaz.com/wp-content/uploads/2018/03/12-ls-cmd-min-768x99.png 768w, https://techyaz.com/wp-content/uploads/2018/03/12-ls-cmd-min.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<h5><span style="color: #993300;">Sort by File Extension</span></h5>
<p>We can use option -X with ls command to sort files by their extension names. You can see this in below screenshot.</p>
<pre><span style="color: #0000ff;"><strong>ls –X /home/angelo/</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1971" src="http://techyaz.com/wp-content/uploads/2018/03/13-ls-cmd-min-1024x142.png" alt="Display files sort by file extension" width="1024" height="142" srcset="https://techyaz.com/wp-content/uploads/2018/03/13-ls-cmd-min-1024x142.png 1024w, https://techyaz.com/wp-content/uploads/2018/03/13-ls-cmd-min-300x42.png 300w, https://techyaz.com/wp-content/uploads/2018/03/13-ls-cmd-min-768x107.png 768w, https://techyaz.com/wp-content/uploads/2018/03/13-ls-cmd-min.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<h5><span style="color: #993300;">Sort by Modified Files</span></h5>
<p>We can use combination of options <strong>-ltr</strong> to show last modification file or directory date. Simply run below command to display the output.</p>
<pre><strong><span style="color: #0000ff;">ls -lrt</span></strong>

<strong><span style="color: #0000ff;">ls -lrt [path]</span></strong></pre>
<p>In conclusion we can say that the <strong>ls</strong> command, even when it is relatively easy to use, is one of the tools most used by system administrators.</p>
<p>I hope you like this article. Please follow our <a href="https://www.facebook.com/Techyaz/">Facebook</a> page and <a href="https://twitter.com/Tech_yaz">Twitter</a> handle to get latest updates.</p>
<p><span style="color: #800000;"><em><strong>Read More:</strong></em></span></p>
<ul>
<li><strong><a href="http://techyaz.com/rhel/red-hat-enterprise-linux-interview-questions-answers/" target="_blank" rel="noopener">RHEL Interview Questions &amp; Answers</a></strong></li>
<li><strong><a href="http://techyaz.com/rhel/linux-user-administration-add-delete-modify-user-accounts/" target="_blank" rel="noopener">Linux User Administration &#8211; Add, Delete &amp; Modify User Accounts</a></strong></li>
<li><strong><a href="http://techyaz.com/rhel/install-htop-monitor-linux-processes/" target="_blank" rel="noopener">Install HTop and Use it to Monitor Linux Processes</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/sql-server-on-linux/change-hostname-red-hat-linux-server/" target="_blank" rel="noopener">How to Change Host Name of RHEL system?</a></strong></li>
<li><strong><a href="http://techyaz.com/rhel/how-to-reset-or-change-user-password-on-linux/" target="_blank" rel="noopener">How to Reset or Change Linux User Account Passwords?</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/linux/11-examples-ls-command-list-files-linux/">11 Examples of ls Command to List Files in Linux</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/linux/11-examples-ls-command-list-files-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Linux User Administration &#8211; Add, Delete &#038; Modify User Accounts</title>
		<link>https://techyaz.com/linux/linux-user-administration-add-delete-modify-user-accounts/</link>
					<comments>https://techyaz.com/linux/linux-user-administration-add-delete-modify-user-accounts/#respond</comments>
		
		<dc:creator><![CDATA[Angelo Marquez]]></dc:creator>
		<pubDate>Mon, 12 Mar 2018 10:41:35 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[red hat Linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[user]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1906</guid>

					<description><![CDATA[<p>In IT’s World, it is common to hear about system users, especially if you work in the administration of systems under that environment. GNU/LINUX is a multiuser and reliable operating system in terms of security, but it is always good&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/linux/linux-user-administration-add-delete-modify-user-accounts/">Linux User Administration &#8211; Add, Delete &#038; Modify User Accounts</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In IT’s World, it is common to hear about system users, especially if you work in the administration of systems under that environment. GNU/LINUX is a multiuser and reliable operating system in terms of security, but it is always good to know the basics of managing system users. Well, today we&#8217;ll be talking about creating, modifying and deleting users in the GNU/LINUX systems. Here, i will explain how to add user to Linux and Modify or remove user to Linux machine.</p>
<h3><span style="color: #333399;">USERS IN GNU/LINUX<strong> </strong></span></h3>
<p>The first thing we need to know is that, in GNU/LINUX there are different types of users already predefined and each of them have different characteristics for the correct functioning of the system. The first of these is the <strong>root</strong> user.</p>
<p><strong>Root user</strong></p>
<p>The Root user is the administrator of the operating system, with all options and permissions to perform operations and changes in the system. Its main features are:</p>
<ul>
<li>It is the only user account with system-wide privileges.</li>
<li>In charge of controlling the administration of user accounts.</li>
<li>It is the only user that can stop the system.</li>
<li>The root user can install, uninstall and update basic system programs and libraries.</li>
</ul>
<p>In other words, the root user is the all-powerful user of the system.</p>
<p><strong>Special Users</strong><strong> </strong></p>
<p>They are also called users without login. Their roles in the system are determined by the addition of installed programs. They are distinguished by:</p>
<ul>
<li>They are created (usually) automatically at the time of Linux or application installation.</li>
<li>It does not have all the privileges of the root user, but depending on the account they assume different root privileges.</li>
<li>They are created when installing the system or any of its extra components.</li>
<li>Some of them are: bin, daemon, adm, lp, sync, shutdown, mail, operator, squid, apache</li>
</ul>
<p><strong>Common Users</strong><strong> </strong></p>
<p>These last users are us. That is, they are accounts that are created to use all accessible parts of the system, such as assigned programs and directories. They have a Home directory where they can easily access their documents and files.</p>
<ul>
<li>Such users have only full privileges in their working directory or HOME.</li>
<li>They are used for individual users.</li>
<li>These users do not have privileges to manage the system or install software.<strong> </strong></li>
</ul>
<h5><span style="color: #993300;"><strong>How to Create or Add USERS TO Linux Systems?</strong></span></h5>
<p>The adduser command is a &#8220;new&#8221; alternative to the useradd binary that allows us to add common users to our GNU/LINUX distribution. It is much more &#8220;friendly&#8221; and intuitive than useradd and allows us to add additional information about the new user. Here we will learn how to create user on Linux system.</p>
<p>In order to use the adduser command we must be root users, for that reason write the following command in a terminal</p>
<pre><span style="color: #008000;"><strong>#Connect using su.</strong></span>
<span style="color: #0000ff;"><strong>su</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1907" src="http://techyaz.com/wp-content/uploads/2018/03/1-su-min.png" alt="" width="648" height="110" srcset="https://techyaz.com/wp-content/uploads/2018/03/1-su-min.png 648w, https://techyaz.com/wp-content/uploads/2018/03/1-su-min-300x51.png 300w" sizes="auto, (max-width: 648px) 100vw, 648px" /></p>
<p>You need to write the root password then we can use adduser. The most basic way to use the adduser command is:</p>
<pre><span style="color: #0000ff;"><strong>adduser new_user</strong><strong> </strong></span></pre>
<p>where new_user is the name of user account. With this &#8220;basic&#8221; form a new user is created and by giving Enter we are asked to enter the new password for this new user account.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1908" src="http://techyaz.com/wp-content/uploads/2018/03/2-adduser-min.png" alt="Add Linux User" width="599" height="191" srcset="https://techyaz.com/wp-content/uploads/2018/03/2-adduser-min.png 599w, https://techyaz.com/wp-content/uploads/2018/03/2-adduser-min-300x96.png 300w" sizes="auto, (max-width: 599px) 100vw, 599px" /></p>
<p>Type the password for your new user account and press Enter. Prompt will ask you to reenter the same password. Re-enter the password and press enter button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1909" src="http://techyaz.com/wp-content/uploads/2018/03/3-enter-password-min.png" alt="Set Password for New User in Linux" width="567" height="193" srcset="https://techyaz.com/wp-content/uploads/2018/03/3-enter-password-min.png 567w, https://techyaz.com/wp-content/uploads/2018/03/3-enter-password-min-300x102.png 300w" sizes="auto, (max-width: 567px) 100vw, 567px" /></p>
<p>After that you will be asked for any additional information such as Full Name, phone number etc.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1910" src="http://techyaz.com/wp-content/uploads/2018/03/4-fullName-min.png" alt="Enter User Account Details" width="588" height="244" srcset="https://techyaz.com/wp-content/uploads/2018/03/4-fullName-min.png 588w, https://techyaz.com/wp-content/uploads/2018/03/4-fullName-min-300x124.png 300w" sizes="auto, (max-width: 588px) 100vw, 588px" /></p>
<p>At the end, prompt will ask us to confirm the information provided. Type Y to proceed if all information is correct.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1911" src="http://techyaz.com/wp-content/uploads/2018/03/5-enter-details-min.png" alt="Enter User Details" width="587" height="343" srcset="https://techyaz.com/wp-content/uploads/2018/03/5-enter-details-min.png 587w, https://techyaz.com/wp-content/uploads/2018/03/5-enter-details-min-300x175.png 300w" sizes="auto, (max-width: 587px) 100vw, 587px" /></p>
<p>Now, as mentioned above, that is the most basic way to create a user but adduser also has options and alternatives to create users. These alternatives are given by the options that can be added to the command, some of them are:</p>
<pre><strong><span style="color: #0000ff;">adduser [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID]</span></strong>
<strong><span style="color: #0000ff;">[--firstuid ID] [--lastuid ID] [--gecos GECOS] [--ingroup GROUP | --gid ID]</span></strong>
<strong><span style="color: #0000ff;">[--disabled-password] [--disabled-login] [--add_extra_groups] USER

</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1912" src="http://techyaz.com/wp-content/uploads/2018/03/6-adduser-options-min.png" alt="Add Linux User options" width="691" height="562" srcset="https://techyaz.com/wp-content/uploads/2018/03/6-adduser-options-min.png 691w, https://techyaz.com/wp-content/uploads/2018/03/6-adduser-options-min-300x244.png 300w" sizes="auto, (max-width: 691px) 100vw, 691px" /></p>
<p>You can see various options available with adduser command in above screenshot. Let&#8217;s look at example. If you would like to add a user named <em>angelob</em>, and set their home directory to <em>/opt/angelob/</em> the the command will be as follows.</p>
<pre><strong><span style="color: #0000ff;">adduser --home /opt/angelob/ angelob</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1913" src="http://techyaz.com/wp-content/uploads/2018/03/7-adduser-min.png" alt="Add User" width="634" height="192" srcset="https://techyaz.com/wp-content/uploads/2018/03/7-adduser-min.png 634w, https://techyaz.com/wp-content/uploads/2018/03/7-adduser-min-300x91.png 300w" sizes="auto, (max-width: 634px) 100vw, 634px" /></p>
<p>And then it will ask us for the new password and basic user information. This way you can add user to Linux system.</p>
<h5><span style="color: #993300;"><strong>How to Delete Linux User Accounts?</strong></span><strong> </strong></h5>
<p>As in above section we have learnt how to create user on Linux system. Here i will explain how remove user from Linux system. Removing users from the Linux system is simple and the command to do so is <em><strong>userdel</strong></em> and has many fewer options to make the task. You can see the descriptions for this command in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1914" src="http://techyaz.com/wp-content/uploads/2018/03/8-deleteuser-min.png" alt="Delete Linux User" width="704" height="254" srcset="https://techyaz.com/wp-content/uploads/2018/03/8-deleteuser-min.png 704w, https://techyaz.com/wp-content/uploads/2018/03/8-deleteuser-min-300x108.png 300w" sizes="auto, (max-width: 704px) 100vw, 704px" /></p>
<p>The easiest way to delete a user is to remove it by running below command. Here user is the name of user account.</p>
<pre><span style="color: #0000ff;"><strong><span style="color: #008000;">#user is the name of user account.</span>
userdel user</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1915" src="http://techyaz.com/wp-content/uploads/2018/03/9-deleteuser-min.png" alt="Remove Linux User" width="605" height="103" srcset="https://techyaz.com/wp-content/uploads/2018/03/9-deleteuser-min.png 605w, https://techyaz.com/wp-content/uploads/2018/03/9-deleteuser-min-300x51.png 300w" sizes="auto, (max-width: 605px) 100vw, 605px" /></p>
<p>We can also delete your entire personal directory with the -r option. Run below command to do this.</p>
<pre><span style="color: #0000ff;"><strong>userdel -r user</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1916" src="http://techyaz.com/wp-content/uploads/2018/03/10-userdeletion-min.png" alt="Drop Linux user" width="629" height="98" srcset="https://techyaz.com/wp-content/uploads/2018/03/10-userdeletion-min.png 629w, https://techyaz.com/wp-content/uploads/2018/03/10-userdeletion-min-300x47.png 300w" sizes="auto, (max-width: 629px) 100vw, 629px" /></p>
<h5><span style="color: #993300;"><strong>How to Modify Linux User Accounts?</strong><strong> </strong></span></h5>
<p>I have shown how to remove Linux user  in above section. Here, i will explain how to modify a Linux user. To modify users in the GNU/LINUX system we use the command <strong><em>usermod</em></strong>. We can see in the following image the possibilities shown in command:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1917" src="http://techyaz.com/wp-content/uploads/2018/03/11-modifyuser-min.png" alt="Modify Linux User" width="705" height="572" srcset="https://techyaz.com/wp-content/uploads/2018/03/11-modifyuser-min.png 705w, https://techyaz.com/wp-content/uploads/2018/03/11-modifyuser-min-300x243.png 300w" sizes="auto, (max-width: 705px) 100vw, 705px" /></p>
<p>For example, if we wanted to change the password of a created user, it would be as follows.</p>
<pre><span style="color: #008000;"><strong>#user is the name of Linux user account.</strong></span>
<span style="color: #0000ff;"><strong>usermod -p ‘new_password’ user</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1918" src="http://techyaz.com/wp-content/uploads/2018/03/12-modifyuser-min.png" alt="modify linux users" width="654" height="109" srcset="https://techyaz.com/wp-content/uploads/2018/03/12-modifyuser-min.png 654w, https://techyaz.com/wp-content/uploads/2018/03/12-modifyuser-min-300x50.png 300w" sizes="auto, (max-width: 654px) 100vw, 654px" /></p>
<p>Obviously this method is not recommended because it leaves the password visible. Be careful. Read below article if you want to change your Linux user account password.</p>
<ul>
<li><strong><a href="http://techyaz.com/rhel/how-to-reset-or-change-user-password-on-linux/" target="_blank" rel="noopener">How to Reset or Change User Password on RHEL?</a></strong></li>
</ul>
<p>Another useful example is to move the personal folder of the desired user to another one, for it we must combine the options -d and -m in the following way.</p>
<p><span style="color: #0000ff;"><strong>usermod -d /opt/angelob1/ -m angelob</strong></span></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1919" src="http://techyaz.com/wp-content/uploads/2018/03/13-modifyuser-min.png" alt="Modify Linux user" width="619" height="107" srcset="https://techyaz.com/wp-content/uploads/2018/03/13-modifyuser-min.png 619w, https://techyaz.com/wp-content/uploads/2018/03/13-modifyuser-min-300x52.png 300w" sizes="auto, (max-width: 619px) 100vw, 619px" /></p>
<p>With the rest of the options, we only have to place them according to our needs.</p>
<p>In conclusion we can say that the administration of GNU/LINUX users is a matter for system administrators, the subject is wide and with many options to take into account for the creation of them.</p>
<p><em>Adduser</em> simplifies the creation of user accounts and <em>usermod</em> allows us to modify them in a very fast and dynamic way. And if a user has already completed his life cycle in the system, we can remove it with <em>userdel</em>.</p>
<p>I hope this small guide has been useful to understand a little bit about GNU/LINUX users, clarifying that the commands explained in the article can be used in all popular distributions such as Ubuntu, Red Hat, Suse, Debian and others.<br />
I hope you like this article. Please follow our <a href="https://www.facebook.com/Techyaz/">Facebook</a> page and <a href="https://twitter.com/Tech_yaz">Twitter</a> handle to get latest updates.</p>
<p><em><span style="color: #800000;"><strong>Read More:</strong></span></em></p>
<ul>
<li><strong><a href="http://techyaz.com/rhel/red-hat-enterprise-linux-interview-questions-answers/" target="_blank" rel="noopener">RHEL Interview Questions and Answers</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/sql-server-on-linux/change-hostname-red-hat-linux-server/" target="_blank" rel="noopener">How to Change Hostname of RHEL system?</a></strong></li>
<li><strong><a href="http://techyaz.com/rhel/install-htop-monitor-linux-processes/" target="_blank" rel="noopener">How to Install and Use Htop to Monitor Linux Processes?</a></strong></li>
<li><strong><a href="http://techyaz.com/debian/how-to-install-debian-9-stretch/" target="_blank" rel="noopener">Install Debian 9 Stretch in Step by Step Process</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/linux/linux-user-administration-add-delete-modify-user-accounts/">Linux User Administration &#8211; Add, Delete &#038; Modify User Accounts</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/linux/linux-user-administration-add-delete-modify-user-accounts/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install Htop and Use it to Monitor Linux Processes?</title>
		<link>https://techyaz.com/linux/install-htop-monitor-linux-processes/</link>
					<comments>https://techyaz.com/linux/install-htop-monitor-linux-processes/#respond</comments>
		
		<dc:creator><![CDATA[Angelo Marquez]]></dc:creator>
		<pubDate>Tue, 20 Feb 2018 08:16:55 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Tools]]></category>
		<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Htop]]></category>
		<category><![CDATA[red hat Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1880</guid>

					<description><![CDATA[<p>Generally, we run lot of commands to get informations for Linux processes. We can use a tool name Htop to avoid running multiple commands and get lot of valuable information in one screen. Htop is an interactive process viewer tool&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/linux/install-htop-monitor-linux-processes/">How to Install Htop and Use it to Monitor Linux Processes?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Generally, we run lot of commands to get informations for Linux processes. We can use a tool name Htop to avoid running multiple commands and get lot of valuable information in one screen. Htop is an interactive process viewer tool for Linux systems that will show all processes in a Task Manager without wasting resources. Here, i will show you how to install Htop and its uses to monitor the Linux processes.</p>
<p><a href="http://hisham.hm/htop/">HTOP</a> is a process viewer on the terminal created for the entire Unix family but has great popularity within GNU/LINUX. The main advantages of this tool are that we can monitor processes, finalize and explore them all from the terminal which guarantees a minimum expenditure of resources.</p>
<p>&nbsp;</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1882" src="http://techyaz.com/wp-content/uploads/2018/02/1-htop-min.jpg" alt="htop screen" width="480" height="360" srcset="https://techyaz.com/wp-content/uploads/2018/02/1-htop-min.jpg 480w, https://techyaz.com/wp-content/uploads/2018/02/1-htop-min-300x225.jpg 300w" sizes="auto, (max-width: 480px) 100vw, 480px" /></p>
<h3><span style="color: #333399;">How to Install Htop on Various Linux Systems?</span></h3>
<p>We can install Htop from your sources or simply from pre-compiled packages. However, Htop is found in most GNU/LINUX distributions through its main repositories. Please have a look at the step by step process to install Htop on Debian, RHEL, Ubuntu and other Linux systems.</p>
<h5><span style="color: #993300;">Install Htop on Debian 8 Jessie and Debian 9 Stretch</span></h5>
<p>The first thing we need to do is login as root. Type <em><strong>su</strong></em> on your terminal window and press enter followed by typing its password.</p>
<pre><span style="color: #0000ff;"><strong>su</strong></span></pre>
<p>Once you will be connected using su account, run below command to install Htop on Debian systems.</p>
<pre><span style="color: #0000ff;"><strong>apt install htop</strong></span></pre>
<h5><span style="color: #993300;">Install Htop on Ubuntu 14.04  and Ubuntu 16.04</span></h5>
<p>Here, I will show you how to install Htop on Ubuntu servers. Installation of htop on Ubuntu is very much similar to installing it on Debian as we did in above section. In the case of Ubuntu, we must be root user to install htop. Type su and press enter followed by its password.</p>
<pre><span style="color: #0000ff;"><strong>su</strong></span></pre>
<p>Once we will be connected using root user, we will proceed to install htop on Ubuntu by running below commands. A set of execution will start and execution will finish with its installation.</p>
<pre><span style="color: #0000ff;"><strong>apt install htop</strong></span></pre>
<h5><span style="color: #993300;">Install Htop on Fedora 26 and Fedora 27</span></h5>
<p>There is little different way to install Htop on Fedora systems as we use dnf command to install it on fedora. Fedora users can easily install htop as following below steps. First we connect to root privileges using su account. Type su and its password.</p>
<pre><span style="color: #0000ff;"><strong>su</strong></span></pre>
<p>Once we will be connected using <strong>su</strong> account, we can invoke <strong>dnf</strong> which is Fedora package manager. Run below dnf command to install htop on Fedora systems. A set of execution will start and finish with htop installation.</p>
<pre><span style="color: #0000ff;"><strong>dnf install htop</strong></span></pre>
<h5><span style="color: #993300;">Install Htop on Gentoo</span></h5>
<p>For Gentoo we must also be root users. Write in a terminal:</p>
<pre><span style="color: #0000ff;"><strong>su</strong></span></pre>
<p>Once we connected with root user permissions, we can install Htop by invoking Gentoo&#8217;s own package manager emerge. Run below command to start Htop installation on Gentoo system. A series of execution will start and finish with its installation.</p>
<pre><span style="color: #0000ff;"><strong>emerge sys-process/htop</strong></span></pre>
<h5><span style="color: #993300;">Install Htop on CentOS 7 and Red Hat Linux Enterprise</span></h5>
<p>In the case of CentOS 7, we must first add the EPEL repository and then install it normally. First we logged in as root user to get installation privileges. Connect using su account by typing below command and its password.</p>
<pre><span style="color: #0000ff;"><strong>su</strong></span></pre>
<p>Once logged in as root user, we proceed to download the package containing the EPEL repository:</p>
<pre><span style="color: #0000ff;"><strong>wget http://mirror.pnl.gov/epel/7/x86_64/e/epel-release-7-5.noarch.rpm</strong></span></pre>
<p>And then install the downloaded package to add the EPEL repository:</p>
<pre><span style="color: #0000ff;"><strong>rpm -Uvh epel-release-7-5.noarch.rpm</strong></span></pre>
<p>The next step is to &#8220;validate&#8221; the newly added repository by running below command.</p>
<pre><span style="color: #0000ff;"><strong>yum repolist</strong></span></pre>
<p>And Finally we will install htop on RHEL and Centos by running below command.</p>
<pre><span style="color: #0000ff;"><strong>yum install htop</strong><strong> </strong></span></pre>
<h3><span style="color: #333399;">Basic use of HTOP</span></h3>
<p>We have installed Htop on various Linux systems in above section. We must write the command htop To launch it. Here, it is not necessary to do it as root user. You can see i wrote htop on terminal window and press enter to get the Htop task manager screen in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1883" src="http://techyaz.com/wp-content/uploads/2018/02/2-Htop-command-min.png" alt="Type htop to launch its screen" width="700" height="145" srcset="https://techyaz.com/wp-content/uploads/2018/02/2-Htop-command-min.png 700w, https://techyaz.com/wp-content/uploads/2018/02/2-Htop-command-min-300x62.png 300w" sizes="auto, (max-width: 700px) 100vw, 700px" /></p>
<p>You will get below screen once you execute above command on your terminal screen.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1884" src="http://techyaz.com/wp-content/uploads/2018/02/3-Htop_Running-min.jpg" alt="htop running screen" width="960" height="720" srcset="https://techyaz.com/wp-content/uploads/2018/02/3-Htop_Running-min.jpg 960w, https://techyaz.com/wp-content/uploads/2018/02/3-Htop_Running-min-300x225.jpg 300w, https://techyaz.com/wp-content/uploads/2018/02/3-Htop_Running-min-768x576.jpg 768w" sizes="auto, (max-width: 960px) 100vw, 960px" /></p>
<p>It&#8217;s the initial screen. As we can see, it is very simple and easy to understand. We can have fun in three parts that we will study. In this &#8220;first part&#8221; we see the use of the processor and RAM by all processes along with other details. On the right side a small summary of them: how many tasks are running and the total active time.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1885" src="http://techyaz.com/wp-content/uploads/2018/02/4-Htop_top-min.jpg" alt="Top section of htop window" width="766" height="131" srcset="https://techyaz.com/wp-content/uploads/2018/02/4-Htop_top-min.jpg 766w, https://techyaz.com/wp-content/uploads/2018/02/4-Htop_top-min-300x51.jpg 300w" sizes="auto, (max-width: 766px) 100vw, 766px" /></p>
<p>&#8220;Second part&#8221; also you can say middle part is the main view where all the processes are showing. You can see this in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1886" src="http://techyaz.com/wp-content/uploads/2018/02/5-Htop_middle-min.jpg" alt="Main Processes View" width="932" height="430" srcset="https://techyaz.com/wp-content/uploads/2018/02/5-Htop_middle-min.jpg 932w, https://techyaz.com/wp-content/uploads/2018/02/5-Htop_middle-min-300x138.jpg 300w, https://techyaz.com/wp-content/uploads/2018/02/5-Htop_middle-min-768x354.jpg 768w" sizes="auto, (max-width: 932px) 100vw, 932px" /></p>
<p>This is where we have the information through columns that contain details about these processes. The columns are:</p>
<ul>
<li>PID: Displays the process identifier number.</li>
<li>User: The user tells us that he has activated this process.</li>
<li>PRI: It shows the priority with which the process is executed.</li>
<li>NI: Shows the priority level</li>
<li>VIRT: The number of virtual memory used by the process.</li>
<li>RES: Used ram memory (Megabytes)</li>
<li>SHR: Shared memory used</li>
<li>S: Process status (Running, sleeping or zombie)</li>
<li>CPU%: percentage of CPU used by the process</li>
<li>MEM%: percentage of ram memory used by the process</li>
<li>TIME+: Active life-time of the process</li>
<li>Command: The command that executes the process.</li>
</ul>
<p>So with this we have all the information of the processes that are running at that time.</p>
<p>The &#8220;last part&#8221; displays the tools provided by Htop for navigation. For example, allows us to search, sort the processes and the best, for me, the &#8220;kill&#8221; processes by using shortcut keys.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1887" src="http://techyaz.com/wp-content/uploads/2018/02/6-Htop_bottom-min.jpg" alt="Lower section of Htop" width="828" height="64" srcset="https://techyaz.com/wp-content/uploads/2018/02/6-Htop_bottom-min.jpg 828w, https://techyaz.com/wp-content/uploads/2018/02/6-Htop_bottom-min-300x23.jpg 300w, https://techyaz.com/wp-content/uploads/2018/02/6-Htop_bottom-min-768x59.jpg 768w" sizes="auto, (max-width: 828px) 100vw, 828px" /></p>
<p>To kill a process we must navigate through the processes with the up and down keys, select it, press the <strong>F9</strong> key, and choose the number that corresponds to the option of killing that serves us. I almost always use the 9th showing in below screen.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1888" src="http://techyaz.com/wp-content/uploads/2018/02/7-Htop_Kill-min-1024x552.png" alt="htop kill screen" width="1024" height="552" srcset="https://techyaz.com/wp-content/uploads/2018/02/7-Htop_Kill-min-1024x552.png 1024w, https://techyaz.com/wp-content/uploads/2018/02/7-Htop_Kill-min-300x162.png 300w, https://techyaz.com/wp-content/uploads/2018/02/7-Htop_Kill-min-768x414.png 768w, https://techyaz.com/wp-content/uploads/2018/02/7-Htop_Kill-min.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>In conclusion we can say that Htop is a great tool to visualize the active and non-active processes in our Linux systems. Being terminal-based, it has the advantage of consuming virtually nothing in resources and helps us to close very heavy or unnecessary processes.</p>
<p>Here i have shown you how to install Htop on Red Hat, Ubuntu, Fedora and Debian systems and its uses. I hope you like this article. Please follow our <a href="https://www.facebook.com/Techyaz/">Facebook</a> page and <a href="https://twitter.com/Tech_yaz">Twitter</a> handle to get latest updates.</p>
<p><span style="color: #800000;"><strong><em>Read More:</em></strong></span></p>
<ul>
<li><strong><a href="http://techyaz.com/debian/how-to-install-debian-9-stretch/" target="_blank" rel="noopener">How to Install Debian 9 Stretch?</a></strong></li>
<li><strong><a href="http://techyaz.com/ubuntu/how-to-install-zabbix-on-ubuntu-server-16-04/" target="_blank" rel="noopener">How to Install Zebbix on Ubuntu 16.4?</a></strong></li>
<li><strong><a href="http://techyaz.com/sql-server/sql-server-on-linux/step-step-process-install-red-hat-enterprise-linux/" target="_blank" rel="noopener">How to Install RedHat Enterprise Linux?</a></strong></li>
<li><strong><a href="http://techyaz.com/ubuntu/install-ubuntu-linux-server-16-04-virtual-machine-step-by-step/" target="_blank" rel="noopener">Installing Ubuntu 16.04 in Step by Step Process</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/linux/install-htop-monitor-linux-processes/">How to Install Htop and Use it to Monitor Linux Processes?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/linux/install-htop-monitor-linux-processes/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install PgAdmin 4 in Debian 9 Stretch?</title>
		<link>https://techyaz.com/postgresql/install-pgadmin-4-in-debian-9-stretch/</link>
					<comments>https://techyaz.com/postgresql/install-pgadmin-4-in-debian-9-stretch/#comments</comments>
		
		<dc:creator><![CDATA[Angelo Marquez]]></dc:creator>
		<pubDate>Thu, 01 Feb 2018 12:05:40 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux Tools]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[pgadmin]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1702</guid>

					<description><![CDATA[<p>I have written how to install PostgreSQL 10.1 on debian 9 stretch in my last article. Read the attached link if you want to learn its step by step process. Here, I am going to install pgAdmin 4 on debian&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/postgresql/install-pgadmin-4-in-debian-9-stretch/">How to Install PgAdmin 4 in Debian 9 Stretch?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I have written<strong> <a href="http://techyaz.com/debian/install-postgresql-10-1-debian-9-stretch/" target="_blank" rel="noopener">how to install PostgreSQL 10.1 on debian 9 stretch</a> </strong>in my last article. Read the attached link if you want to learn its step by step process. Here, I am going to install pgAdmin 4 on debian 9 stretch that is most popular and feature rich Open Source administration and development tool to manage PostgreSQL databases.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-1722 alignleft" src="http://techyaz.com/wp-content/uploads/2018/02/pgadmin4-300x200.png" alt="pgadmin4 installation" width="300" height="300" srcset="https://techyaz.com/wp-content/uploads/2018/02/pgadmin4-300x200.png 300w, https://techyaz.com/wp-content/uploads/2018/02/pgadmin4-300x200-150x150.png 150w, https://techyaz.com/wp-content/uploads/2018/02/pgadmin4-300x200-160x160.png 160w, https://techyaz.com/wp-content/uploads/2018/02/pgadmin4-300x200-320x320.png 320w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<p>PostgreSQL is for many the best in its area, and it is not the aim of this article to defend or support that theory, what we can say with all certainty is that it is one of the most robust and secure database handlers that exist. As if this were not enough, it has one of the most popular and complete graphical tools to manage it, such as pgAdmin.</p>
<p>As the project <a href="https://www.pgadmin.org/">website</a> says: “pgAdmin is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world.” And of course we can install it in our preferred GNU/LINUX distribution. In this case we are going to install it in our <a href="https://www.debian.org/">Debian</a> 9 Stretch a large GNU/LINUX distribution widely used in the server and database area.</p>
<h3><span style="color: #333399;">Install pgAdmin 4 on Debian 9 Stretch</span></h3>
<p><strong>Note: In this tutorial it is assumed that you have postgreSQL installed, otherwise, we must install it. You can find the way of doing it in below link.</strong></p>
<ul>
<li><strong><a href="http://techyaz.com/debian/install-postgresql-10-1-debian-9-stretch/" target="_blank" rel="noopener">How to Install PostgreSQL 10.1 on Debian 9 Stretch</a></strong></li>
</ul>
<p>Let&#8217;s get started. The first thing we have to do is add the postgreSQL apt repository. If you have installed postgreSQL with the tutorial we have attached above, you can skip these steps. Otherwise we must add it.</p>
<p>First we logged in as root user. Write su in your terminal screen along with its password and press enter to connect.</p>
<pre><span style="color: #008000;"><strong>#Connect using root user</strong></span>
<span style="color: #0000ff;"><strong>su</strong></span></pre>
<p><img loading="lazy" decoding="async" class="wp-image-1706 size-full alignnone" src="http://techyaz.com/wp-content/uploads/2018/02/2-.su-min.png" alt="Connect using superuser" width="505" height="123" srcset="https://techyaz.com/wp-content/uploads/2018/02/2-.su-min.png 505w, https://techyaz.com/wp-content/uploads/2018/02/2-.su-min-300x73.png 300w" sizes="auto, (max-width: 505px) 100vw, 505px" /></p>
<p>Now, use below command to create the <em>pgdp.list</em> file in the <em>/etc/apt/source.list.d/</em> path.</p>
<pre><span style="color: #0000ff;"><strong>nano /etc/apt/source.list.d/pgdg.list</strong></span></pre>
<p>Here, we will add the next line of code to the terminal screen that will come after executing above command.</p>
<pre><strong><span style="color: #0000ff;">deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1707 size-large" src="http://techyaz.com/wp-content/uploads/2018/02/3.-nano-min-1024x552.png" alt="Enter the given code lines" width="1024" height="552" srcset="https://techyaz.com/wp-content/uploads/2018/02/3.-nano-min-1024x552.png 1024w, https://techyaz.com/wp-content/uploads/2018/02/3.-nano-min-300x162.png 300w, https://techyaz.com/wp-content/uploads/2018/02/3.-nano-min-768x414.png 768w, https://techyaz.com/wp-content/uploads/2018/02/3.-nano-min.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Press <strong>ctrl + x</strong> to exit and select yes to save the changes.</p>
<p>Now import the repository signing key by running below commands on your terminal screen.</p>
<pre><span style="color: #008000;"><strong>#Import the repository signing key</strong></span>
<span style="color: #0000ff;"><strong>wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -</strong></span></pre>
<p>And to refresh the repository cache, just run the following command.</p>
<pre><span style="color: #008000;"><strong>#Refresh the repository.</strong></span>
<span style="color: #0000ff;"><strong>apt update</strong></span></pre>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-1708 size-full" src="http://techyaz.com/wp-content/uploads/2018/02/4.-update-min.png" alt="Run apt update to refresh packages" width="658" height="450" srcset="https://techyaz.com/wp-content/uploads/2018/02/4.-update-min.png 658w, https://techyaz.com/wp-content/uploads/2018/02/4.-update-min-300x205.png 300w" sizes="auto, (max-width: 658px) 100vw, 658px" /></p>
<p>You can see all packages have been updated in above screenshot. Now we are ready to start installing pgAdmin 4.</p>
<h5><span style="color: #333399;"><strong>Installing Dependencies and Creating the Virtual Environment</strong></span></h5>
<p>We must install the necessary dependencies to handle the package. They are basically Python dependencies that needs to be resolved before installing pgadmin package. Execute below command in your terminal before going to install pgadmin.</p>
<pre><span style="color: #008000;"><strong>#Install Python </strong></span><span style="color: #008000;"><b>dependency.</b></span>
<span style="color: #0000ff;"><strong>apt install virtualenv python-pip libpq-dev python-dev</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1709 size-full" src="http://techyaz.com/wp-content/uploads/2018/02/5.-install_dep-min.png" alt="Install Dependencies" width="752" height="309" srcset="https://techyaz.com/wp-content/uploads/2018/02/5.-install_dep-min.png 752w, https://techyaz.com/wp-content/uploads/2018/02/5.-install_dep-min-300x123.png 300w" sizes="auto, (max-width: 752px) 100vw, 752px" /></p>
<p>Type <strong>Y</strong> and press enter to install this dependency. The next step will be to create the virtual environment. In this case we will create it on <em>/home/Your_user/. </em>Run below commands to get this done.</p>
<pre><span style="color: #0000ff;"><strong><span style="color: #008000;">#Go to your directory.</span>
cd /home/your_user/</strong></span>

<strong><span style="color: #008000;">#Create Virtual Environment.</span></strong>
<span style="color: #0000ff;"><strong>virtualenv pgadmin4</strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1710" src="http://techyaz.com/wp-content/uploads/2018/02/6.-virtualenv-min.png" alt="Run Virtualenv pgadmin4" width="1020" height="192" srcset="https://techyaz.com/wp-content/uploads/2018/02/6.-virtualenv-min.png 1020w, https://techyaz.com/wp-content/uploads/2018/02/6.-virtualenv-min-300x56.png 300w, https://techyaz.com/wp-content/uploads/2018/02/6.-virtualenv-min-768x145.png 768w" sizes="auto, (max-width: 1020px) 100vw, 1020px" /></p>
<p>This creates a folder called &#8220;<em>pgadmin4</em>&#8220;. We must enter it to get in to this folder.</p>
<pre><span style="color: #0000ff;"><strong>cd pgadmin4</strong></span></pre>
<p>The next step will be to &#8220;activate&#8221; the virtual environment by running below statement.</p>
<pre><span style="color: #008000;"><strong>#Activate virtual environment.</strong></span>
<span style="color: #0000ff;"><strong>source bin/activate</strong></span></pre>
<h5><span style="color: #333399;"><strong>Downloading and Installing pgAdmin</strong></span></h5>
<p>Now, we will install pgadmin on this machine. We can download latest version pgAdmin4-2.1 from this <a href="https://www.postgresql.org/ftp/pgadmin/pgadmin4/v2.1/pip/">link</a>. For this tutorial we will use the python package that is showing in below screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1711" src="http://techyaz.com/wp-content/uploads/2018/02/8.-download_pgAdmin-min.png" alt="Download PgAdmin Package" width="864" height="554" srcset="https://techyaz.com/wp-content/uploads/2018/02/8.-download_pgAdmin-min.png 864w, https://techyaz.com/wp-content/uploads/2018/02/8.-download_pgAdmin-min-300x192.png 300w, https://techyaz.com/wp-content/uploads/2018/02/8.-download_pgAdmin-min-768x492.png 768w" sizes="auto, (max-width: 864px) 100vw, 864px" /></p>
<p>And finally we will proceed to install pgadmin using pip command as given below.</p>
<pre><span style="color: #008000;"><strong>#Replace &lt;path-where-file-is-located&gt; with your patch followed by file name.</strong></span>
<span style="color: #0000ff;"><strong>pip install &lt;path-where-file-is-located&gt;</strong></span></pre>
<p>We will be running below command in our case.</p>
<pre><span style="color: #008000;"><strong>#Run below command to install pgadmin.</strong></span>
<strong><span style="color: #0000ff;">pip install /home/angelo/Descargas/pgadmin4-2.1-py2.py3-none-any.whl</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1712 size-full" src="http://techyaz.com/wp-content/uploads/2018/02/9.-pipinstall-min.png" alt="pip install" width="1282" height="610" srcset="https://techyaz.com/wp-content/uploads/2018/02/9.-pipinstall-min.png 1282w, https://techyaz.com/wp-content/uploads/2018/02/9.-pipinstall-min-300x143.png 300w, https://techyaz.com/wp-content/uploads/2018/02/9.-pipinstall-min-768x365.png 768w, https://techyaz.com/wp-content/uploads/2018/02/9.-pipinstall-min-1024x487.png 1024w" sizes="auto, (max-width: 1282px) 100vw, 1282px" /></p>
<p>With this pgAdmin is already installed but we are not finished yet. You need to create a local configuration and run it. Run below command to do this.</p>
<pre><strong><span style="color: #0000ff;"><span style="color: #008000;">#Go to pgadmin4 folder</span>
cd lib/python2.7/site-packages/pgadmin4

<span style="color: #008000;">#Create config file</span>
touch config_local.py</span></strong></pre>
<p>The &#8220;touch&#8221; command creates an empty file from the linux terminal, if the file exists it will change the date and time of the modification. In that file we can place the settings we want, if the file is left empty it will take the global settings of python.</p>
<p>We can now execute below command to create the credentials. Once you run below command, it will ask you to enter your email address and password. Those credentials will be the ones we use to access the application from the browser.</p>
<pre><strong><span style="color: #0000ff;">python lib/python2.7/site-packages/pgadmin4/pgAdmin4.pyc</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1713" src="http://techyaz.com/wp-content/uploads/2018/02/10.-python_email-min.png" alt="Python settings" width="1020" height="176" srcset="https://techyaz.com/wp-content/uploads/2018/02/10.-python_email-min.png 1020w, https://techyaz.com/wp-content/uploads/2018/02/10.-python_email-min-300x52.png 300w, https://techyaz.com/wp-content/uploads/2018/02/10.-python_email-min-768x133.png 768w" sizes="auto, (max-width: 1020px) 100vw, 1020px" /></p>
<p>Now we have created the credentials as well in above screenshot. At the end, we will be told that we must log in with our favorite browser to 127.0.0.1:5050 to log in and enter the main page of pgAdmin.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1714" src="http://techyaz.com/wp-content/uploads/2018/02/11.-running2-min.png" alt="running pgadmin" width="857" height="176" srcset="https://techyaz.com/wp-content/uploads/2018/02/11.-running2-min.png 857w, https://techyaz.com/wp-content/uploads/2018/02/11.-running2-min-300x62.png 300w, https://techyaz.com/wp-content/uploads/2018/02/11.-running2-min-768x158.png 768w" sizes="auto, (max-width: 857px) 100vw, 857px" /></p>
<p>Let&#8217;s go to our browser and type 127.0.0.1:5050</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1715 size-full" src="http://techyaz.com/wp-content/uploads/2018/02/12.-login-min.png" alt="Launch pgadmin url" width="942" height="490" srcset="https://techyaz.com/wp-content/uploads/2018/02/12.-login-min.png 942w, https://techyaz.com/wp-content/uploads/2018/02/12.-login-min-300x156.png 300w, https://techyaz.com/wp-content/uploads/2018/02/12.-login-min-768x399.png 768w" sizes="auto, (max-width: 942px) 100vw, 942px" /></p>
<p>We put our email address and the password we have previously entered. We can also select the language. Once we will be logged in using given credentials, we can see the main pgAdmin panel that is also showing in below screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1716" src="http://techyaz.com/wp-content/uploads/2018/02/13.-inside-min.png" alt="PgAdmin Portal" width="1366" height="736" srcset="https://techyaz.com/wp-content/uploads/2018/02/13.-inside-min.png 1366w, https://techyaz.com/wp-content/uploads/2018/02/13.-inside-min-300x162.png 300w, https://techyaz.com/wp-content/uploads/2018/02/13.-inside-min-768x414.png 768w, https://techyaz.com/wp-content/uploads/2018/02/13.-inside-min-1024x552.png 1024w" sizes="auto, (max-width: 1366px) 100vw, 1366px" /></p>
<p>We can test the application by adding a server. In this case it will be a local server. We must click on the &#8220;<em><strong>Add new Server</strong></em>&#8221; link given in between <em>Quick Link</em> section. We will get below screen to enter details about the server that we want to add.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1717" src="http://techyaz.com/wp-content/uploads/2018/02/14.-Add_new_server-min.png" alt="Add New Server" width="1366" height="736" srcset="https://techyaz.com/wp-content/uploads/2018/02/14.-Add_new_server-min.png 1366w, https://techyaz.com/wp-content/uploads/2018/02/14.-Add_new_server-min-300x162.png 300w, https://techyaz.com/wp-content/uploads/2018/02/14.-Add_new_server-min-768x414.png 768w, https://techyaz.com/wp-content/uploads/2018/02/14.-Add_new_server-min-1024x552.png 1024w" sizes="auto, (max-width: 1366px) 100vw, 1366px" /></p>
<p>The name we want to give to the connection is placed in the window. I called it &#8220;local.&#8221; We&#8217;ll leave the rest the same, if we want to.</p>
<p>In the connection tab, we will enter the connection parameters <em>Host name, port, database, username, and password </em>to add the server. You can see this in beow screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1718" src="http://techyaz.com/wp-content/uploads/2018/02/15.-Add_server_connection-min.png" alt="Add Server Connection Details" width="1094" height="626" srcset="https://techyaz.com/wp-content/uploads/2018/02/15.-Add_server_connection-min.png 1094w, https://techyaz.com/wp-content/uploads/2018/02/15.-Add_server_connection-min-300x172.png 300w, https://techyaz.com/wp-content/uploads/2018/02/15.-Add_server_connection-min-768x439.png 768w, https://techyaz.com/wp-content/uploads/2018/02/15.-Add_server_connection-min-1024x586.png 1024w" sizes="auto, (max-width: 1094px) 100vw, 1094px" /></p>
<p>And with this we already have an added server and we can start working with postgreSQL. You can see the server is added in left side pane of pgAdmin panel. You can expand the plus sign to see the details like databases etc.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1719" src="http://techyaz.com/wp-content/uploads/2018/02/16.-server-min.png" alt="Pgadmin panelpost adding server" width="1366" height="736" srcset="https://techyaz.com/wp-content/uploads/2018/02/16.-server-min.png 1366w, https://techyaz.com/wp-content/uploads/2018/02/16.-server-min-300x162.png 300w, https://techyaz.com/wp-content/uploads/2018/02/16.-server-min-768x414.png 768w, https://techyaz.com/wp-content/uploads/2018/02/16.-server-min-1024x552.png 1024w" sizes="auto, (max-width: 1366px) 100vw, 1366px" /></p>
<h3><span style="color: #333399;"><strong>Conclusion</strong></span></h3>
<p>We have installed pgadmin 4 in debian 9 stretch to manage PostgreSQL databases. Data management is vital to system administration and specialized programs are required to keep data secure and properly structured. Complementing PostgreSQL we have pgAdmin that helps us, with a friendly graphical interface, to manage our databases, to make sentences and to monitor the service.</p>
<p>Installing both is one of the best ways to have and view databases in a way that is appropriate for our applications.</p>
<p>I hope you like this article. Please Like, Share, Comment &amp; Subscribe to this website to get all new articles directly in your inbox. You can also follow our <a href="https://www.facebook.com/Techyaz/">Facebook</a> page and <a href="https://twitter.com/Tech_yaz">Twitter</a> handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/postgresql/install-pgadmin-4-in-debian-9-stretch/">How to Install PgAdmin 4 in Debian 9 Stretch?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/postgresql/install-pgadmin-4-in-debian-9-stretch/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Step by Step Process to Install Red Hat Enterprise Linux 7.3</title>
		<link>https://techyaz.com/rhel/step-step-process-install-red-hat-enterprise-linux/</link>
					<comments>https://techyaz.com/rhel/step-step-process-install-red-hat-enterprise-linux/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Mon, 14 Aug 2017 11:09:56 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<category><![CDATA[Virtual Machine]]></category>
		<category><![CDATA[Vmware]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=447</guid>

					<description><![CDATA[<p>Red Hat Enterprise Linux (RHEL) is an Open Source Linux operating system developed by Red Hat. RHEL is most popular operating system in today&#8217;s world for major deployments. Here i will explain step by step process to install Red Hat&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/rhel/step-step-process-install-red-hat-enterprise-linux/">Step by Step Process to Install Red Hat Enterprise Linux 7.3</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Red Hat Enterprise Linux (RHEL)</strong> is an Open Source Linux operating system developed by Red Hat. RHEL is most popular operating system in today&#8217;s world for major deployments. Here i will explain step by step process to install Red Hat Enterprise Linux 7.3 on your virtual machine.</p>
<h3><span style="color: #000080;"><strong>How to Install Red Hat Linux 7.3?</strong></span></h3>
<p>I have performed this installation on one of my virtual machine that are hosted on my local computer. If you want to <a href="https://www.techyaz.com/sql-server/sql-server-on-linux/create-virtual-machine-pc/" target="_blank" rel="noopener">create new virtual machine</a> to install Linux 7.3 operating system you should read its step by step process in attached link.</p>
<p>Once you have created your virtual machine with RHEL 7.3 setup, installation media will automatically be detected and let you proceed with the installation. This is because you have already selected RHEL 7.3 ISO during virtual machine creation. Make sure you have <a href="https://access.redhat.com/downloads/">downloaded correct RHEL setup file</a>. Below is the image of correct setup file.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-448" src="http://techyaz.com/wp-content/uploads/2017/08/1-download-RHLinux-copy-1024x121.jpg" alt="correct linux file to download" width="1024" height="121" srcset="https://techyaz.com/wp-content/uploads/2017/08/1-download-RHLinux-copy-1024x121.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/1-download-RHLinux-copy-300x35.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/1-download-RHLinux-copy-768x90.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/1-download-RHLinux-copy.jpg 1300w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now let us proceed with the installation. You will get below image to proceed with the Linux installation once you finish creating a virtual machine.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-449" src="http://techyaz.com/wp-content/uploads/2017/08/1-welcome-1024x731.jpg" alt="welcome " width="1024" height="731" srcset="https://techyaz.com/wp-content/uploads/2017/08/1-welcome-1024x731.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/1-welcome-300x214.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/1-welcome-768x548.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/1-welcome.jpg 1152w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Press enter on first option &#8220;<strong>Install Red Hat Enterprise Linux 7.3</strong>&#8221; to proceed with installation. If you will not press enter, setup will start automatically after 1 minute. Now you will get below screen which says to press enter again.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-450" src="http://techyaz.com/wp-content/uploads/2017/08/2-window-1024x313.jpg" alt="" width="1024" height="313" srcset="https://techyaz.com/wp-content/uploads/2017/08/2-window-1024x313.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/2-window-300x92.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/2-window-768x235.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/2-window.jpg 1444w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Once you press enter, a series of updates will process on your screen.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-451" src="http://techyaz.com/wp-content/uploads/2017/08/4-checking-1024x592.jpg" alt="Linux installation" width="1024" height="592" srcset="https://techyaz.com/wp-content/uploads/2017/08/4-checking-1024x592.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/4-checking-300x173.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/4-checking-768x444.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/4-checking.jpg 1436w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>You will get below screen to <strong>choose the language</strong> in the next window. Here choose your language in which installation texts will proceed and click on &#8220;Continue&#8221; button to proceed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-452" src="http://techyaz.com/wp-content/uploads/2017/08/5-choose-language.jpg" alt="Linux installation" width="1014" height="724" srcset="https://techyaz.com/wp-content/uploads/2017/08/5-choose-language.jpg 1014w, https://techyaz.com/wp-content/uploads/2017/08/5-choose-language-300x214.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/5-choose-language-768x548.jpg 768w" sizes="auto, (max-width: 1014px) 100vw, 1014px" /></p>
<p>Next window will be &#8220;<strong>Installation Summary</strong>&#8221; window from where we will configure all configurations for this installation. You can see &#8220;<strong>Begin Installation</strong>&#8221; button is showing disabled on this window. It will enable the moment we configure all parameters. We will click one by one to each option and then configure them with the correct value to proceed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-453" src="http://techyaz.com/wp-content/uploads/2017/08/6-installation-summary-1024x713.jpg" alt="Linux Installation" width="1024" height="713" srcset="https://techyaz.com/wp-content/uploads/2017/08/6-installation-summary-1024x713.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/6-installation-summary-300x209.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/6-installation-summary-768x535.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/6-installation-summary.jpg 1042w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Let&#8217;s start the configuration one by one. First click on &#8220;<strong>Date &amp; Time</strong>&#8221; option to set the server clock according to your time zone. As i stayed in India so i have chosen region as Asia and city as <strong>Kolkata</strong> and then set the time and date in the bottom of below screen. Now click on done button given top left side of the below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-454" src="http://techyaz.com/wp-content/uploads/2017/08/7-date-time-1024x704.jpg" alt="" width="1024" height="704" srcset="https://techyaz.com/wp-content/uploads/2017/08/7-date-time-1024x704.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/7-date-time-300x206.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/7-date-time-768x528.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/7-date-time.jpg 1074w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now click on &#8220;<strong>Keyboard</strong>&#8221; option to set the keyboard option as shown in below image. Click on plus sign if you want to choose some other settings. Click on done button to apply this change for the installation.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-455" src="http://techyaz.com/wp-content/uploads/2017/08/8-keyboard-1024x709.jpg" alt="Linux Installation" width="1024" height="709" srcset="https://techyaz.com/wp-content/uploads/2017/08/8-keyboard-1024x709.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/8-keyboard-300x208.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/8-keyboard-768x531.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/8-keyboard.jpg 1042w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now click on &#8220;<strong>Language Support</strong>&#8221; option to set the language for this installation. Choose your language and click on done button to proceed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-456" src="http://techyaz.com/wp-content/uploads/2017/08/9-language-1024x700.jpg" alt="Linux Installation" width="1024" height="700" srcset="https://techyaz.com/wp-content/uploads/2017/08/9-language-1024x700.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/9-language-300x205.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/9-language-768x525.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/9-language.jpg 1054w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Next option in <strong>installation summary</strong> window is to select correct <strong>installation media</strong>. I did not make any changes here because it is already selected as local media which we had downloaded from Red Hat website.</p>
<p>Now click on &#8220;<strong>Software Selection</strong>&#8221; to choose what type of installation you want to proceed. I selected <strong>minimal install</strong> to proceed. If you want to install <strong>GUI based Linux</strong> server operating system you can choose last option of below screen. Once you made your selection click on done button to proceed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-457" src="http://techyaz.com/wp-content/uploads/2017/08/10-software-selection-1024x692.jpg" alt="Linux Installation" width="1024" height="692" srcset="https://techyaz.com/wp-content/uploads/2017/08/10-software-selection-1024x692.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/10-software-selection-300x203.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/10-software-selection-768x519.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/10-software-selection.jpg 1056w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now we will configure the &#8220;<strong>Installation Destination</strong>&#8221; option.Here we have also an option to configure storage partitioning. If you want to add some other disk you can do that as well from this page. I have selected 20GB for this Linux server so it is shwoing there. Now come to the <strong>storage partitioning</strong> section which is in bottom of the screen, i have selected &#8220;<strong>Automatically configure partitioning</strong>&#8220;. Setup will configure all the partitions automatically during installation. If you want to configure it manually you can choose second option that will allow you to configure as per your need. Click on done button to proceed, once you have made all changes.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-458" src="http://techyaz.com/wp-content/uploads/2017/08/11-disk-selection-1024x699.jpg" alt="Linux Installation" width="1024" height="699" srcset="https://techyaz.com/wp-content/uploads/2017/08/11-disk-selection-1024x699.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/11-disk-selection-300x205.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/11-disk-selection-768x525.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/11-disk-selection.jpg 1060w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now there are only three option left to configure as per below image. These are <strong>Kdump, Network &amp; Hostname and Security Policy</strong>. You can see rest of all options are showing with their configured value.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-459" src="http://techyaz.com/wp-content/uploads/2017/08/12-installation-summary-1024x693.jpg" alt="Linux Installation" width="1024" height="693" srcset="https://techyaz.com/wp-content/uploads/2017/08/12-installation-summary-1024x693.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/12-installation-summary-300x203.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/12-installation-summary-768x520.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/12-installation-summary.jpg 1072w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now click on <strong>KDUMP</strong> option. Kdump is a mechanism which captures information from your system during system crash that can be invaluable in determining the cause of the crash. I have enabled this option. If you do not want to enable it you can uncheck it. Click on done button to proceed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-460" src="http://techyaz.com/wp-content/uploads/2017/08/13-kdump-1024x723.jpg" alt="Linux Installation" width="1024" height="723" srcset="https://techyaz.com/wp-content/uploads/2017/08/13-kdump-1024x723.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/13-kdump-300x212.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/13-kdump-768x542.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/13-kdump.jpg 1028w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now click on &#8220;<strong>Network &amp; Host Name&#8221;</strong> option. You will get below image to configure it.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-461" src="http://techyaz.com/wp-content/uploads/2017/08/14-network-hostname-1024x682.jpg" alt="Linux Installation" width="1024" height="682" srcset="https://techyaz.com/wp-content/uploads/2017/08/14-network-hostname-1024x682.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/14-network-hostname-300x200.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/14-network-hostname-768x512.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/14-network-hostname.jpg 1054w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now click on <strong>on/off button</strong> showing in top right side of above screen. It will automatically assign IP address, subnet mask address to make connection. I have enabled it and you can see all address in below screen. You can also change the <strong>hostname</strong> of Linux server. Write the server name in the host name section and click on apply button.</p>
<p>If you want to assign IP address, subnet mask address and other details manually you should click on configure button on below screen. Click on done button to proceed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-462" src="http://techyaz.com/wp-content/uploads/2017/08/15-network-hostname-1024x685.jpg" alt="Linux Installation 15" width="1024" height="685" srcset="https://techyaz.com/wp-content/uploads/2017/08/15-network-hostname-1024x685.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/15-network-hostname-300x201.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/15-network-hostname-768x513.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/15-network-hostname.jpg 1080w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Final option is to select appropriate S<strong>ecurity Policy</strong>. I did not make any changes and go with default option as shown in below screen.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-463" src="http://techyaz.com/wp-content/uploads/2017/08/16-security-policy-1024x668.jpg" alt="Linux Installation 16" width="1024" height="668" srcset="https://techyaz.com/wp-content/uploads/2017/08/16-security-policy-1024x668.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/16-security-policy-300x196.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/16-security-policy-768x501.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/16-security-policy.jpg 1094w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now we will click on &#8220;<strong>Begin Installation</strong>&#8221; to start the installation.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-464" src="http://techyaz.com/wp-content/uploads/2017/08/17-summary-1024x724.jpg" alt="Linux Installation" width="1024" height="724" srcset="https://techyaz.com/wp-content/uploads/2017/08/17-summary-1024x724.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/17-summary-300x212.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/17-summary-768x543.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/17-summary.jpg 1044w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><br />
Once installation will begin, you will get below progress status bar along with options to set R<strong>oot Password and User Creation.</strong></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-465" src="http://techyaz.com/wp-content/uploads/2017/08/18-installation-1024x713.jpg" alt="" width="1024" height="713" srcset="https://techyaz.com/wp-content/uploads/2017/08/18-installation-1024x713.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/18-installation-300x209.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/18-installation-768x535.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/18-installation.jpg 1046w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Click on R<strong>oot Password</strong> option of above screen to set the root password. Click on done button once you have entered the password.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-466" src="http://techyaz.com/wp-content/uploads/2017/08/19-root-password-1024x691.jpg" alt="root password" width="1024" height="691" srcset="https://techyaz.com/wp-content/uploads/2017/08/19-root-password-1024x691.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/19-root-password-300x202.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/19-root-password-768x518.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/19-root-password.jpg 1052w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now click on <strong>User Creation</strong> option to create an user. I have created an user named <strong>techyaz</strong> as shown in below screen. Click on done button to proceed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-467" src="http://techyaz.com/wp-content/uploads/2017/08/20-user-password-1024x696.jpg" alt="user creation" width="1024" height="696" srcset="https://techyaz.com/wp-content/uploads/2017/08/20-user-password-1024x696.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/20-user-password-300x204.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/20-user-password-768x522.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/20-user-password.jpg 1062w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now you can see text written in red colour is disappeared from root password and user creation options. Installation is still in process during the user creation. You can see below screenshot.<br />
<img loading="lazy" decoding="async" class="aligncenter size-large wp-image-468" src="http://techyaz.com/wp-content/uploads/2017/08/21-installation-1024x671.jpg" alt="" width="1024" height="671" srcset="https://techyaz.com/wp-content/uploads/2017/08/21-installation-1024x671.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/21-installation-300x197.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/21-installation-768x503.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/21-installation.jpg 1080w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Once installation will be completed below screen will come that will say that installation of Linux 7.3 operating system is completed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-469" src="http://techyaz.com/wp-content/uploads/2017/08/22-installation-complete-1024x686.jpg" alt="" width="1024" height="686" srcset="https://techyaz.com/wp-content/uploads/2017/08/22-installation-complete-1024x686.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/08/22-installation-complete-300x201.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/22-installation-complete-768x514.jpg 768w, https://techyaz.com/wp-content/uploads/2017/08/22-installation-complete.jpg 1048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now <strong>Reboot</strong> button is enabled and setup also suggested to reboot the server. Click on reboot button to restart the server. Your <strong>Linux installation has completed</strong> here.</p>
<p>Now we will validate the installation by running few commands. Once server will come online post reboot, it will give you below prompt to enter the login credentials.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-470" src="http://techyaz.com/wp-content/uploads/2017/08/23-login-window.jpg" alt="" width="640" height="224" srcset="https://techyaz.com/wp-content/uploads/2017/08/23-login-window.jpg 640w, https://techyaz.com/wp-content/uploads/2017/08/23-login-window-300x105.jpg 300w" sizes="auto, (max-width: 640px) 100vw, 640px" /></p>
<p>Enter the user name which you have created during installation. You can see now i have connected to Linux server using user <strong>techyaz</strong>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-471" src="http://techyaz.com/wp-content/uploads/2017/08/24-login.jpg" alt="" width="771" height="298" srcset="https://techyaz.com/wp-content/uploads/2017/08/24-login.jpg 771w, https://techyaz.com/wp-content/uploads/2017/08/24-login-300x116.jpg 300w, https://techyaz.com/wp-content/uploads/2017/08/24-login-768x297.jpg 768w" sizes="auto, (max-width: 771px) 100vw, 771px" /><br />
Now you can check the hostname and RHEL version installed on this machine by executing below commands.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-472" src="http://techyaz.com/wp-content/uploads/2017/08/25-check-hostname-version.jpg" alt="" width="622" height="134" srcset="https://techyaz.com/wp-content/uploads/2017/08/25-check-hostname-version.jpg 622w, https://techyaz.com/wp-content/uploads/2017/08/25-check-hostname-version-300x65.jpg 300w" sizes="auto, (max-width: 622px) 100vw, 622px" /></p>
<p>Now we can see the output which says host name as <strong>SQLServerRHEL</strong> and its version <strong>RHEL 7.3</strong> in above image.</p>
<p>I hope you like this article. You can comment about your questions in comment section. Please follow us on our <strong><a href="https://www.facebook.com/Techyaz/">facebook page</a></strong> and on <strong><a href="https://twitter.com/Tech_yaz">Twitter </a></strong>handle to get latest updates.</p>
<p><span style="color: #800000;"><em><strong>Read More:</strong></em></span></p>
<ul>
<li><strong><a href="https://techyaz.com/rhel/red-hat-enterprise-linux-interview-questions-answers/" target="_blank" rel="noopener">RHEL Interview Questions &amp; Answers</a></strong></li>
<li><strong><a href="https://techyaz.com/ubuntu/install-ubuntu-linux-server-16-04-virtual-machine-step-by-step/" target="_blank" rel="noopener">Step by Step Process to Install Ubuntu Linux 16.04</a></strong></li>
<li><strong><a href="https://techyaz.com/rhel/install-htop-monitor-linux-processes/" target="_blank" rel="noopener">How to Install and Use Htop to Monitor Linux Processes?</a></strong></li>
<li><strong><a href="https://techyaz.com/ubuntu/how-to-install-zabbix-on-ubuntu-server-16-04/" target="_blank" rel="noopener">How to Install Zabbix on Linux Machine?</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/rhel/step-step-process-install-red-hat-enterprise-linux/">Step by Step Process to Install Red Hat Enterprise Linux 7.3</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/rhel/step-step-process-install-red-hat-enterprise-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
