<?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>Ubuntu - Techyaz.com</title>
	<atom:link href="https://techyaz.com/category/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Tips, Tutorials and How-to Topics</description>
	<lastBuildDate>Fri, 01 Jun 2018 12:00:10 +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>Ubuntu - 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>Red Hat Enterprise Linux Interview Questions and Answers</title>
		<link>https://techyaz.com/interview-questions/redhat-linux-interview-questions/red-hat-enterprise-linux-interview-questions-answers/</link>
					<comments>https://techyaz.com/interview-questions/redhat-linux-interview-questions/red-hat-enterprise-linux-interview-questions-answers/#respond</comments>
		
		<dc:creator><![CDATA[Angelo Marquez]]></dc:creator>
		<pubDate>Mon, 26 Feb 2018 09:32:20 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[RedHat Linux Interview Questions]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[Linux Interview Questions and Answers]]></category>
		<category><![CDATA[red hat Linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1901</guid>

					<description><![CDATA[<p>When we talk about GNU/LINUX distributions we find a big collection of them, which can cover practically all the needs in almost all areas. Some of them range from simple home use to commercial production. The GNU/LINUX distribution that we&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/interview-questions/redhat-linux-interview-questions/red-hat-enterprise-linux-interview-questions-answers/">Red Hat Enterprise Linux Interview Questions and Answers</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>When we talk about GNU/LINUX distributions we find a big collection of them, which can cover practically all the needs in almost all areas. Some of them range from simple home use to commercial production. The GNU/LINUX distribution that we will be talking about not only has a great impact on the &#8220;penguin&#8221; world, but also on the business sector is an obligatory reference because of its stability, commercial support and solutions applied to the cloud. Welcome to Red Hat Enterprise Linux. This article is about Red Hat Enterprise Linux Interview Questions and Answers that will help you to crack your technical round of Linux interviews.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-1902 alignright" src="http://techyaz.com/wp-content/uploads/2018/02/RHEL-InterviewQA.png" alt="Red Hat Linux Interview Questions and Answers" width="300" height="300" srcset="https://techyaz.com/wp-content/uploads/2018/02/RHEL-InterviewQA.png 300w, https://techyaz.com/wp-content/uploads/2018/02/RHEL-InterviewQA-150x150.png 150w, https://techyaz.com/wp-content/uploads/2018/02/RHEL-InterviewQA-160x160.png 160w, https://techyaz.com/wp-content/uploads/2018/02/RHEL-InterviewQA-320x320.png 320w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<h3><span style="color: #333399;">Red Hat Linux Interview Questions and Answers</span></h3>
<p><strong>1. What is Red Hat Enterprise Linux?</strong></p>
<p><strong>Answer &#8211;</strong> It is a GNU/LINUX distribution created and developed by the multinational enterprise oriented company Red Hat, being the basis for deploying cloud applications, servers or data center.</p>
<p><strong>2. Which is the package manager used by RHEL?</strong></p>
<p><strong>Answer &#8211;</strong> The package manager in RHEL is YUM.</p>
<p><strong>3. How do I install a program in RHEL?</strong></p>
<p><strong>Answer &#8211;</strong> Installing a package or program in RHEL is simple thanks to YUM. With root permission we type in a terminal.</p>
<pre><strong><span style="color: #0000ff;">yum install package_name</span></strong></pre>
<p><strong>4. How can I update the packages in RHEL?</strong></p>
<p><strong>Answer &#8211;</strong> Run below command to update all packages in your RHEL system.</p>
<pre><strong><span style="color: #0000ff;">yum upgrade</span></strong></pre>
<p><strong>5. How can I remove the packages in RHEL?</strong></p>
<p><strong>Answer &#8211;</strong> Run below command to remove any package from RedHat Linux system.</p>
<pre><span style="color: #008000;"><strong>#Make sure to change the name of package that needs to be removed.</strong></span>
<strong><span style="color: #0000ff;">yum remove package_name</span></strong></pre>
<p><strong>6. How can I create a user in RHEL?</strong></p>
<p><strong>Answer &#8211;</strong> We can create a new user from the terminal with the command:</p>
<pre><strong><span style="color: #008000;">#Pass the user name in place of user_name </span></strong>
<span style="color: #0000ff;"><strong>useradd user_name</strong></span></pre>
<p><strong>7. How can I change the user password?</strong></p>
<p><strong>Answer &#8211;</strong> The command that allows us to change the password of the active user is <em><strong>passwd</strong></em>. By entering the command in the terminal, you will be prompted for the current password and twice for the new password. Read below article to learn step by step process to change user as well as sudo passwords.</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><strong>8. How can I change the system language?</strong></p>
<p><strong>Answer-</strong> In RHEL, the system language can be changed using the following command:</p>
<pre><strong><span style="color: #0000ff;">localectl set-locale LANG=”xx_XX.utf8”</span></strong></pre>
<p>For example, if the system is in English and we want to change to German</p>
<pre><strong><span style="color: #0000ff;">localectl set-locale LANG=de_DE.utf8</span></strong></pre>
<p>Then simply restart the active session (not the system)</p>
<p><strong>9. What is a GNU/LINUX service?</strong></p>
<p><strong>Answer &#8211;</strong> A service is a program that runs in the background, outside the interactive control of the users of the system.</p>
<p><strong>10. How can I list the services that are running in RHEL?</strong></p>
<p><strong>Answer &#8211;</strong> This is very useful when managing systems in GNU/LINUX. We can list all the services that are running with the command:</p>
<pre><strong><span style="color: #0000ff;">systemctl -t service --state=active</span></strong></pre>
<p>If you want to check specific service running on RHEL then you can pass service name in above command. For example, i want to check SQL Server service running on my RHEL system then i will run below command. This command will show the output for only this service.</p>
<pre><strong><span style="color: #0000ff;">systemctl status mssql-server</span></strong></pre>
<p><strong>11. How can I start or stop a service?</strong></p>
<p><strong>Answer &#8211;</strong> During the administration of a GNU/LINUX based server we will have to initialize and also stop services.</p>
<p>To initialize:</p>
<pre><strong><span style="color: #0000ff;">systemctl start name.service </span></strong></pre>
<p>To Stop:</p>
<pre><strong><span style="color: #0000ff;">systemctl stop name.service</span></strong></pre>
<p>To Restart:</p>
<pre><strong><span style="color: #0000ff;">systemctl restart name.service</span></strong></pre>
<p><strong>12. How do I know which version of the kernel I am using?</strong></p>
<p><strong>Answer &#8211;</strong> To know which version of the Linux Kernel we are using, just use the command:</p>
<pre><strong><span style="color: #0000ff;">uname –r</span></strong></pre>
<p><strong>13. How can I add and remove kernel modules?</strong></p>
<p><strong>Answer &#8211;</strong> The kernel modules are small programs or libraries that are added to the kernel so that it can manage hardware devices. To add or remove it we use the command modprobe.</p>
<p>For example, to add a module:</p>
<pre><strong><span style="color: #0000ff;">modprobe module_name</span></strong></pre>
<p>And to remove a module</p>
<pre><strong><span style="color: #0000ff;">modprobe –r module_name</span></strong></pre>
<p><strong>14. What is the file system RHEL uses?</strong></p>
<p><strong>Answer &#8211;</strong> The file system used by RHEL is XFS</p>
<p><strong>15. How do I know how much space is available on my hard disk with RHEL?</strong></p>
<p><strong>Answer &#8211;</strong> This is useful to know when we are reaching the hard disk capacity. With the command:</p>
<pre><strong><span style="color: #0000ff;">df –h</span></strong></pre>
<p><strong>16. Can I change hostname in RHEL?</strong></p>
<p><strong>Answer &#8211;</strong> Yes. There are multiple ways to change hostname of a RHEL system. For example if we want hostname to be example. com, we must write the following command in a terminal:</p>
<pre><strong><span style="color: #0000ff;">hostnamectl set-hostname example.com
</span></strong></pre>
<p>I have explained it in below article in very details way. Have a look at this article to learn the process to rename or change the hostname of RHEL system.</p>
<ul>
<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>
</ul>
<p><strong>17. How do I know the IP address of the equipment in RHEL?</strong></p>
<p><strong>Answer &#8211;</strong> With the command:</p>
<pre><strong><span style="color: #0000ff;">nmcli dev show</span></strong></pre>
<p>We will not only be able to see the ip address, but also the complete information of all the network interfaces. You can read below article to learn how to check and change the IP address, subnet mask etc of a RHEL system.</p>
<ul>
<li><strong><a href="http://techyaz.com/sql-server/sql-server-on-linux/check-change-ip-address-subnet-mask-default-gateway-linux-server/" target="_blank" rel="noopener">How to Find and Change IP Address, Subnet Mask and Default Gateway of RHEL system?</a></strong></li>
</ul>
<p><strong>18. Can I install a Web server in RHEL?</strong></p>
<p><strong>Answer-</strong> Of course, we can install the web server we want: Apache, nGix or other.</p>
<p><strong>19. After installing Apache2, where is the default Document Root located?</strong></p>
<p><strong>Answer &#8211;</strong> By default the apache2 DocumentRoot in RHEL sets it to /var/www/html/</p>
<p><strong>20. How do I know which version of Red Hat Enterprise Linux is running the server?</strong></p>
<p><strong>Answer &#8211;</strong> Run the command in a terminal to get the RHEL version running on your system.</p>
<pre><strong><span style="color: #0000ff;">/etc/redhat-release</span></strong></pre>
<p>I hope you like this set of Linux Interview Questions and Answers. 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>The post <a href="https://techyaz.com/interview-questions/redhat-linux-interview-questions/red-hat-enterprise-linux-interview-questions-answers/">Red Hat Enterprise Linux Interview Questions and Answers</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/interview-questions/redhat-linux-interview-questions/red-hat-enterprise-linux-interview-questions-answers/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 Change Putty Cursor Color or Mouse Pointer Color?</title>
		<link>https://techyaz.com/rhel/how-to-change-putty-cursor-color-or-mouse-pointer-color/</link>
					<comments>https://techyaz.com/rhel/how-to-change-putty-cursor-color-or-mouse-pointer-color/#comments</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Wed, 27 Dec 2017 12:06:46 +0000</pubDate>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[PuTTY]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1401</guid>

					<description><![CDATA[<p>Sometimes, cursor or mouse pointer does not visible on your putty terminal console. The reason behind that is cursor color and putty background color are set to same color configuration. You will not be able to see putty cursor or&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/rhel/how-to-change-putty-cursor-color-or-mouse-pointer-color/">How to Change Putty Cursor Color or Mouse Pointer Color?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Sometimes, cursor or mouse pointer does not visible on your putty terminal console. The reason behind that is cursor color and putty background color are set to same color configuration. You will not be able to see putty cursor or mouse pointer on putty console if your putty background color and cursor color is set as black. If you want to see the putty cursor or putty mouse pointer on your terminal console then we need to either change the putty background color or we need to change putty cursor color. If you want to <a href="http://techyaz.com/sql-server/sql-server-on-linux/how-to-change-putty-background-color/" target="_blank" rel="noopener">change PuTTY background color from black to white</a> or any color as per your choice then you should read attached article and if you want to change color for putty cursor or mouse pointer then you should keep reading this article.</p>
<h5><span style="color: #333399;">Change Putty Cursor Color or Mouse Pointer Color</span></h5>
<p>You can see background color in my putty console is showing as black and cursor color is showing as green. Now I want to change the putty cursor color or mouse pointer color to red.</p>
<p><strong>1-</strong> To start this, we will Right click on the top border of putty console and choose “<strong>Change Settings…”</strong></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1403" src="http://techyaz.com/wp-content/uploads/2017/12/1-Change-Settings-CC.jpg" alt="Putty Change Setting window" width="630" height="387" srcset="https://techyaz.com/wp-content/uploads/2017/12/1-Change-Settings-CC.jpg 630w, https://techyaz.com/wp-content/uploads/2017/12/1-Change-Settings-CC-300x184.jpg 300w" sizes="auto, (max-width: 630px) 100vw, 630px" /></p>
<p><strong>2-</strong> You will get below settings window. Now click on <strong>Colours</strong> tab from left side pane and we need to select an option from right side pane for which we must change the color. As we have to change cursor color or mouse pointer color so we will select <strong>Cursor Colour </strong>from right side pane. Click on <strong>Modify </strong>button to select color as per your choice for your cursor or mouse pointer.</p>
<p><strong>Colours-&gt;Cursor Colour-&gt;Modify</strong></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1404" src="http://techyaz.com/wp-content/uploads/2017/12/2-Settings-Windows-CC.jpg" alt="Putty Settings window" width="627" height="561" srcset="https://techyaz.com/wp-content/uploads/2017/12/2-Settings-Windows-CC.jpg 627w, https://techyaz.com/wp-content/uploads/2017/12/2-Settings-Windows-CC-300x268.jpg 300w" sizes="auto, (max-width: 627px) 100vw, 627px" /></p>
<p><strong>3-</strong> Once you click on modify button, you will get custom colors window to choose appropriate color for your putty cursor or mouse pointer. I have selected red color as shown in below screenshot. Click on <strong>Ok</strong> and then on <strong>Apply</strong> button to reflect this change.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1405" src="http://techyaz.com/wp-content/uploads/2017/12/3-Color-window-cc.jpg" alt="color window" width="616" height="458" srcset="https://techyaz.com/wp-content/uploads/2017/12/3-Color-window-cc.jpg 616w, https://techyaz.com/wp-content/uploads/2017/12/3-Color-window-cc-300x223.jpg 300w" sizes="auto, (max-width: 616px) 100vw, 616px" /></p>
<p><strong>4-</strong> Once you click on apply button, you will see putty cursor color will be changed to red on your putty console. You can see this in below screenshot as well. Now your Putty cursor color has been changed to the color as per your choice in this article.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1406" src="http://techyaz.com/wp-content/uploads/2017/12/4-Cursor-color-changed.jpg" alt="Cursor Color Set to Red" width="571" height="236" srcset="https://techyaz.com/wp-content/uploads/2017/12/4-Cursor-color-changed.jpg 571w, https://techyaz.com/wp-content/uploads/2017/12/4-Cursor-color-changed-300x124.jpg 300w" sizes="auto, (max-width: 571px) 100vw, 571px" /></p>
<p>I have explained step by step method to <a href="http://techyaz.com/rhel/change-putty-text-color/" target="_blank" rel="noopener">change putty text color</a> and <a href="http://techyaz.com/sql-server/sql-server-on-linux/how-to-change-putty-background-color/" target="_blank" rel="noopener">putty background color</a> for your putty terminal console in attached articles. Read them if you want to change putty text or putty background color. 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>The post <a href="https://techyaz.com/rhel/how-to-change-putty-cursor-color-or-mouse-pointer-color/">How to Change Putty Cursor Color or Mouse Pointer Color?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/rhel/how-to-change-putty-cursor-color-or-mouse-pointer-color/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>How to Change Putty Background Color?</title>
		<link>https://techyaz.com/rhel/how-to-change-putty-background-color/</link>
					<comments>https://techyaz.com/rhel/how-to-change-putty-background-color/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Tue, 26 Dec 2017 10:45:49 +0000</pubDate>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[PuTTY]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1391</guid>

					<description><![CDATA[<p>If you want to change putty background color from black to white or any color as per your choice then you should keep reading this article. If you are working for several customers, you can configure distinct colors for their&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/rhel/how-to-change-putty-background-color/">How to Change Putty Background Color?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you want to change putty background color from black to white or any color as per your choice then you should keep reading this article. If you are working for several customers, you can configure distinct colors for their servers based on customer names.</p>
<p><span style="color: #993300;"><em><strong>Related Articles</strong></em></span></p>
<ul>
<li><a href="http://techyaz.com/rhel/change-putty-text-color/" target="_blank" rel="noopener">How to Change Putty Terminal Text Color?</a></li>
<li><a href="http://techyaz.com/rhel/how-to-change-putty-cursor-color-or-mouse-pointer-color/" target="_blank" rel="noopener">How to Change Putty Cursor or Mouse Pointer Color?</a></li>
</ul>
<h5><span style="color: #333399;">Change Putty Background Color</span></h5>
<p>Please follow below instructions to change background color of your putty console.</p>
<p><strong>1-</strong> You can see background color in my putty console is showing as black, now I want to change it to white background. Right click on the top border of putty console and choose “<strong>Change Settings…”</strong></p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1393 size-full" src="http://techyaz.com/wp-content/uploads/2017/12/1-Change-Settings-BC.jpg" alt="Putty Settings Console" width="833" height="373" srcset="https://techyaz.com/wp-content/uploads/2017/12/1-Change-Settings-BC.jpg 833w, https://techyaz.com/wp-content/uploads/2017/12/1-Change-Settings-BC-300x134.jpg 300w, https://techyaz.com/wp-content/uploads/2017/12/1-Change-Settings-BC-768x344.jpg 768w" sizes="auto, (max-width: 833px) 100vw, 833px" /></p>
<p><strong>2-</strong> You will get below settings window. Now click on <strong>Colours</strong> tab from left side pane and now we need to select an option for which we must change the color. As we have to change putty background color so we will select <strong>Default background </strong>from right side pane. Click on <strong>Modify </strong>button to select white color as putty background color. You can choose putty background color as per your choice.</p>
<p><strong>Colours-&gt;Default background-&gt;Modify</strong></p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1394 size-full" src="http://techyaz.com/wp-content/uploads/2017/12/2-Change-Settings-Window-BC.jpg" alt="Putty Settings Console Window" width="623" height="553" srcset="https://techyaz.com/wp-content/uploads/2017/12/2-Change-Settings-Window-BC.jpg 623w, https://techyaz.com/wp-content/uploads/2017/12/2-Change-Settings-Window-BC-300x266.jpg 300w" sizes="auto, (max-width: 623px) 100vw, 623px" /></p>
<p><strong>3-</strong> Once you click on modify button, you will get custom colors window to choose appropriate color as background in putty console. I have selected white color as shown in below screenshot. Click on <strong>Ok</strong> and then on <strong>Apply</strong> button to reflect this change.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1395 size-full" src="http://techyaz.com/wp-content/uploads/2017/12/3-Choose-colors-BC.jpg" alt="color console" width="631" height="447" srcset="https://techyaz.com/wp-content/uploads/2017/12/3-Choose-colors-BC.jpg 631w, https://techyaz.com/wp-content/uploads/2017/12/3-Choose-colors-BC-300x213.jpg 300w" sizes="auto, (max-width: 631px) 100vw, 631px" /></p>
<p><strong>4-</strong> Once you click on apply button, you will see putty background color will be changed to white on your putty console. You can see that background color for your putty terminal console has been changed to white in below screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1396 size-full" src="http://techyaz.com/wp-content/uploads/2017/12/4-background-color-changed-BC.jpg" alt="Putty Background color changed to white" width="572" height="211" srcset="https://techyaz.com/wp-content/uploads/2017/12/4-background-color-changed-BC.jpg 572w, https://techyaz.com/wp-content/uploads/2017/12/4-background-color-changed-BC-300x111.jpg 300w" sizes="auto, (max-width: 572px) 100vw, 572px" /></p>
<h5><span style="color: #333399;">Change Putty Font Color</span></h5>
<p>Now you can see the putty text color is showing very light and it is very difficult to read texts on above terminal console after changing the putty background color. So, your next step would be to change the putty text color or font color so that it can be visible to eyes. This step is optional and not needed if you only want to change putty background color.</p>
<p>I have explained <a href="http://techyaz.com/rhel/change-putty-text-color/" target="_blank" rel="noopener">step by step method to change putty text color</a> for your putty terminal console in attached article. You just need to launch <strong>settings</strong> windows again and click on <strong>Colours</strong> tab from left side pane followed by <strong>Default Foreground</strong> option from right side pane and then click on <strong>Modify </strong>button to choose color for your text. Choose your putty text color accordingly and click on Ok button and finally click on Apply button to reflect the changes.</p>
<p>Now your Putty background color as well as putty text color have been changed as per your choice. 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>The post <a href="https://techyaz.com/rhel/how-to-change-putty-background-color/">How to Change Putty Background Color?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/rhel/how-to-change-putty-background-color/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Change Putty Text Color?</title>
		<link>https://techyaz.com/rhel/change-putty-text-color/</link>
					<comments>https://techyaz.com/rhel/change-putty-text-color/#comments</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Mon, 25 Dec 2017 09:25:43 +0000</pubDate>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[PuTTY]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1382</guid>

					<description><![CDATA[<p>If you want to change PuTTY text color that are more visible to your eyes and make you understand what is written on your putty console then you should keep reading this article. We should always set text colors that&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/rhel/change-putty-text-color/">How to Change Putty Text Color?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you want to change PuTTY text color that are more visible to your eyes and make you understand what is written on your putty console then you should keep reading this article. We should always set text colors that are clear and visible to eyes. Read attached article if you want to <a href="http://techyaz.com/sql-server/how-to-change-putty-background-color/" target="_blank" rel="noopener">change background color of your putty console</a>.</p>
<h5><span style="color: #333399;">Steps to Change PuTTY Text Color</span></h5>
<p>Please follow below step by step process to change text color of your putty console.</p>
<p><strong>1-</strong> You can see text color in my putty console is very light and very difficult to read. You need to put more focus in just reading the texts so I have decided to change putty text color of my console. Right click on the top border of putty console and choose “<strong>Change Settings…”</strong></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1384" src="http://techyaz.com/wp-content/uploads/2017/12/1-Putty-Copy.jpg" alt="Putty" width="716" height="348" srcset="https://techyaz.com/wp-content/uploads/2017/12/1-Putty-Copy.jpg 716w, https://techyaz.com/wp-content/uploads/2017/12/1-Putty-Copy-300x146.jpg 300w" sizes="auto, (max-width: 716px) 100vw, 716px" /></p>
<p>&nbsp;</p>
<p><strong>2-</strong> You will get below settings window. Click on <strong>Colours</strong> tab from left side pane and select an option from right side pane for which we must change the color. As we have to change putty text color so we will select <strong>Default foreground </strong>from right side pane<strong>. Now, </strong>click on <strong>Modify </strong>button to select colors for your text.</p>
<p><strong>Colours</strong>-&gt;<strong>Default foreground-</strong>&gt;<strong>Modify</strong></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1385" src="http://techyaz.com/wp-content/uploads/2017/12/2-Settings-page.jpg" alt="putty setting window" width="623" height="555" srcset="https://techyaz.com/wp-content/uploads/2017/12/2-Settings-page.jpg 623w, https://techyaz.com/wp-content/uploads/2017/12/2-Settings-page-300x267.jpg 300w" sizes="auto, (max-width: 623px) 100vw, 623px" /></p>
<p><strong>3-</strong> Once you click on modify button, you will get custom colors window to choose appropriate color for your text showing in putty console. I have selected black color as shown in below screenshot. Click on <strong>Ok</strong> and then on <strong>Apply</strong> button to reflect this change.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1386" src="http://techyaz.com/wp-content/uploads/2017/12/3-Choose-Colors.jpg" alt="Choose Colors" width="634" height="444" srcset="https://techyaz.com/wp-content/uploads/2017/12/3-Choose-Colors.jpg 634w, https://techyaz.com/wp-content/uploads/2017/12/3-Choose-Colors-300x210.jpg 300w" sizes="auto, (max-width: 634px) 100vw, 634px" /></p>
<p><strong>4-</strong> Once you click on <strong>Apply</strong> button, you will see the new text color on your putty console. You can see that putty text color has been changed to black in below screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1387" src="http://techyaz.com/wp-content/uploads/2017/12/4-Text-color-changed.jpg" alt="Putty text Color" width="567" height="183" srcset="https://techyaz.com/wp-content/uploads/2017/12/4-Text-color-changed.jpg 567w, https://techyaz.com/wp-content/uploads/2017/12/4-Text-color-changed-300x97.jpg 300w" sizes="auto, (max-width: 567px) 100vw, 567px" /></p>
<p>If you are working for several customers, you can configure distinct colors for each customer so that you easily categories them. You can change the color and save them in your putty profile.</p>
<p><span style="color: #800000;"><em><strong>Related Articles</strong></em></span></p>
<ul>
<li><a href="http://techyaz.com/ubuntu/fix-putty-network-error-connection-refused-connecting-ubuntu-server/" target="_blank" rel="noopener">Fix PuTTY Network Error: Connection Refused While Connecting to Ubuntu Server</a></li>
<li><a href="http://techyaz.com/rhel/fix-putty-network-error-connection-timed/" target="_blank" rel="noopener">Fix PuTTY Connection Issue Network Error: Connection Timed Out</a></li>
<li><a href="http://techyaz.com/rhel/how-to-change-putty-cursor-color-or-mouse-pointer-color/" target="_blank" rel="noopener">How to Change Putty Cursor or Mouse Pointer Color?</a></li>
</ul>
<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>The post <a href="https://techyaz.com/rhel/change-putty-text-color/">How to Change Putty Text Color?</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/rhel/change-putty-text-color/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to Reset or Change User Password on RedHat Linux</title>
		<link>https://techyaz.com/rhel/how-to-reset-or-change-user-password-on-linux/</link>
					<comments>https://techyaz.com/rhel/how-to-reset-or-change-user-password-on-linux/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Wed, 20 Dec 2017 15:00:30 +0000</pubDate>
				<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[change password]]></category>
		<category><![CDATA[red hat Linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1369</guid>

					<description><![CDATA[<p>Password change is a routine task to keep your login secure. We use passwd tool on most of the Linux operating systems to change user password. The passwd tool changes passwords for user and group accounts, even you can change your&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/rhel/how-to-reset-or-change-user-password-on-linux/">How to Reset or Change User Password on RedHat Linux</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Password change is a routine task to keep your login secure. We use <strong>passwd</strong> tool on most of the Linux operating systems to change user password. The <strong>passwd</strong> tool changes passwords for user and group accounts, even you can change your root password using this tool. If you are a normal user, you can change only your password using this tool whereas you can change the password for any account using root access.</p>
<p><em><span style="color: #800000;"><strong>Related Articles</strong></span></em></p>
<ul>
<li><a href="https://techyaz.com/sql-server/sql-server-on-linux/change-hostname-red-hat-linux-server/" target="_blank" rel="noopener">How to Change Hostname of RedHat Linux Server?</a></li>
<li><a href="https://techyaz.com/sql-server/sql-server-on-linux/check-change-ip-address-subnet-mask-default-gateway-linux-server/" target="_blank" rel="noopener">How to Change IP, Subnet Mask and Default Gateway of RHEL Machine?</a></li>
<li><a href="https://techyaz.com/sql-server/sql-server-on-linux/step-step-process-install-red-hat-enterprise-linux/" target="_blank" rel="noopener">Step by Step Process to Install RHEL 7.3</a></li>
</ul>
<h3><span style="color: #333399;"><strong>Change User Password in Linux</strong></span></h3>
<p>We will use passwd command to change our own password. Type <strong>passwd</strong> without specifying a username if you are changing your password. You will be prompted to enter your old password for verification, and then a new password. Below is the high level steps to follow password change process.</p>
<ol>
<li>Open Linux terminal or connect to your server using PuTTY.</li>
<li>Type <strong>passwd</strong> and press Enter.</li>
<li>Type your <strong>current password</strong> and press Enter.</li>
<li>Now type your <strong>new password </strong>and press Enter.</li>
<li>Make sure your password is complex and not similar to older one otherwise you will get BAD PASSWORD error as shown in below screenshot.</li>
<li>Retype your new password and press Enter.</li>
<li>Now you will get notify that your password has been changed.</li>
</ol>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1374" src="http://techyaz.com/wp-content/uploads/2017/12/change-password-min.jpg" alt="Change Linux user password" width="670" height="360" srcset="https://techyaz.com/wp-content/uploads/2017/12/change-password-min.jpg 670w, https://techyaz.com/wp-content/uploads/2017/12/change-password-min-300x161.jpg 300w" sizes="auto, (max-width: 670px) 100vw, 670px" /></p>
<h3><span style="color: #333399;"><strong>Change root Password</strong></span></h3>
<p>The &#8220;root&#8221; account is the most privileged account on a Linux system. When using this account, it is crucial to be very careful. Follow below steps to reset or change the password for your root account.</p>
<ol>
<li>Open Linux terminal or connect to your server using PuTTY.</li>
<li>Type <strong>su</strong> at the command prompt, and press Enter.</li>
<li>Type the <strong>current root password</strong>, then press Enter.</li>
<li>Type <strong>passwd</strong> and press Enter.</li>
<li>Type a <strong>new password</strong> and press Enter.</li>
<li><strong>Retype the new password</strong> and press Enter.</li>
<li>Your password is changed here.</li>
</ol>
<h3><span style="color: #333399;"><strong>Change other User’s Account Password</strong></span></h3>
<p>To change a password for a user, you need to login using &#8220;root&#8221; account. Follow below steps to change password on behalf of any user.</p>
<ol>
<li>Open Linux terminal or connect to your server using PuTTY.</li>
<li>Type <strong>su</strong> at the command prompt, and press Enter.</li>
<li>Enter <strong>current root password</strong>, then press Enter.</li>
<li>Type <strong>passwd LoginName</strong> and press Enter. If login account is Manvendra. Type passwd Manvendra.</li>
<li>Enter a <strong>new password</strong> and press Enter.</li>
<li><strong>Retype the new password</strong> and press Enter.</li>
<li>Your password is changed here.</li>
</ol>
<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>The post <a href="https://techyaz.com/rhel/how-to-reset-or-change-user-password-on-linux/">How to Reset or Change User Password on RedHat Linux</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/rhel/how-to-reset-or-change-user-password-on-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Change Hostname of RedHat Linux Server</title>
		<link>https://techyaz.com/rhel/change-hostname-red-hat-linux-server/</link>
					<comments>https://techyaz.com/rhel/change-hostname-red-hat-linux-server/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Wed, 13 Dec 2017 07:29:58 +0000</pubDate>
				<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[red hat Linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1329</guid>

					<description><![CDATA[<p>Last week we had received some requests to rename or change hostname of RedHat Linux systems. We got these requests because the hostname of these linux servers were not as per the server naming convention standard. Here, I will explain&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/rhel/change-hostname-red-hat-linux-server/">How to Change Hostname of RedHat Linux Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Last week we had received some requests to rename or change hostname of RedHat Linux systems. We got these requests because the hostname of these linux servers were not as per the server naming convention standard. Here, I will explain how to rename hostname of any redhat linux server. I changed hostname of RHEL servers that are hosted in my lab to show you step by step method.</p>
<p><em><span style="color: #800000;"><strong>Related Articles:</strong></span></em></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/check-change-ip-address-subnet-mask-default-gateway-linux-server/" target="_blank" rel="noopener">How to Change IP Address, Subnet Mask &amp; Default Gateway of Linux Server</a></strong></li>
<li><strong><a href="https://techyaz.com/rhel/fixing-error-user-not-sudoers-file-incident-will-reported-red-hat-linux-server/" target="_blank" rel="noopener">Fix Error &#8220;User is not in sudoers file.</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/" target="_blank" rel="noopener">Installing SQL Server 2017 on Red Hat Linux Server</a></strong></li>
</ul>
<p>There are three methods that i will explain here to rename or change hostname of any Redhat Linux server. These three methods that we will use in this article are given below.</p>
<ol>
<li>Edit etc/hostname.</li>
<li>nmcli utility.</li>
<li>hostnamectl utility.</li>
</ol>
<h3><span style="color: #333399;">Change Hostname of RedHat Linux Server by editing etc/hostname</span></h3>
<p>Connect to your Redhat Linux server and check the hostname by running below command.</p>
<pre><strong><span style="color: #008000;">#Check hostname using any command.</span>
<span style="color: #0000ff;">hostname</span>

<span style="color: #008000;">#You can run below command as well to check the hostname.</span>
<span style="color: #0000ff;">cat /etc/hostname
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1331" src="http://techyaz.com/wp-content/uploads/2017/12/1-check-existing-host-name-min.jpg" alt="Check linux hostname" width="605" height="200" srcset="https://techyaz.com/wp-content/uploads/2017/12/1-check-existing-host-name-min.jpg 605w, https://techyaz.com/wp-content/uploads/2017/12/1-check-existing-host-name-min-300x99.jpg 300w" sizes="auto, (max-width: 605px) 100vw, 605px" /></p>
<p>We can see the hostname of this RedHat Linux server is SQLServerRHEL.localdomain. Now we will change this name to TechyazRHEL. If you want to change hostname with fully qualified name then you can write fully qualified name in below command.</p>
<pre><strong><span style="color: #008000;">#Connect to RHEL as root.</span>
<span style="color: #0000ff;">Sudo su</span>
<span style="color: #008000;">
#Change Hostname using /etc/hostname. Make sure to write your new hostname in double quote.</span>
<span style="color: #0000ff;">echo "TechyazRHEL" &gt; /etc/hostname
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1332" src="http://techyaz.com/wp-content/uploads/2017/12/3-change-host-name-min.jpg" alt="change hostname by editing etc/hostname" width="664" height="205" srcset="https://techyaz.com/wp-content/uploads/2017/12/3-change-host-name-min.jpg 664w, https://techyaz.com/wp-content/uploads/2017/12/3-change-host-name-min-300x93.jpg 300w" sizes="auto, (max-width: 664px) 100vw, 664px" /></p>
<p>You can see when we check hostname of this linux server using <em><strong>hostname</strong></em> command, it is still showing older name SQLServerRHEL.localdomain whereas when we check using <strong><em>cat /etc/hostname</em></strong> it is showing newly changed hostname.</p>
<p>To reflect new host name, we need to restart service <strong>systemd-hostnamed</strong>. Once you will restart this service, the output of <em><strong>hostname</strong></em> command will also be same as new hostname as shown in above image.</p>
<pre><strong><span style="color: #008000;">#Restart service systemd-hostnamed</span>
<span style="color: #0000ff;">service systemd-hostnamed restart
</span> <span style="color: #008000;">or</span>
<span style="color: #0000ff;">systemctl restart systemd-hostnamed</span> 
</strong></pre>
<p>You can see new hostname after restarting above service in above screenshot. One thing you might notice that command prompt is still showing as older hostname i.e. root@SQLServerRHEL. This will disappear if you close this session and connect to new session. Let&#8217;s try this by launching new session, you can see new session is showing new hostname in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1333" src="http://techyaz.com/wp-content/uploads/2017/12/4-New-Session-min.jpg" alt="new session post renaming hostname" width="639" height="134" srcset="https://techyaz.com/wp-content/uploads/2017/12/4-New-Session-min.jpg 639w, https://techyaz.com/wp-content/uploads/2017/12/4-New-Session-min-300x63.jpg 300w" sizes="auto, (max-width: 639px) 100vw, 639px" /></p>
<h3><span style="color: #333399;">Rename Hostname of RedHat Linux Server using nmcli</span></h3>
<p>The nmcli (NetworkManager Command Line Interface) command-line utility is used for controlling Network Manager and reporting network status. nmcli is used to create, display, edit, delete, activate, and deactivate network connections, as well as control and display network device status. Here, we will use nmcli utility to change the hostname of redhat linux server.</p>
<p>Connect to your RedHat Linux server for which you want to change hostname. Run below commands to change hostname of your linux server.</p>
<pre><strong><span style="color: #008000;">#Connect to RedHat Linux server using root access.</span>
<span style="color: #0000ff;">sudo su</span>

<span style="color: #008000;">#Check existing hostname of RHEL server</span>
<span style="color: #0000ff;">hostname</span>

<span style="color: #008000;">#Change hostname of Redhat Linux server to techyazRHEL-nmCLI. </span></strong>
<strong><span style="color: #008000;">#Change your new hostname in place of techyazRHEL-nmCLI.</span>
<span style="color: #0000ff;">nmcli general hostname techyazRHEL-nmCLI</span>

<span style="color: #008000;">#You can also check the hostname of Redhat linux server using nmcli utility.</span>
<span style="color: #0000ff;">nmcli general hostname
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1334" src="http://techyaz.com/wp-content/uploads/2017/12/5-nmcli-min.jpg" alt="CHange hostname using nmcli utility" width="732" height="137" srcset="https://techyaz.com/wp-content/uploads/2017/12/5-nmcli-min.jpg 732w, https://techyaz.com/wp-content/uploads/2017/12/5-nmcli-min-300x56.jpg 300w" sizes="auto, (max-width: 732px) 100vw, 732px" /></p>
<p>You can see hostname of RHEL server has been changed to techyazRHEL-nmCLI in above screenshot. Your PuTTY terminal will display new hostname once you open new session.</p>
<p>If new hostname is not showing after running above command then you should restart service <strong>systemd-hostnamed</strong> to reflect changes as we did in first section. You can see new hostname while launching new session in below screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1335" src="http://techyaz.com/wp-content/uploads/2017/12/6-nmcli-min.jpg" alt="new session post renaming hostname using nmcli" width="599" height="129" srcset="https://techyaz.com/wp-content/uploads/2017/12/6-nmcli-min.jpg 599w, https://techyaz.com/wp-content/uploads/2017/12/6-nmcli-min-300x65.jpg 300w" sizes="auto, (max-width: 599px) 100vw, 599px" /></p>
<h3><span style="color: #333399;">Rename Hostname of RedHat Linux Server using hostnamectl</span></h3>
<p>The hostnamectl tool is provided for administering the host names in use on a given system. First we will check the existing hostname of this server by running <em><strong>hostname</strong></em> command. We can also check the hostname using hostnamectl utility.</p>
<p>Connect to your Redhat Linux server using root and check the existing hostname.</p>
<pre><strong><span style="color: #008000;">#Connect to Linux server using root.</span>
<span style="color: #0000ff;">sudo su</span>

<span style="color: #008000;">#Check existing hostname.</span>
<span style="color: #0000ff;">hostname</span>
<span style="color: #008000;">or</span> 
<span style="color: #0000ff;">hostnamectl status</span>

<span style="color: #008000;">#Change hostname to techyazRHEL.</span>
<span style="color: #0000ff;">hostnamectl set-name techyazRHEL
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1336" src="http://techyaz.com/wp-content/uploads/2017/12/7-hostnamectl-min.jpg" alt="change hostname using hostnamectl" width="744" height="281" srcset="https://techyaz.com/wp-content/uploads/2017/12/7-hostnamectl-min.jpg 744w, https://techyaz.com/wp-content/uploads/2017/12/7-hostnamectl-min-300x113.jpg 300w, https://techyaz.com/wp-content/uploads/2017/12/7-hostnamectl-min-1320x500.jpg 1320w" sizes="auto, (max-width: 744px) 100vw, 744px" /></p>
<p>You can check the hostname post renaming it. You can see new hostname in above image. Putty terminal will display new hostname once you open new session as shown in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1337" src="http://techyaz.com/wp-content/uploads/2017/12/8-hostnamectl-min.jpg" alt="New session to reflect new hostname" width="604" height="132" srcset="https://techyaz.com/wp-content/uploads/2017/12/8-hostnamectl-min.jpg 604w, https://techyaz.com/wp-content/uploads/2017/12/8-hostnamectl-min-300x66.jpg 300w" sizes="auto, (max-width: 604px) 100vw, 604px" /></p>
<p>We can set all three kind of hostnames (Static, Pretty and Transient) using hostnamectl utility. Static name is mandatory whereas remaining two is optional. If you will not pass any hostname type in above command, same name will be set for all three hostnames. I haven&#8217;t used any hostname option in above command so all hostname options will have same name. Let&#8217;s check this in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1338" src="http://techyaz.com/wp-content/uploads/2017/12/9-hostnamectl-min.jpg" alt="check hostname using hostnamectl utility" width="695" height="279" srcset="https://techyaz.com/wp-content/uploads/2017/12/9-hostnamectl-min.jpg 695w, https://techyaz.com/wp-content/uploads/2017/12/9-hostnamectl-min-300x120.jpg 300w" sizes="auto, (max-width: 695px) 100vw, 695px" /></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>The post <a href="https://techyaz.com/rhel/change-hostname-red-hat-linux-server/">How to Change Hostname of RedHat Linux Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/rhel/change-hostname-red-hat-linux-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install sqlcmd &#038; bcp (SQL Tools ) on Ubuntu Server</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/install-sqlcmd-bcp-sql-tools-ubuntu-server/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/install-sqlcmd-bcp-sql-tools-ubuntu-server/#comments</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Tue, 31 Oct 2017 11:15:52 +0000</pubDate>
				<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[bcp]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<category><![CDATA[SQL Tools]]></category>
		<category><![CDATA[sqlcmd]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1071</guid>

					<description><![CDATA[<p>I have described step by step process to install SQL Server 2017 on Ubuntu server in my last articles. Here I will explain how to install sqlcmd and bcp utilities that comes under SQL tools on Ubuntu server that is&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sqlcmd-bcp-sql-tools-ubuntu-server/">Install sqlcmd &#038; bcp (SQL Tools ) on Ubuntu Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I have described step by step process to <a href="http://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/" target="_blank" rel="noopener">install SQL Server 2017 on Ubuntu server</a> in my last articles. Here I will explain how to install sqlcmd and bcp utilities that comes under SQL tools on Ubuntu server that is already running with SQL Server 2017. This article will describe the online method to install SQL tools.</p>
<p>SQL tools will be installed using mssql-tools package. The <strong>mssql-tools</strong> package contains two utilities:</p>
<ul>
<li><strong>sqlcmd:</strong> Command-line query utility.</li>
<li><strong>bcp:</strong> Bulk import-export utility.</li>
</ul>
<p>Before going ahead, we need Ubuntu server and SQL Server 2017 running on that instance. If you have no idea about installing Ubuntu server or SQL Server 2017 or creating a virtual machine where you can install Ubuntu and SQL Server then i would recommend you to read below articles.</p>
<ul>
<li><a href="http://techyaz.com/sql-server/sql-server-on-linux/create-virtual-machine-pc/" target="_blank" rel="noopener">How to Create a Virtual Machine.</a></li>
<li><a href="http://techyaz.com/ubuntu/install-ubuntu-linux-server-16-04-virtual-machine-step-by-step/" target="_blank" rel="noopener">How to Install Ubuntu on a virtual machine.</a></li>
</ul>
<h4><span style="color: #000080;"><strong>SQL Tools Installation on Ubuntu &#8211; ONLINE Method/Using Internet</strong></span></h4>
<p>Installing any package on Ubuntu Linux is straight forward method if our server has internet connection and able to access online repositories. But it becomes painful if your Ubuntu server has no access of internet. Below is the list of articles that you can use to learn offline method of SQL Server Installations on Ubuntu and RHEL.</p>
<ul>
<li><a href="http://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">Install SQL Server on Ubuntu &#8211; Offline Method/Without Internet</a></li>
<li><a href="http://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">How to install SQL Server Agent on Ubuntu &#8211; Offline Method</a></li>
<li><a href="http://techyaz.com/sql-server/sql-server-on-linux/step-step-process-install-sql-tools-ubuntu-server-running-without-internet-offline-installation/" target="_blank" rel="noopener">Installing SQL Tools on Ubuntu Server using Offline Method/Without Internet</a></li>
<li><a href="http://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-redhat-linux-without-internet-offline-installation/" target="_blank" rel="noopener">How to Install SQL Server on Redhat linux &#8211; Offline Method</a></li>
</ul>
<p>Before moving ahead let&#8217;s check whether SQL Server is installed or not on this machine. Run below command to check the SQL Server service.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span style="color: #0000ff;"><span class="kwrd"><span style="color: #008000;">#Check SQL Tools</span>
sqlcmd

<span style="color: #008000;">#Check SQL Server Service</span></span><span class="kwrd">
systemctl status mssql-server
</span></span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1073" src="http://techyaz.com/wp-content/uploads/2017/10/1check-sqlcmd.jpg" alt="check sqlcmd" width="975" height="237" srcset="https://techyaz.com/wp-content/uploads/2017/10/1check-sqlcmd.jpg 975w, https://techyaz.com/wp-content/uploads/2017/10/1check-sqlcmd-300x73.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/1check-sqlcmd-768x187.jpg 768w" sizes="auto, (max-width: 975px) 100vw, 975px" /></p>
<p>We can see SQL Server is installed and running fine on this server but SQL tools are not installed because sqlcmd is not throwing any output.</p>
<p>Let&#8217;s start with importing public repository GPG keys to install sqlcmd and bcp. Run below curl command to import the keys.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: #0000ff;">curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1074" src="http://techyaz.com/wp-content/uploads/2017/10/2-download-repository.jpg" alt="download repository" width="979" height="134" srcset="https://techyaz.com/wp-content/uploads/2017/10/2-download-repository.jpg 979w, https://techyaz.com/wp-content/uploads/2017/10/2-download-repository-300x41.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/2-download-repository-768x105.jpg 768w" sizes="auto, (max-width: 979px) 100vw, 979px" /></p>
<p>Now we will register Microsoft Ubuntu repository by running below commands.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: #0000ff;">curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
</span></strong></pre>
<p>Next step is to update the source list by running given command.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: black;"><span style="color: #0000ff;">sudo apt-get update</span> 
</span></strong></pre>
<p>Once you execute above command, a series of execution will start and update all source packages.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1075" src="http://techyaz.com/wp-content/uploads/2017/10/4-update-repository.jpg" alt="update ubuntu source list" width="869" height="142" srcset="https://techyaz.com/wp-content/uploads/2017/10/4-update-repository.jpg 869w, https://techyaz.com/wp-content/uploads/2017/10/4-update-repository-300x49.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/4-update-repository-768x125.jpg 768w" sizes="auto, (max-width: 869px) 100vw, 869px" /></p>
<p>Once above command will be executed, we will run below command to install SQL tools with required unix package.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: #0000ff;">sudo apt-get install mssql-tools unixodbc-dev
</span></strong></pre>
<p>You can see mssql-tools package is installed in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1076" src="http://techyaz.com/wp-content/uploads/2017/10/5-install-1024x288.jpg" alt="install sqlcmd" width="1024" height="288" srcset="https://techyaz.com/wp-content/uploads/2017/10/5-install-1024x288.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/5-install-300x84.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/5-install-768x216.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/5-install.jpg 1422w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now you can go ahead and use sql tools. If you are facing any issue during accessing sqlcmd utility then you need to set path environment variable using below steps. Run below command to set the path environment variables. Ubuntu will not be able to recognize sqlcmd utility unless you set the path environment variable. Ubuntu is able to recognize sqlcmd utility once we set the path environment variables.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#To make sqlcmd/bcp accessible from the bash shell for login sessions, modify your PATH in the ~/.bash_profile file</span>
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' &gt;&gt; ~/.bash_profile

<span style="color: #008000;">#To make sqlcmd/bcp accessible from the bash shell for interactive/non-login sessions, modify the PATH in the ~/.bashrc file</span>
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' &gt;&gt; ~/.bashrc
source ~/.bashrc
</span></strong></pre>
<p>You can see, sqlcmd is recognized by ubuntu after setting path environment variable in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1077" src="http://techyaz.com/wp-content/uploads/2017/10/6-set-path-env-1024x162.jpg" alt="set path environment variable" width="1024" height="162" srcset="https://techyaz.com/wp-content/uploads/2017/10/6-set-path-env-1024x162.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/6-set-path-env-300x47.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/6-set-path-env-768x121.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/6-set-path-env.jpg 1039w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Now connect to SQL Server instance using sqlcmd and run a command to validate this installation. I have checked the SQL Server version installed on ubuntu server. You can see the details in below image that SQL Server 2017 is installed on this Ubuntu server. Now we have done with SQL Tools installation on Ubuntu server.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1078" src="http://techyaz.com/wp-content/uploads/2017/10/7-validate.jpg" alt="validate sqlcmd" width="723" height="368" srcset="https://techyaz.com/wp-content/uploads/2017/10/7-validate.jpg 723w, https://techyaz.com/wp-content/uploads/2017/10/7-validate-300x153.jpg 300w" sizes="auto, (max-width: 723px) 100vw, 723px" /></p>
<p>I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sqlcmd-bcp-sql-tools-ubuntu-server/">Install sqlcmd &#038; bcp (SQL Tools ) on Ubuntu Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/sql-server-on-linux/install-sqlcmd-bcp-sql-tools-ubuntu-server/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>21 Missing Features in SQL Server on Linux</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/21-missing-features-in-sql-server-on-linux/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/21-missing-features-in-sql-server-on-linux/#comments</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Mon, 30 Oct 2017 07:24:16 +0000</pubDate>
				<category><![CDATA[RedHat Linux]]></category>
		<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Interview Questions]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Missing features]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1062</guid>

					<description><![CDATA[<p>In last tip, I have explained about new features introduced in SQL Server 2017. SQL Server support on Linux based operating systems is one of the new feature introduced in SQL Server 2017. Here, I will describe all those missing&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/21-missing-features-in-sql-server-on-linux/">21 Missing Features in SQL Server on Linux</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In last tip, I have explained about <a href="http://techyaz.com/sql-server/10-new-features-sql-server-2017-database-engine/" target="_blank" rel="noopener">new features introduced in SQL Server 2017</a>. SQL Server support on Linux based operating systems is one of the new feature introduced in SQL Server 2017. Here, I will describe all those missing features from Linux based SQL Server instances but these features can be used if you are deploying your SQL Server on Windows operating system. We are expecting Microsoft will include all these features in upcoming releases of SQL Servers.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1066" src="http://techyaz.com/wp-content/uploads/2017/10/21-missing-features.jpg" alt="21 missing features in sql server on linux" width="538" height="537" srcset="https://techyaz.com/wp-content/uploads/2017/10/21-missing-features.jpg 538w, https://techyaz.com/wp-content/uploads/2017/10/21-missing-features-150x150.jpg 150w, https://techyaz.com/wp-content/uploads/2017/10/21-missing-features-300x300.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/21-missing-features-160x160.jpg 160w, https://techyaz.com/wp-content/uploads/2017/10/21-missing-features-320x320.jpg 320w" sizes="auto, (max-width: 538px) 100vw, 538px" /></p>
<h5><span style="color: #000080;">Missing Features in SQL Server on Linux</span></h5>
<p>Below is the list of features that are not supported on Linux based SQL Server instances as of now in current GA release of SQL Server 2017.</p>
<p>1. Analysis Services<br />
2. Reporting Services<br />
3. R Services<br />
4. Master Data Services<br />
5. Data Quality Services<br />
6. SQL Server Browser Service<br />
7. Transactional &amp; Merge Replication<br />
8. FILESTREAM<br />
9. FileTables<br />
10. Stretch DB<br />
11. Polybase<br />
12. Third Party Extensions<br />
13. XPs<br />
14. VSS Snapshots<br />
15. Buffer Pool Extension<br />
16. Change Data Capture<br />
17. Alerts<br />
18. Distributed query with 3rd-party connections<br />
19. Database Mirroring<br />
20. AD Authentication for Linked Servers &amp; Availability Groups (AGs)<br />
21. SQL Server Integration Services (SSIS)</p>
<p>The mssql-server-is package (SSIS) is not supported on SUSE Linux in this release. It is currently supported on Ubuntu and on Red Hat Enterprise Linux (RHEL) only.</p>
<p>The following features are not supported in this release when you run SSIS packages on Linux:</p>
<p>o SSIS Catalog database<br />
o Scheduled package execution by SQL Agent<br />
o Windows Authentication<br />
o Third-party components<br />
o Change Data Capture (CDC)<br />
o SSIS Scale Out<br />
o Azure Feature Pack for SSIS<br />
o Hadoop and HDFS support<br />
o Microsoft Connector for SAP BW</p>
<p>For a list of built-in SSIS components that are not currently supported, or that are supported with limitations, see <a href="https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-ssis-known-issues#components">Limitations and known issues for SSIS on Linux</a></p>
<p><span style="color: #800000;"><em><strong>Related Articles:</strong></em></span></p>
<ul>
<li><a href="http://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/" target="_blank" rel="noopener">Install SQL Server on Ubuntu Server</a></li>
<li><a href="http://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/" target="_blank" rel="noopener">How to Install SQL Server on RHEL</a></li>
<li><a href="http://techyaz.com/sql-server/10-new-features-sql-server-2017-database-engine/" target="_blank" rel="noopener">New features Introduced in SQL Server 2017</a></li>
<li><a href="http://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">Install SQL Server on Ubuntu without Internet Access </a></li>
</ul>
<p>I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/21-missing-features-in-sql-server-on-linux/">21 Missing Features in SQL Server on Linux</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/sql-server-on-linux/21-missing-features-in-sql-server-on-linux/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Install SQL Server Agent on Ubuntu Server</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Wed, 04 Oct 2017 12:59:50 +0000</pubDate>
				<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PuTTY]]></category>
		<category><![CDATA[SQL Server Agent]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1028</guid>

					<description><![CDATA[<p>I have shown how to install SQL Server 2017 on Ubuntu server that have internet access in my last article. If your Ubuntu server doesn’t have internet access then you should read attached article to install SQL Server in offline&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/">Install SQL Server Agent on Ubuntu Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I have shown <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/" target="_blank" rel="noopener">how to install SQL Server 2017 on Ubuntu server that have internet access</a> in my last article. If your Ubuntu server doesn’t have internet access then you should read attached article to <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">install SQL Server in offline mode.</a> Here I will show you how to install SQL Server Agent on Ubuntu server that are connected to internet.</p>
<h3><span style="color: #000080;">Install SQL Server Agent on Ubuntu Linux</span></h3>
<p>Let’s first check whether SQL Server Agent is installed or not on your existing server.  Before installing SQL Server Agent, you must install SQL Server 2017  on your ubuntu server. If you have already installed SQL Server 2017 then you can connect to SQL Server that you have installed on Ubuntu server in SSMS.</p>
<p><span style="color: #800000;"><em><strong>Related Articles:</strong></em></span></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">Install SQL Server 2017 on Ubuntu Server that is not connected to Internet</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">SQL Server Agent Installation on Ubuntu Server that has no internet connection</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/step-step-process-install-sql-tools-ubuntu-server-running-without-internet-offline-installation/" target="_blank" rel="noopener">Install SQL Tools on Ubuntu Server that does not have internet access.</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-on-redhat-linux/" target="_blank" rel="noopener">Install SQL Server on Red Hat Linux Server</a></strong></li>
</ul>
<p>As we can see, SQL Server Agent or SQL Agent is disabled and none of its options are showing as enabled in below image. This is because SQL Server Agent package is not installed on that Ubuntu server.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1029" src="http://techyaz.com/wp-content/uploads/2017/10/1-sql-agent.jpg" alt="SQL Server Agent " width="498" height="374" srcset="https://techyaz.com/wp-content/uploads/2017/10/1-sql-agent.jpg 498w, https://techyaz.com/wp-content/uploads/2017/10/1-sql-agent-300x225.jpg 300w" sizes="auto, (max-width: 498px) 100vw, 498px" /><br />
SQL Agent Package comes with SQL Server 2017 package repository so if you have downloaded SQL Server 2017 repository, you can just run installation command to install SQL Server Agent. You can have a look at my last article where I have <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/" target="_blank" rel="noopener">installed SQL Server 2017</a> to understand how to download Microsoft Ubuntu repositories. As we have already installed SQL Server 2017 by downloading its repositories so we can directly install SQL Server Agent here. Run below command to install SQL Server Agent package.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: green;">#Install SQL Server Agent
<span style="color: #0000ff;">sudo apt-get install mssql-server-agent
</span></span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1030" src="http://techyaz.com/wp-content/uploads/2017/10/2-install-agent-1024x341.jpg" alt="install sql agent" width="1024" height="341" srcset="https://techyaz.com/wp-content/uploads/2017/10/2-install-agent-1024x341.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/2-install-agent-300x100.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/2-install-agent-768x256.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/2-install-agent.jpg 1342w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>You can see SQL Server Agent is installed on this machine in above screenshot and also this installation is suggesting us to restart the SQL Server service to enable SQL Server Agent. Now run below command to restart SQL Server service on this machine. You can see we have restarted SQL Server service in below image.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: green;">#Restart SQL Server Service
<span style="color: #0000ff;">systemctl restart mssql-server</span>

#Check SQL Server Service Status
<span style="color: #0000ff;">systemctl status mssql-server
</span></span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1031" src="http://techyaz.com/wp-content/uploads/2017/10/3-restart-sql-service.jpg" alt="Restart SQL Server Service" width="973" height="220" srcset="https://techyaz.com/wp-content/uploads/2017/10/3-restart-sql-service.jpg 973w, https://techyaz.com/wp-content/uploads/2017/10/3-restart-sql-service-300x68.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/3-restart-sql-service-768x174.jpg 768w" sizes="auto, (max-width: 973px) 100vw, 973px" /></p>
<p>Now connect to SQL Server Instance in SSMS client. You can also connect to SQL Server using sqlcmd utility but we need to separately install this utility to make database connection that we will do in another article. If you are already connected to SQL Server instance in SSMS then just right click on Agent folder and click on refresh button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1032" src="http://techyaz.com/wp-content/uploads/2017/10/4-refresh-sql-service.jpg" alt="refresh sql agent folder" width="401" height="366" srcset="https://techyaz.com/wp-content/uploads/2017/10/4-refresh-sql-service.jpg 401w, https://techyaz.com/wp-content/uploads/2017/10/4-refresh-sql-service-300x274.jpg 300w" sizes="auto, (max-width: 401px) 100vw, 401px" /></p>
<p>You can see SQL Server Agent folder is enabled and all options are showing now in below image. Even now we can create any agent job to schedule any database tasks now.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1033" src="http://techyaz.com/wp-content/uploads/2017/10/5-sql-agent.jpg" alt="SQL Server Agent is installed" width="583" height="411" srcset="https://techyaz.com/wp-content/uploads/2017/10/5-sql-agent.jpg 583w, https://techyaz.com/wp-content/uploads/2017/10/5-sql-agent-300x211.jpg 300w" sizes="auto, (max-width: 583px) 100vw, 583px" /></p>
<p>I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/">Install SQL Server Agent on Ubuntu Server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install SQL Server 2017 on Ubuntu with Internet Access</title>
		<link>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/</link>
					<comments>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Tue, 03 Oct 2017 10:24:51 +0000</pubDate>
				<category><![CDATA[SQL Server ON Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PuTTY]]></category>
		<category><![CDATA[SQL Server On Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=1012</guid>

					<description><![CDATA[<p>We can easily install SQL Server 2017 on Ubuntu server if we have internet access to the online repositories but little painful if we don’t have internet access to the server. You can read attached article to learn how to&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/">Install SQL Server 2017 on Ubuntu with Internet Access</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>We can easily install SQL Server 2017 on Ubuntu server if we have internet access to the online repositories but little painful if we don’t have internet access to the server. You can read attached article to learn <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-on-ubuntu-server-without-internet-offline-installation/" target="_blank" rel="noopener">how to install SQL Server on Ubuntu server where there is no internet connection</a>. Here i will explain how to perform online installation of SQL Server on Ubuntu 16.04 Server that are connected to internet.</p>
<p>Before going ahead, we need Ubuntu Linux 16.04 server. If you don’t have Ubuntu server then you can <a href="https://techyaz.com/sql-server/sql-server-on-linux/create-virtual-machine-pc/" target="_blank" rel="noopener">create a virtual machine</a> and <a href="https://techyaz.com/ubuntu/install-ubuntu-linux-server-16-04-virtual-machine-step-by-step/" target="_blank" rel="noopener">install Ubuntu 16.04 Server</a> with the help of attached articles in the link.</p>
<h5><span style="color: #000080;">Install SQL Server on Ubuntu Server</span></h5>
<p>Below are the steps you should follow to install SQL Server 2017 on your Ubuntu 16.04 machine that are connected to internet.</p>
<p><strong>1-</strong> First step is to connect to Ubuntu Server locally or using PuTTY.</p>
<p><strong>2-</strong> Once you are connected to Ubuntu server, run below command to download the public repository GPG keys:</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Download GPG Keys</span>
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add –
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1013" src="http://techyaz.com/wp-content/uploads/2017/10/1-Run-Curl-1024x113.jpg" alt="Download GPG keys" width="1024" height="113" srcset="https://techyaz.com/wp-content/uploads/2017/10/1-Run-Curl-1024x113.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/1-Run-Curl-300x33.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/1-Run-Curl-768x85.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/1-Run-Curl.jpg 1070w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><br />
<strong>3-</strong> We can see curl package is not installed on this machine so first we should install curl here. Run below command to install CURL package.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install CURL Package.</span>
Sudo apt install curl
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1014" src="http://techyaz.com/wp-content/uploads/2017/10/2-install-curl-1024x501.jpg" alt="Install CURL" width="770" height="330" /></p>
<p>Once curl will be installed, run curl command that are given in step 2 again to download the GPG keys.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1015" src="http://techyaz.com/wp-content/uploads/2017/10/3-Run-Curl.jpg" alt="Run curl to download GPG keys" width="984" height="184" srcset="https://techyaz.com/wp-content/uploads/2017/10/3-Run-Curl.jpg 984w, https://techyaz.com/wp-content/uploads/2017/10/3-Run-Curl-300x56.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/3-Run-Curl-768x144.jpg 768w" sizes="auto, (max-width: 984px) 100vw, 984px" /></p>
<p><strong>4-</strong> Register the Microsoft Ubuntu Repository by running any of the below commands. First command is older one and for RC (Release Candidate) version. If you want to install SQL Server 2017 general availability version then run second command.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Register Microsoft Ubuntu Repository for RC version</span>
sudo add-apt-repository "$(curl <a href="https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list">https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list</a>)"

<span style="color: #008000;">#Run this command if you are downloading GA (General Availability) Repository.</span>
sudo curl https://packages.microsoft.com/keys/microsoft.asc \| sudo apt-key add - &amp;&amp; sudo add-apt-repository "$(curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)"
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1016" src="http://techyaz.com/wp-content/uploads/2017/10/4-add-apt-repository-1024x117.jpg" alt="add-apt-repository" width="1024" height="117" srcset="https://techyaz.com/wp-content/uploads/2017/10/4-add-apt-repository-1024x117.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/4-add-apt-repository-300x34.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/4-add-apt-repository-768x88.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/4-add-apt-repository.jpg 1238w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>We can see add-apt-repository command is not found so we will first install the required package for this command on this server.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install add-apt-repository package</span>
Sudo apt-get install software-properties-common
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1017" src="http://techyaz.com/wp-content/uploads/2017/10/5-add-apt-repository-1024x364.jpg" alt="add-apt-repository" width="1024" height="364" srcset="https://techyaz.com/wp-content/uploads/2017/10/5-add-apt-repository-1024x364.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/5-add-apt-repository-300x107.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/5-add-apt-repository-768x273.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/5-add-apt-repository.jpg 1219w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Type y to proceed in above image. Once installed, again run command given in this step initially. Run the one given for general availability.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1018" src="http://techyaz.com/wp-content/uploads/2017/10/6-add-apt-repository-1024x136.jpg" alt="Download Microsoft Ubuntu Repository" width="1024" height="136" srcset="https://techyaz.com/wp-content/uploads/2017/10/6-add-apt-repository-1024x136.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/6-add-apt-repository-300x40.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/6-add-apt-repository-768x102.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/6-add-apt-repository.jpg 1227w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p><strong>5-</strong> Update the repository by running below command. A series of executions will start during update process.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Update All Packages</span>
Sudo apt-get update
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1019" src="http://techyaz.com/wp-content/uploads/2017/10/7-spt-get-update-1024x84.jpg" alt="update packages in ubuntu" width="1024" height="84" srcset="https://techyaz.com/wp-content/uploads/2017/10/7-spt-get-update-1024x84.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/7-spt-get-update-300x25.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/7-spt-get-update-768x63.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/7-spt-get-update.jpg 1146w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><br />
<strong>6-</strong> Install SQL Server by running below command.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span class="kwrd" style="color: blue;"><span style="color: #008000;">#Install SQL Server 2017</span>
Sudo apt-get install -y mssql-server
</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1020" src="http://techyaz.com/wp-content/uploads/2017/10/8-mssql-install-1024x436.jpg" alt="Install SQL Server" width="1024" height="436" srcset="https://techyaz.com/wp-content/uploads/2017/10/8-mssql-install-1024x436.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/8-mssql-install-300x128.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/8-mssql-install-768x327.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/8-mssql-install.jpg 1286w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><br />
<strong>7-</strong> Install above suggested package mssql-conf to configure SQL Server 2017. This package will ask you to accept license terms and choose SQL Server edition as shown in below image.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span style="color: #008000;"> #Run below utility to configure SQL Server </span></strong>
<span style="color: #0000ff;"><strong>sudo /opt/mssql/bin/mssql-conf setup </strong></span></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1021" src="http://techyaz.com/wp-content/uploads/2017/10/9-mssql-conf-1024x580.jpg" alt="configure mssql-conf" width="1024" height="580" srcset="https://techyaz.com/wp-content/uploads/2017/10/9-mssql-conf-1024x580.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/9-mssql-conf-300x170.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/9-mssql-conf-768x435.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/9-mssql-conf.jpg 1371w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p><strong>8-</strong> Now check the SQL Server service by running below command. We can see service is running now.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span style="color: #008000;">#Check SQL Server service</span></strong>
<strong><span style="color: #0000ff;">systemctl status mssql-server</span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1022" src="http://techyaz.com/wp-content/uploads/2017/10/10-check-service-1024x206.jpg" alt="Check SQL Server Service" width="1024" height="206" srcset="https://techyaz.com/wp-content/uploads/2017/10/10-check-service-1024x206.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/10/10-check-service-300x60.jpg 300w, https://techyaz.com/wp-content/uploads/2017/10/10-check-service-768x154.jpg 768w, https://techyaz.com/wp-content/uploads/2017/10/10-check-service.jpg 1050w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p><strong>9-</strong> Now, you can connect to this instance using SSMS client from your local host or from the server where you have installed SSMS. Make sure that there should be connectivity between both servers. SQL Agent is disabled because it is not installed yet.  Read this article to <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-agent-ubuntu-server/" target="_blank" rel="noopener">install SQL Server Agent on Ubuntu Server</a> to get it enabled for Agent jobs and other agent related features.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1023" src="http://techyaz.com/wp-content/uploads/2017/10/11-connectusingSSMS.jpg" alt="Connect to SQL Server using SSMS" width="342" height="248" srcset="https://techyaz.com/wp-content/uploads/2017/10/11-connectusingSSMS.jpg 342w, https://techyaz.com/wp-content/uploads/2017/10/11-connectusingSSMS-300x218.jpg 300w" sizes="auto, (max-width: 342px) 100vw, 342px" /></p>
<p><strong>10-</strong> If you face any issue during connectivity, you can check SQL Server port no 1433. If it is not open, run below command to enable port no 1433 and then establish the connection.</p>
<pre class="brush: sql; title: ; notranslate" title=""><strong><span style="color: #008000;">#Open port 1433
<span style="color: #0000ff;">sudo ufw allow 1433</span></span></strong></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-1024" src="http://techyaz.com/wp-content/uploads/2017/10/12-Port-enable.jpg" alt="Open port 1433 in ubuntu" width="511" height="88" srcset="https://techyaz.com/wp-content/uploads/2017/10/12-Port-enable.jpg 511w, https://techyaz.com/wp-content/uploads/2017/10/12-Port-enable-300x52.jpg 300w" sizes="auto, (max-width: 511px) 100vw, 511px" /></p>
<p>I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<pre class="brush: sql; title: ; notranslate" title=""></pre>
<p>The post <a href="https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/">Install SQL Server 2017 on Ubuntu with Internet Access</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/sql-server-on-linux/install-sql-server-2017-ubuntu-internet-access/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
