<?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>Muhammad Nabeel, Author at Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/author/miannbl/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 21 Jan 2020 21:26:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>Install Docker and Manage it with Portainer on CENTOS 8 / RHEL 8</title>
		<link>https://www.osradar.com/install-docker-and-manage-it-with-portainer-on-centos-8-rhel-8/</link>
					<comments>https://www.osradar.com/install-docker-and-manage-it-with-portainer-on-centos-8-rhel-8/#comments</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Tue, 21 Jan 2020 21:26:32 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[RHEL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17601</guid>

					<description><![CDATA[<p>Docker is a set of platform as a service (PaaS) products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels. All containers are run by a single operating-system kernel [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-docker-and-manage-it-with-portainer-on-centos-8-rhel-8/">Install Docker and Manage it with Portainer on CENTOS 8 / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Docker is a set of platform as a service (PaaS) products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels. All containers are run by a single operating-system kernel and are thus more lightweight than virtual machines.</p>



<p>Portainer is a lightweight management graphical user interface which allows you to easily manage your Docker host or Swarm cluster. Portainer is meant to be as simple to deploy as it is to use. It consists of a single container that can run on any Docker engine. It’s a powerful, open-source management toolset that allows you to easily build, manage and maintain Docker environments</p>



<p>In this guide you will learn that how to install docker and manage it with portainer.</p>



<h2>Install Docker on CentOS 8 / RHEL 8</h2>



<p><strong>Step 1 Enable Docker CE Repository</strong></p>



<p>Currently docker packages are not available on CentOS and RHEL 8 repositories, so run following dnf command to enable Docker CE repository.</p>



<pre class="wp-block-preformatted">dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="158" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/1-11-1024x158.png" alt="" class="wp-image-17603" srcset="https://www.osradar.com/wp-content/uploads/2020/01/1-11-1024x158.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/1-11-300x46.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/1-11-768x119.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/1-11-696x108.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/1-11-1068x165.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/1-11.png 1281w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p><strong>Step 2 Install Docker CE using dnf command</strong></p>



<p>Now, use below dnf command to install latest version of docker.</p>



<pre class="wp-block-preformatted">dnf install docker-ce --nobest -y</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="614" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/3-10-1024x614.png" alt="" class="wp-image-17604" srcset="https://www.osradar.com/wp-content/uploads/2020/01/3-10-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/3-10-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/3-10-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/3-10-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/3-10-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/3-10-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2020/01/3-10.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p><strong>Step 3 Start Docker Service</strong></p>



<p>After the installation, start and enable docker service using the following systemctl commands</p>



<pre class="wp-block-preformatted">systemctl start docker<br>systemctl enable docker<br>systemctl status docker</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="614" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/4-9-1024x614.png" alt="" class="wp-image-17605" srcset="https://www.osradar.com/wp-content/uploads/2020/01/4-9-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/4-9-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/4-9-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/4-9-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/4-9-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/4-9-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2020/01/4-9.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p><strong>Step 4 Verify and Test Docker CE Engine</strong></p>



<p>To verify that docker ce engine has been setup correctly, run below docker command,</p>



<pre class="wp-block-preformatted">docker run hello-world</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="614" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/5-8-1024x614.png" alt="" class="wp-image-17606" srcset="https://www.osradar.com/wp-content/uploads/2020/01/5-8-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/5-8-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/5-8-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/5-8-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/5-8-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/5-8-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2020/01/5-8.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Docker has been installed successfully and running fine, now we will install and configure portainer so that we can manage docker from web interface.</p>



<h2>Install Portainer on CentOS 8 / RHEL 8 for Docker Management</h2>



<p><strong>Step 1 Download Portainer Image</strong></p>



<p>Download the Portainer image from the DockerHub using the docker pull command below.</p>



<pre class="wp-block-preformatted">docker pull portainer/portainer</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="220" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/6-6-1024x220.png" alt="" class="wp-image-17607" srcset="https://www.osradar.com/wp-content/uploads/2020/01/6-6-1024x220.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/6-6-300x65.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/6-6-768x165.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/6-6-696x150.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/6-6-1068x230.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/6-6.png 1279w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p><strong>Step 2 Run Portainer</strong></p>



<p>Run the Portainer container with the following command:</p>



<pre class="wp-block-preformatted">docker run -d -p 9000:9000 --name your_portainer_name --restart always -v /var/run/docker.sock:/var/run/docker.sock -v /opt/portainer:/data portainer/portainer</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="172" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/7-4-1024x172.png" alt="" class="wp-image-17608" srcset="https://www.osradar.com/wp-content/uploads/2020/01/7-4-1024x172.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/7-4-300x50.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/7-4-768x129.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/7-4-696x117.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/7-4-1068x179.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/7-4.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p><strong>Step 3 Verify Portainer is Running</strong></p>



<p>After installing the Portainer container, run the docker ps command to verify the status of the container:</p>



<pre class="wp-block-preformatted">docker ps</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="210" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/8-3-1024x210.png" alt="" class="wp-image-17609" srcset="https://www.osradar.com/wp-content/uploads/2020/01/8-3-1024x210.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/8-3-300x61.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/8-3-768x157.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/8-3-696x142.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/8-3-1068x219.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/8-3.png 1275w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p><strong>Step 4 Access Portainer Web Interface</strong></p>



<p>Now, open your browser, access the Portainer web interface with your server’s IP or FQDN with port 9000</p>



<p><strong>YOUR-SERVER-IP:9000</strong></p>



<p>In my case it is 192.168.231.130:9000</p>



<p><strong>Note:</strong> If you are facing any issue or unable to browse the link just use below commands</p>



<pre class="wp-block-preformatted">firewall-cmd --permanent --zone=trusted --change-interface=docker0
firewall-cmd --permanent --zone=trusted --add-port=4243/tcp
firewall-cmd --reload</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="743" height="445" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/9-1.png" alt="" class="wp-image-17610" srcset="https://www.osradar.com/wp-content/uploads/2020/01/9-1.png 743w, https://www.osradar.com/wp-content/uploads/2020/01/9-1-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/9-1-696x417.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/9-1-741x445.png 741w, https://www.osradar.com/wp-content/uploads/2020/01/9-1-701x420.png 701w" sizes="(max-width: 743px) 100vw, 743px" /></figure>



<p>Next we need to set admin username and password to access portainer. Then, click on &#8220;Create User&#8221; button to create your administrator user.</p>



<p><strong>Step 5 Configure Portainer</strong></p>



<p>We will configure Portainer to &#8220;manage the local Docker environment&#8221; select Local Docker environment and click on the Connect button</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="527" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/10-1-1024x527.png" alt="" class="wp-image-17611" srcset="https://www.osradar.com/wp-content/uploads/2020/01/10-1-1024x527.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/10-1-300x154.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/10-1-768x395.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/10-1-696x358.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/10-1-1068x550.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/10-1-816x420.png 816w, https://www.osradar.com/wp-content/uploads/2020/01/10-1.png 1140w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>Finally, you will be redirected to the Portainer dashboard, select the &#8220;local docker&#8221;</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="565" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/11-1024x565.png" alt="" class="wp-image-17612" srcset="https://www.osradar.com/wp-content/uploads/2020/01/11-1024x565.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/11-300x166.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/11-768x424.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/11-696x385.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/11-1068x590.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/11-761x420.png 761w, https://www.osradar.com/wp-content/uploads/2020/01/11.png 1525w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>Here you can see all info and a summary about your containers, images, networks, volumes and Templates. </p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="554" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/12-1024x554.png" alt="" class="wp-image-17613" srcset="https://www.osradar.com/wp-content/uploads/2020/01/12-1024x554.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/12-300x162.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/12-768x416.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/12-1536x831.png 1536w, https://www.osradar.com/wp-content/uploads/2020/01/12-696x377.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/12-1068x578.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/12-776x420.png 776w, https://www.osradar.com/wp-content/uploads/2020/01/12.png 1868w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Finally everything has been done and now you can create, manage and remove your docker containers from portainer graphical interface.</p>



<p><strong>Portainer Dashboard</strong>:</p>



<p>After logging in portainer you will be redirected to the Portainer home screen, select the &#8220;local docker&#8221; then go to the “Dashboard” here you will see running stacks, containers, images, volumes and networks. </p>



<p><strong>Stacks</strong>:</p>



<p>Click on the stacks option and it will provide status of all created stacks.</p>



<p><strong>Container</strong>:</p>



<p>This list will provide details of all running and stopped container. This output is very similar to docker ps command option.</p>



<p><strong>Images</strong>:</p>



<p>Clicking on this option will provide the host of container images that are available. It will show all the container images.</p>



<p><strong>Networks: </strong></p>



<p>It is used for network operations. Like assigning IP address, creating sub-nets, providing IP address range and user access control.</p>



<h2>Create a Container Using Portainer GUI</h2>



<p>There are many other features you can explore by yourself. Now we will create a docker container. we will create Apache container.</p>



<p>Under Add Templates option, Click on &#8220;Httpd&#8221; template</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="535" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/112-1024x535.png" alt="" class="wp-image-17681" srcset="https://www.osradar.com/wp-content/uploads/2020/01/112-1024x535.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/112-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/112-768x401.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/112-1536x803.png 1536w, https://www.osradar.com/wp-content/uploads/2020/01/112-696x364.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/112-1068x558.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/112-804x420.png 804w, https://www.osradar.com/wp-content/uploads/2020/01/112.png 1873w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>Now set the Name for container, leave network as it is, then configure its ports and click on &#8220;Deploy the container&#8221; button.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="471" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/113-1024x471.png" alt="" class="wp-image-17682" srcset="https://www.osradar.com/wp-content/uploads/2020/01/113-1024x471.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/113-300x138.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/113-768x353.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/113-1536x707.png 1536w, https://www.osradar.com/wp-content/uploads/2020/01/113-696x320.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/113-1068x492.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/113-913x420.png 913w, https://www.osradar.com/wp-content/uploads/2020/01/113.png 1912w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="543" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/114-1024x543.png" alt="" class="wp-image-17683" srcset="https://www.osradar.com/wp-content/uploads/2020/01/114-1024x543.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/114-300x159.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/114-768x407.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/114-1536x814.png 1536w, https://www.osradar.com/wp-content/uploads/2020/01/114-696x369.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/114-1068x566.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/114-792x420.png 792w, https://www.osradar.com/wp-content/uploads/2020/01/114.png 1858w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>Now you can verify the status of created container from &#8220;Containers&#8221; option. you can see in image below that container named &#8220;my-apache-server&#8221; is running</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="311" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/114-1-1024x311.png" alt="" class="wp-image-17685" srcset="https://www.osradar.com/wp-content/uploads/2020/01/114-1-1024x311.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/114-1-300x91.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/114-1-768x233.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/114-1-1536x466.png 1536w, https://www.osradar.com/wp-content/uploads/2020/01/114-1-696x211.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/114-1-1068x324.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/114-1-1385x420.png 1385w, https://www.osradar.com/wp-content/uploads/2020/01/114-1.png 1912w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>Test Apache is running fine. open your browser and browse your <strong>SERVER-IP-ADDRESS</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="156" src="https://www.osradar.com/wp-content/uploads/2020/01/115-1024x156.png" alt="" class="wp-image-17684" srcset="https://www.osradar.com/wp-content/uploads/2020/01/115-1024x156.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/115-300x46.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/115-768x117.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/115-1536x234.png 1536w, https://www.osradar.com/wp-content/uploads/2020/01/115-696x106.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/115-1068x162.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/115.png 1861w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>That’s it in this article, I hope this will be very helpful.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-docker-and-manage-it-with-portainer-on-centos-8-rhel-8/">Install Docker and Manage it with Portainer on CENTOS 8 / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-docker-and-manage-it-with-portainer-on-centos-8-rhel-8/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>How to Test Internet Speed in Linux</title>
		<link>https://www.osradar.com/how-to-test-internet-speed-in-linux/</link>
					<comments>https://www.osradar.com/how-to-test-internet-speed-in-linux/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Wed, 15 Jan 2020 10:57:44 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17579</guid>

					<description><![CDATA[<p>In this tarticle, you will learn that how to install Speedtest-cli to test the network (Bandwidth) speed of your server and how to use it in Linux. Speedtest-cli is a command line interface to test internet providing by speedtest.net. Install Speedtest-CLI on CentOS 8 and RHEL 8 and Fedora This tool is written in python [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-test-internet-speed-in-linux/">How to Test Internet Speed in Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this tarticle, you will learn that how to install Speedtest-cli to test the network (Bandwidth) speed of your server and how to use it in Linux. Speedtest-cli is a command line interface to test internet providing by speedtest.net.</p>



<h2>Install Speedtest-CLI on CentOS 8 and RHEL 8 and Fedora</h2>



<p>This tool is written in python so we must install python before proceeding. so run below command and install python.</p>



<pre class="wp-block-preformatted">dnf install -y python36</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="233" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/1-9-1024x233.png" alt="" class="wp-image-17581" srcset="https://www.osradar.com/wp-content/uploads/2020/01/1-9-1024x233.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/1-9-300x68.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/1-9-768x175.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/1-9-696x158.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/1-9-1068x243.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/1-9.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Create soft link for python3</p>



<pre class="wp-block-preformatted">ln -s /usr/bin/python3.6 /usr/bin/python</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="147" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/2-9-1024x147.png" alt="" class="wp-image-17582" srcset="https://www.osradar.com/wp-content/uploads/2020/01/2-9-1024x147.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/2-9-300x43.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/2-9-768x110.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/2-9-696x100.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/2-9-1068x154.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/2-9.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>Downoad speedtest_cli using below commands</p>



<pre class="wp-block-preformatted">cd<br>
wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="340" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/3-8-1024x340.png" alt="" class="wp-image-17583" srcset="https://www.osradar.com/wp-content/uploads/2020/01/3-8-1024x340.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/3-8-300x100.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/3-8-768x255.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/3-8-696x231.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/3-8-1068x355.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/3-8-1265x420.png 1265w, https://www.osradar.com/wp-content/uploads/2020/01/3-8.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>Make the script executable</p>



<pre class="wp-block-preformatted">chmod +x speedtest-cli</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="148" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/4-7-1024x148.png" alt="" class="wp-image-17584" srcset="https://www.osradar.com/wp-content/uploads/2020/01/4-7-1024x148.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/4-7-300x43.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/4-7-768x111.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/4-7-696x101.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/4-7-1068x154.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/4-7.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>Finally run below command to test internet bandwidth</p>



<pre class="wp-block-preformatted">./speedtest-cli</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="334" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/5-6-1024x334.png" alt="" class="wp-image-17585" srcset="https://www.osradar.com/wp-content/uploads/2020/01/5-6-1024x334.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/5-6-300x98.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/5-6-768x251.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/5-6-696x227.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/5-6-1068x349.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/5-6.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<h2>Install Speedtest-CLI on Ubuntu</h2>



<pre class="wp-block-preformatted">sudo apt-get install speedtest-cli</pre>



<pre class="wp-block-preformatted">speedtest-cli</pre>



<p></p>



<p>That&#8217;s it. Now you learned that how to install speedtest-cli command line interface for testing internet bandwidth using speedtest.net on a CentOS/RHEL/Fedora/Ubuntu Linux.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-test-internet-speed-in-linux/">How to Test Internet Speed in Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-test-internet-speed-in-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to use nslookup in Linux</title>
		<link>https://www.osradar.com/how-to-use-nslookup-in-linux/</link>
					<comments>https://www.osradar.com/how-to-use-nslookup-in-linux/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Wed, 15 Jan 2020 10:57:12 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17569</guid>

					<description><![CDATA[<p>nslookup is a network administration command-line tool available in many computer operating systems for querying the Domain Name System (DNS) to obtain domain name or IP address mapping, or other DNS records information. The name &#8220;nslookup&#8221; means &#8220;name server lookup&#8221; There are many options can be used in nslookup command however we will use some [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-use-nslookup-in-linux/">How to use nslookup in Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>nslookup is a network administration command-line tool available in many computer operating systems for querying the Domain Name System (DNS) to obtain domain name or IP address mapping, or other DNS records information. The name &#8220;nslookup&#8221; means &#8220;name server lookup&#8221;</p>



<p>There are many options can be used in nslookup command however we will use some of them in this article.</p>



<p>command syntax</p>



<p><strong>nslookup [option]</strong></p>



<pre class="wp-block-preformatted">nslookup google.com</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="313" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/2-8-1024x313.png" alt="" class="wp-image-17571" srcset="https://www.osradar.com/wp-content/uploads/2020/01/2-8-1024x313.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/2-8-300x92.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/2-8-768x235.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/2-8-696x213.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/2-8-1068x326.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/2-8.png 1205w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<pre class="wp-block-preformatted">nslookup -type=a google.com</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="280" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/7-2-1024x280.png" alt="" class="wp-image-17572" srcset="https://www.osradar.com/wp-content/uploads/2020/01/7-2-1024x280.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/7-2-300x82.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/7-2-768x210.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/7-2-696x191.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/7-2-1068x292.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/7-2.png 1282w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>nslookup with domain name or -type=a will display the A Record (IP Address) of the domain. here google.com is a domain name. Use these commands to find the IP address or A record for a domain.</p>



<pre class="wp-block-preformatted">nslookup 8.8.8.8</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="231" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/3-7-1024x231.png" alt="" class="wp-image-17573" srcset="https://www.osradar.com/wp-content/uploads/2020/01/3-7-1024x231.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/3-7-300x68.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/3-7-768x173.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/3-7-696x157.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/3-7-1068x241.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/3-7.png 1143w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>If you want to see reverse DNS lookup use IP address with nslookup command</p>



<pre class="wp-block-preformatted">nslookup -type=any google.com</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="614" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/4-6-1024x614.png" alt="" class="wp-image-17574" srcset="https://www.osradar.com/wp-content/uploads/2020/01/4-6-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/4-6-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/4-6-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/4-6-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/4-6-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/4-6-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2020/01/4-6.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>Above command will display all available DNS records of domain google.com</p>



<pre class="wp-block-preformatted">nslookup -type=ns google.com</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="339" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/5-5-1024x339.png" alt="" class="wp-image-17575" srcset="https://www.osradar.com/wp-content/uploads/2020/01/5-5-1024x339.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/5-5-300x99.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/5-5-768x254.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/5-5-696x230.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/5-5-1068x353.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/5-5.png 1248w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>You can use -type=ns with nslookup command to get Name Servers of the domain.</p>



<pre class="wp-block-preformatted">nslookup -type=mx google.com</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="354" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/6-4-1024x354.png" alt="" class="wp-image-17576" srcset="https://www.osradar.com/wp-content/uploads/2020/01/6-4-1024x354.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/6-4-300x104.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/6-4-768x266.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/6-4-696x241.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/6-4-1068x369.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/6-4-1214x420.png 1214w, https://www.osradar.com/wp-content/uploads/2020/01/6-4.png 1278w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>MX stands for Mail Exchanger which is email server, run above command to see mail server of a domain.</p>



<pre class="wp-block-preformatted">nslookup -type=txt google.com</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="372" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/8-1-1024x372.png" alt="" class="wp-image-17577" srcset="https://www.osradar.com/wp-content/uploads/2020/01/8-1-1024x372.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/8-1-300x109.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/8-1-768x279.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/8-1-696x253.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/8-1-1068x388.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/8-1-1156x420.png 1156w, https://www.osradar.com/wp-content/uploads/2020/01/8-1.png 1250w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>TXT records can be used for many purposes like SPF, DKIM, DMARC records etc if you want to see all of them use option -type=txt with nslookup command.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-use-nslookup-in-linux/">How to use nslookup in Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-use-nslookup-in-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install and Configure FreeNAS</title>
		<link>https://www.osradar.com/how-to-install-and-configure-freenas/</link>
					<comments>https://www.osradar.com/how-to-install-and-configure-freenas/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Sun, 12 Jan 2020 16:32:36 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[File and Storage]]></category>
		<category><![CDATA[freenas]]></category>
		<category><![CDATA[Storage]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=17588</guid>

					<description><![CDATA[<p>FreeNAS is a free and open-source network-attached storage (NAS) software based on FreeBSD and the OpenZFS file system. It is licensed under the terms of the BSD License and runs on commodity x86-64 hardware. FreeNAS supports Windows, macOS and Unix clients and various virtualization hosts such as XenServer and VMware using the SMB, AFP, NFS, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-and-configure-freenas/">How to Install and Configure FreeNAS</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>FreeNAS is a free and open-source network-attached storage (NAS) software based on FreeBSD and the OpenZFS file system. It is licensed under the terms of the BSD License and runs on commodity x86-64 hardware. FreeNAS supports Windows, macOS and Unix clients and various virtualization hosts such as XenServer and VMware using the SMB, AFP, NFS, iSCSI, SSH, rsync and FTP/TFTP protocols. Advanced FreeNAS features include full-disk encryption and a plug-in architecture for third-party software.</p>



<h2>Features</h2>



<p><strong>Administrative features:</strong></p>



<ul><li>Web-based graphical user interface with optional SSL encryption</li><li> Localized into over 20 languages</li><li> Web, console, and SSH access configurable</li><li> Plug-ins</li><li> Wide range of configurable alerts and alerting mechanisms, including log emails and reporting notification</li><li> Downloadable configuration file and encryption keys</li><li> S.M.A.R.T. disk diagnostics</li><li> Local certificate management, including Certificate Authority role.</li><li> 2 factor authentication, LDAP, Active Directory, RADIUS, IPSec, Kerberos and other authentication/user management systems supported in FreeBSD and therefore available for FreeNAS (Note: some but not all supported in GUI).</li></ul>



<p><strong>File system features:</strong></p>



<ul><li>Highly resilient ZFS file system with Feature Flags (OpenZFS v5000) and theoretical storage limit of 16 Exabytes. ZFS file system features are fully configurable and include:</li><li> Compression (including lz4 and gzip),</li><li> Full-volume encryption (Disk encryption with GELI and AESNI hardware acceleration),</li><li> Snapshots (which can be near-continual; snapshotting every 15-30 minutes is not uncommon),</li><li> Data deduplication</li><li> User quotas</li><li> Physical disks are fully portable and can be moved without data loss to other FreeNAS servers, or to any other Operating System that supports a compatible version of OpenZFS.</li><li> Data reliability features &#8211; mirroring / RAID (including ZFS RaidZ), multiple copies of selected data and metadata for reliability, and entire-system checksumming and background data repair as needed (&#8220;scrubbing&#8221;) (see also: ZFS generally, which was designed expressly with the aim of ensuring data preservation)</li><li> Server reliability features &#8211;</li><li> Replication, fallover and failover,</li><li> Multi-version boot environment &#8211; the boot menu provides access to previous versions of FreeNAS which have been upgraded. In the event of a boot issue or system problem, FreeNAS can also load any of these at boot, as &#8220;known good&#8221; versions, without &#8220;rolling back&#8221; the server.</li><li> Disk read and data import for UFS2, NTFS, FAT32 and EXT2/3</li><li> User/Group permissions &#8211; Classic Unix/Linux permissions and/or ACL based (including ACLs for Microsoft file systems)</li></ul>



<p><strong>Built-in network services and features:</strong></p>



<ul><li>Protocols as standard &#8211; Samba/SMB/CIFS (for Microsoft and other networks), AFP (Apple), NFS, iSCSI, FTP/TFTP</li><li> LDAP and Active Directory client support with Windows ACLs</li><li> Apple Time Machine and Microsoft File History/Previous Versions support</li><li> rsync data sync and replication (server/client)</li><li> Link aggregation and failover</li><li> VLAN networking</li><li> Dynamic DNS client</li><li> Remote syslogd forwarding</li><li> SNMP monitoring</li><li> Wide range of networking hardware and environments supported by FreeBSD, including copper cable, fiberoptic cable, WiFi</li><li> Supports jumbo frames, hardware offloading (exact features offloaded vary by adapter), high bandwidth servicing (10G+)</li></ul>



<p><strong>FreeNAS Uses:</strong></p>



<ul><li>SMB and Enterprise file serving</li><li>Virtualization server storage backing</li><li>Media center audio/video serving and streaming to DLNA devices</li></ul>



<p><strong>Requirements</strong>:<br> 8 GB of Disk Space is the absolute minimum. 16 GiB is recommended.<br> 64-bit hardware is required forFreeNAS releases.<br> 8 GB of RAM is required, with more recommended.</p>



<h2>Step 1</h2>



<p>Download FreeNAS from this link. Burn ISO image to DVD or make a Bootable usb.<br><strong> https://www.freenas.org/download-freenas-release/</strong></p>



<p>turn on your system, plugin bootable media (DVD or USB) and start installation process</p>



<h2>Step 2</h2>



<p>Navigate to Option 1 Boot FreeNAS Installer and press ENTER key to install FreeNAS</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="720" height="400" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/1-10.png" alt="" class="wp-image-17590" srcset="https://www.osradar.com/wp-content/uploads/2020/01/1-10.png 720w, https://www.osradar.com/wp-content/uploads/2020/01/1-10-300x167.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/1-10-696x387.png 696w" sizes="(max-width: 720px) 100vw, 720px" /></figure>



<p></p>



<h2>Step 3</h2>



<p>Here Select Install/Upgrade option and Hit ENTER on Ok button</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="720" height="400" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/2-10.png" alt="" class="wp-image-17591" srcset="https://www.osradar.com/wp-content/uploads/2020/01/2-10.png 720w, https://www.osradar.com/wp-content/uploads/2020/01/2-10-300x167.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/2-10-696x387.png 696w" sizes="(max-width: 720px) 100vw, 720px" /></figure>



<p></p>



<h2>Step 4</h2>



<p>Now Choose One or Multiple Drives where you want to install FreeNAS, Spacebar button is used to select drive and asterisk(*) will notify that the drive is selected, then hit ENTER on Ok button.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="720" height="400" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/3-9.png" alt="" class="wp-image-17592" srcset="https://www.osradar.com/wp-content/uploads/2020/01/3-9.png 720w, https://www.osradar.com/wp-content/uploads/2020/01/3-9-300x167.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/3-9-696x387.png 696w" sizes="(max-width: 720px) 100vw, 720px" /></figure>



<p></p>



<h2>Step 5</h2>



<p>At this time you will get a warning that everything will be removed from selected drives, just proceed to installation by clicking on Yes button.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="720" height="400" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/4-8.png" alt="" class="wp-image-17593" srcset="https://www.osradar.com/wp-content/uploads/2020/01/4-8.png 720w, https://www.osradar.com/wp-content/uploads/2020/01/4-8-300x167.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/4-8-696x387.png 696w" sizes="(max-width: 720px) 100vw, 720px" /></figure>



<p></p>



<h2>Step 6</h2>



<p>Setting up your root password</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="720" height="400" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/5-7.png" alt="" class="wp-image-17594" srcset="https://www.osradar.com/wp-content/uploads/2020/01/5-7.png 720w, https://www.osradar.com/wp-content/uploads/2020/01/5-7-300x167.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/5-7-696x387.png 696w" sizes="(max-width: 720px) 100vw, 720px" /></figure>



<p></p>



<h2>Step 7</h2>



<p>Finally you will receive a message that installation succeeded. hit on ok</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="720" height="400" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/6-5.png" alt="" class="wp-image-17595" srcset="https://www.osradar.com/wp-content/uploads/2020/01/6-5.png 720w, https://www.osradar.com/wp-content/uploads/2020/01/6-5-300x167.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/6-5-696x387.png 696w" sizes="(max-width: 720px) 100vw, 720px" /></figure>



<p></p>



<h2>Step 8</h2>



<p>Remove your bootable installation media (USB or DVD), navigate to option &#8220;Reboot System&#8221; and restart it</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="720" height="400" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/7-3.png" alt="" class="wp-image-17596" srcset="https://www.osradar.com/wp-content/uploads/2020/01/7-3.png 720w, https://www.osradar.com/wp-content/uploads/2020/01/7-3-300x167.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/7-3-696x387.png 696w" sizes="(max-width: 720px) 100vw, 720px" /></figure>



<p></p>



<h2>Step 9 </h2>



<p>After rebooting the system you will get similar screen given below, here you need to copy the URL so that you can access <strong>FreeNAS GUI</strong> from your webs browser.</p>



<p>In my case it is http://192.168.231.130</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="720" height="400" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/8-2.png" alt="" class="wp-image-17597" srcset="https://www.osradar.com/wp-content/uploads/2020/01/8-2.png 720w, https://www.osradar.com/wp-content/uploads/2020/01/8-2-300x167.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/8-2-696x387.png 696w" sizes="(max-width: 720px) 100vw, 720px" /></figure>



<p></p>



<h2>Step 10</h2>



<p>Open the web browser and enter the URL to Access FreeNAS GUI, then type your login details user name will be &#8220;root&#8221; and the password is you set during installation.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="686" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/9-1024x686.png" alt="" class="wp-image-17598" srcset="https://www.osradar.com/wp-content/uploads/2020/01/9-1024x686.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/9-300x201.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/9-768x514.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/9-696x466.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/9-1068x715.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/9-627x420.png 627w, https://www.osradar.com/wp-content/uploads/2020/01/9.png 1353w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>Finally you will see FreeNAS Dashboard like below.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="546" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2020/01/10-1024x546.png" alt="" class="wp-image-17599" srcset="https://www.osradar.com/wp-content/uploads/2020/01/10-1024x546.png 1024w, https://www.osradar.com/wp-content/uploads/2020/01/10-300x160.png 300w, https://www.osradar.com/wp-content/uploads/2020/01/10-768x410.png 768w, https://www.osradar.com/wp-content/uploads/2020/01/10-1536x819.png 1536w, https://www.osradar.com/wp-content/uploads/2020/01/10-696x371.png 696w, https://www.osradar.com/wp-content/uploads/2020/01/10-1068x570.png 1068w, https://www.osradar.com/wp-content/uploads/2020/01/10-787x420.png 787w, https://www.osradar.com/wp-content/uploads/2020/01/10.png 1914w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>That&#8217;s it you have installed and configured FreeNAS successfully, soon we will create a guide that how to create a file sharing server on FreeNAS.</p>



<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-and-configure-freenas/">How to Install and Configure FreeNAS</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-and-configure-freenas/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install and Configure logrotate on Linux</title>
		<link>https://www.osradar.com/how-to-install-and-configure-logrotate-on-linux/</link>
					<comments>https://www.osradar.com/how-to-install-and-configure-logrotate-on-linux/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Fri, 22 Nov 2019 13:11:17 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[logrotate]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15811</guid>

					<description><![CDATA[<p>Logrotate utility is designed to used in system administration in which dated log files are archived. Servers which run large applications such as LAMP stacks, often log every activity and request in the face of bulky logs which may use high disk space on the server. Log rotation provides a way to limit the total [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-and-configure-logrotate-on-linux/">How to Install and Configure logrotate on Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Logrotate utility is designed to used in system administration in which dated log files are archived. Servers which run large applications such as LAMP stacks, often log every activity and request in the face of bulky logs which may use high disk space on the server. Log rotation provides a way to limit the total size of the logs retained while still allowing analysis of recent events.</p>



<p>The primary configuration file for logrotate is /etc/logrotate.conf and it has the default settings. So, if you want additional application-specific configuration then you have to create a separate file for that application in /etc/logrotate.d directory.</p>



<p>In this article you will learn that how to configure logrotate in Linux</p>



<h2>Step 1: Install logrotate on Linux</h2>



<p>Install logrotate on Ubuntu and Debian</p>



<pre class="wp-block-preformatted">apt install logrotate </pre>



<p>Install logrotate on CentOS, RHEL and Fedora</p>



<pre class="wp-block-preformatted">yum install  -y logrotate</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="281" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/1-1-1024x281.jpg" alt="" class="wp-image-15814" srcset="https://www.osradar.com/wp-content/uploads/2019/11/1-1-1024x281.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/1-1-300x82.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/1-1-768x211.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/1-1-1536x422.jpg 1536w, https://www.osradar.com/wp-content/uploads/2019/11/1-1-696x191.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/1-1-1068x293.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/11/1-1-1530x420.jpg 1530w, https://www.osradar.com/wp-content/uploads/2019/11/1-1.jpg 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p><br>OR</p>



<pre class="wp-block-preformatted">dnf install  -y logrotate</pre>



<h2>Step 2: Configure logrotate</h2>



<p>We will configure logrotate for Apache web server in CentOS server. Let&#8217;s say we want to rotate the logs of a service &#8220;apache&#8221; that is creating logfiles under /var/log/httpd directory. So we will create a file &#8220;apache&#8221; under /etc/logrotate.d directory and make appropriate configuration in this file to rorate all the logs of apache service.</p>



<p>Run following command and add below lines in that file.</p>



<pre class="wp-block-preformatted">vi /etc/logrotate.d/apache<br></pre>



<pre class="wp-block-preformatted">/var/log/httpd/* {<br>     daily<br>     rotate 50<br>     size 2M<br>     compress<br>     delaycompress<br> }</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="226" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/2-1024x226.jpg" alt="" class="wp-image-15815" srcset="https://www.osradar.com/wp-content/uploads/2019/11/2-1024x226.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/2-300x66.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/2-768x170.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/2-696x154.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/2-1068x236.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/11/2.jpg 1271w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p><br><strong>/var/log/httpd</strong> It means rotating all logs from httpd directory. <br><strong>daily</strong>  means rotate the logs on a daily basis. you can also use weekly or monthly.<br><strong>rotate 50</strong> It means last 50 rotated logs should be kept.<br><strong>size=2M</strong> means log will not be rotated until it reaches 2MB. sets the minimum size for the logs rotation. <br><strong>compress</strong> It compress the old log files to save disk space.<br><strong>delaycompress</strong> so it means rotated logs with the exception of the most recent one should be compressed.</p>



<p>now save changes to file and exit</p>



<p>You can also set many other options, for details run following command.</p>



<pre class="wp-block-preformatted">man logrotate</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="546" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/3-1024x546.jpg" alt="" class="wp-image-15816" srcset="https://www.osradar.com/wp-content/uploads/2019/11/3-1024x546.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/3-300x160.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/3-768x409.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/3-1536x818.jpg 1536w, https://www.osradar.com/wp-content/uploads/2019/11/3-696x371.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/3-1068x569.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/11/3-788x420.jpg 788w, https://www.osradar.com/wp-content/uploads/2019/11/3.jpg 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>By default, logrotate automatically configures a cron job scheduled to run daily. but we want also run our desired log rotation file, Tells logrotate to force the rotation.</p>



<pre class="wp-block-preformatted">logrotate -f /etc/logrotate.d/httpd</pre>



<p>Now run below command to see that what will logrotate do reading /etc/logrotate.d/httpd file.</p>



<pre class="wp-block-preformatted">logrotate -d /etc/logrotate.d/httpd</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1334" height="396" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/4-1024x304.jpg" alt="" class="wp-image-15817" srcset="https://www.osradar.com/wp-content/uploads/2019/11/4-1024x304.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/11/4-300x89.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/4-768x228.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/11/4-696x207.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/11/4-1068x317.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/11/4.jpg 1334w" sizes="(max-width: 1334px) 100vw, 1334px" /></figure>



<p>That&#8217;s it, so you can use logrotate and configure it for your desired service logs like it do for Apache web server.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-and-configure-logrotate-on-linux/">How to Install and Configure logrotate on Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-and-configure-logrotate-on-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Use tar command to archive/compress files/folders in Linux</title>
		<link>https://www.osradar.com/use-tar-command-to-archive-compress-files-folders-in-linux/</link>
					<comments>https://www.osradar.com/use-tar-command-to-archive-compress-files-folders-in-linux/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Mon, 30 Sep 2019 09:37:16 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[compress files]]></category>
		<category><![CDATA[compress folders]]></category>
		<category><![CDATA[tar command]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13987</guid>

					<description><![CDATA[<p>tar is a Linux utility. It is stand for tape archive. tar command is use to collect many files/directories into one archive file, often referred to as a tarball. Normally it used for distribution or backup purposes. It is most popular tool in Linux systems to create compressed archive files. In this article you will [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/use-tar-command-to-archive-compress-files-folders-in-linux/">Use tar command to archive/compress files/folders in Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>tar is a Linux utility. It is stand for tape archive. tar command is use to collect many files/directories into one archive file, often referred to as a tarball. Normally it used for distribution or backup purposes. It is most popular tool in Linux systems to create compressed archive files.</p>



<p>In this article you will learn that how to use tar command for data archive and its compression using (tar, tar.gz, tar.bz2).</p>



<p>We will use below tar tools.</p>



<p><strong>1-    Tar<br>2-    Gzip<br>3-    Bzip2</strong></p>



<h2>Create tar Archive File</h2>



<p>So, in below example we will create a tar archive file data.tar for a directory /boot in current working directory.</p>



<pre class="wp-block-preformatted">tar -cvf data.tar /boot<br>
ls</pre>



<p><strong>c </strong>– Creates a new .tar archive file.<br><strong>v</strong> – Verbosely show the .tar file progress.<br><strong>f </strong>– File name type of the archive file.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="614" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-50-53-1024x614.png" alt="" class="wp-image-13989" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-50-53-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-50-53-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-50-53-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-50-53-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-50-53-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-50-53-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-50-53.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Untar (Un-Compress) Archive File</h2>



<p>Now, we will un-compress data.tar archive file in current working directory using below command.</p>



<pre class="wp-block-preformatted">tar -xf data.tar</pre>



<p><strong>x</strong> to extract archive file.</p>



<p></p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="188" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-51-55-1024x188.png" alt="" class="wp-image-13990" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-51-55-1024x188.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-51-55-300x55.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-51-55-768x141.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-51-55-696x128.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-51-55-1068x196.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-51-55.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>uncompress or extract an archive in current working directory.</figcaption></figure>



<p>So what if you want to Un-compress archive in different path or directory. use -C (Capital C) in command and specify your path to un-compress it, Please see below example command.</p>



<pre class="wp-block-preformatted">tar -xf data.tar -C /media<br>ls /media</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="175" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-55-52-1024x175.png" alt="" class="wp-image-13991" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-55-52-1024x175.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-55-52-300x51.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-55-52-768x131.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-55-52-696x119.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-55-52-1068x183.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-55-52.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>You can see in above image that <strong>boot</strong> directory is uncompressed in <strong>/media </strong>directory.</p>



<h2>Create tar.gz (gzip) Archive File</h2>



<p>If you want to compress a file/folder with gzip, then you have to use &#8220;z&#8221; in tar command and make archive extension as .tar.gz</p>



<p><strong>z</strong> &#8211; To create a compressed gzip archive file</p>



<p>Run below command</p>



<pre class="wp-block-preformatted">tar -czf data.tar.gz /boot</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="222" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-57-35-1024x222.png" alt="" class="wp-image-13992" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-57-35-1024x222.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-57-35-300x65.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-57-35-768x167.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-57-35-696x151.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-57-35-1068x232.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-57-35.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Un-compress gzip archive file</h2>



<pre class="wp-block-preformatted">tar -xf data.tar.gz</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="203" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-58-09-1024x203.png" alt="" class="wp-image-13993" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-58-09-1024x203.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-58-09-300x60.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-58-09-768x152.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-58-09-696x138.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-58-09-1068x212.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-58-09.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Then, you can also un-compress gzip file in your desired directory</p>



<pre class="wp-block-preformatted">tar -xf data.tar.gz -C /media</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="166" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-59-01-1024x166.png" alt="" class="wp-image-13994" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-59-01-1024x166.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-59-01-300x49.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-59-01-768x124.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-59-01-696x113.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-59-01-1068x173.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-59-01.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Create tar.bz2 Archive File</h2>



<p>The bz2 feature is used to highly compress and create archive. Its archive size is small then gzip archive. The bz2 compression takes more time to compress and decompress files as compared to gzip which takes less time.</p>



<p><strong>j</strong> &#8211; To create highly compressed tar file, Use following command</p>



<pre class="wp-block-preformatted">tar cj data.tar.bz2 /boot</pre>



<h2>Un-compress bz2 archive file</h2>



<pre class="wp-block-preformatted">tar -xf data.tar.bz2</pre>



<p>Now, un-compress it in another directory</p>



<pre class="wp-block-preformatted">tar -xf data.tar.bz2 -C /media</pre>



<h2>List Content of Archive File</h2>



<p><strong>t</strong> &#8211; it is used to list archive data without extract it.</p>



<p>tar -tvf data.tar<br>tar -tvf data.tar.gz<br>tar -tvf data.tar.bz2</p>



<p>That&#8217;s it.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/use-tar-command-to-archive-compress-files-folders-in-linux/">Use tar command to archive/compress files/folders in Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/use-tar-command-to-archive-compress-files-folders-in-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install jenkins on CentOS 8 / RHEL 8</title>
		<link>https://www.osradar.com/how-to-install-jenkins-on-centos-8-rhel-8/</link>
					<comments>https://www.osradar.com/how-to-install-jenkins-on-centos-8-rhel-8/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Mon, 30 Sep 2019 01:08:53 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Jenkins]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13996</guid>

					<description><![CDATA[<p>Jenkins is a free and open-source automation server written in Java. It is Released under the MIT License. Jenkins helps to automate the non-human part of the software development process, with continuous integration and facilitating technical aspects of continuous delivery. So, In this article you will learn that how to install Jenkins on CentOS 8 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-jenkins-on-centos-8-rhel-8/">How to install jenkins on CentOS 8 / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p><strong><a rel="noreferrer noopener" aria-label="Jenkins (opens in a new tab)" href="https://jenkins.io/" target="_blank">Jenkins</a></strong> is a free and open-source automation server written in Java. It is Released under the MIT License. Jenkins helps to automate the non-human part of the software development process, with continuous integration and facilitating technical aspects of continuous delivery. So, In this <g class="gr_ gr_12 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-ins replaceWithoutSep" id="12" data-gr-id="12">article</g> you will learn <g class="gr_ gr_11 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-del replaceWithoutSep" id="11" data-gr-id="11">that how</g> to install Jenkins on CentOS 8 and RHEL 8</p>



<p>Jenkins It is a server-based system that runs in servlet containers such as Apache Tomcat. Jenkins supports version control tools, including AccuRev, CVS, Subversion, <a rel="noreferrer noopener" aria-label="Git (opens in a new tab)" href="https://www.osradar.com/install-the-latest-version-of-git-centos-8-rhel-oracle-linux/" target="_blank">Git</a>, Mercurial, Perforce, TD/OMS, ClearCase, and RTC, and can execute Apache Ant, Apache M<a rel="noreferrer noopener" aria-label="aven  (opens in a new tab)" href="https://www.osradar.com/install-apache-maven-on-centos-7/" target="_blank">aven, </a>and <g class="gr_ gr_7 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling" id="7" data-gr-id="7">sbt</g> based projects as well as arbitrary shell scripts and Windows batch commands.</p>



<p>This provides hundreds of plugins to support building, deploying and automating any project under MIT license.</p>



<p>Just login as <strong>root</strong> user and follow below steps.</p>



<h2>Step 1- Upgrade System</h2>



<p>The very first step should update your system so everything will upto date and you will get secure.</p>



<pre class="wp-block-preformatted">dnf update -y</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="614" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/1-28-1024x614.png" alt="" class="wp-image-14001" srcset="https://www.osradar.com/wp-content/uploads/2019/09/1-28-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/1-28-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/1-28-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/1-28-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/1-28-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/1-28-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2019/09/1-28.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Step 2- Install JAVA</h2>



<p>As I mentioned earlier Jenkins is build in JAVA, so we have to install JAVA on the server so we can use <strong>jenkins</strong> properly.</p>



<pre class="wp-block-preformatted">dnf install -y  java-1.8.0-openjdk</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="614" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/2-27-1024x614.png" alt="" class="wp-image-14002" srcset="https://www.osradar.com/wp-content/uploads/2019/09/2-27-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/2-27-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/2-27-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/2-27-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/2-27-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/2-27-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2019/09/2-27.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Installing JAVA</figcaption></figure>



<p>Now verify java version</p>



<pre class="wp-block-preformatted">java -version</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="190" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/3-24-1024x190.png" alt="" class="wp-image-14003" srcset="https://www.osradar.com/wp-content/uploads/2019/09/3-24-1024x190.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/3-24-300x56.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/3-24-768x143.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/3-24-696x129.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/3-24-1068x199.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/3-24.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Step 3: Adding Jenkins Repository</h2>



<p>Now, we will add Jenkins Repository in Centos 7 / RHEL 8 so we can install it as Jenkins did not come with CentOS default repository.</p>



<p>First, install <strong>wget</strong> package is no installed already</p>



<pre class="wp-block-preformatted">dnf install -y wget</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="614" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/4-23-1024x614.png" alt="" class="wp-image-14004" srcset="https://www.osradar.com/wp-content/uploads/2019/09/4-23-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/4-23-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/4-23-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/4-23-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/4-23-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/4-23-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2019/09/4-23.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Then, download and enable Jenkins Repository</p>



<pre class="wp-block-preformatted">wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="339" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/5-17-1024x339.png" alt="" class="wp-image-14005" srcset="https://www.osradar.com/wp-content/uploads/2019/09/5-17-1024x339.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/5-17-300x99.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/5-17-768x254.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/5-17-696x231.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/5-17-1068x354.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/5-17-1268x420.png 1268w, https://www.osradar.com/wp-content/uploads/2019/09/5-17.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Now, import Jenkins GPG Key</p>



<pre class="wp-block-preformatted">rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key</pre>



<h2>Step 4- Install Jenkins on your CentOS 8 / RHEL 8 system</h2>



<pre class="wp-block-preformatted">dnf install -y jenkins</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="407" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/6-18-1024x407.png" alt="" class="wp-image-14007" srcset="https://www.osradar.com/wp-content/uploads/2019/09/6-18-1024x407.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/6-18-300x119.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/6-18-768x305.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/6-18-696x277.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/6-18-1068x425.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/6-18-1056x420.png 1056w, https://www.osradar.com/wp-content/uploads/2019/09/6-18.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Step 5- Start and Enable Jenkins Service</h2>



<p>Now you have to start jenkins service so we can use it and enable it on boot so if system will reboot jenkins will start automatically</p>



<pre class="wp-block-preformatted">systemctl start jenkins
systemctl enable jenkins
systemctl status jenkins </pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="468" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/7-16-1024x468.png" alt="" class="wp-image-14008" srcset="https://www.osradar.com/wp-content/uploads/2019/09/7-16-1024x468.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/7-16-300x137.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/7-16-768x351.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/7-16-696x318.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/7-16-1068x488.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/7-16-919x420.png 919w, https://www.osradar.com/wp-content/uploads/2019/09/7-16.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Step 6- Configure Firewall </h2>



<p>You know Jenkins is works on port <strong>8080</strong> so we need to allow connection on that port by adding it in firewall.</p>



<pre class="wp-block-preformatted">firewall-cmd --zone=public --permanent  --add-port=8080/tcp<br>firewall-cmd --reload</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="185" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/8-10-1024x185.png" alt="" class="wp-image-14009" srcset="https://www.osradar.com/wp-content/uploads/2019/09/8-10-1024x185.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/8-10-300x54.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/8-10-768x139.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/8-10-696x126.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/8-10-1068x193.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/8-10.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Step 7- Setting Up Jenkins</h2>



<p>Finally, everything is working fine as jenkins is installed successfully, now we you need to open your web browser and access jenkins using below URL:</p>



<p><strong>YOUR-SERVER-IP:8080</strong></p>



<p>You will see below page asking for Admin password to Unlock jenkins, when you browse the URL first time.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="519" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/9-9-1024x519.png" alt="" class="wp-image-14010" srcset="https://www.osradar.com/wp-content/uploads/2019/09/9-9-1024x519.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/9-9-300x152.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/9-9-768x389.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/9-9-696x353.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/9-9-1068x542.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/9-9-828x420.png 828w, https://www.osradar.com/wp-content/uploads/2019/09/9-9.png 1919w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>A path is also display on the page in which the password is saved, so go to your Linux terminal and issue following command to get the password.</p>



<pre class="wp-block-preformatted">cat /var/lib/jenkins/secrets/initialAdminPassword</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="150" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/10-9-1024x150.png" alt="" class="wp-image-14011" srcset="https://www.osradar.com/wp-content/uploads/2019/09/10-9-1024x150.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/10-9-300x44.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/10-9-768x113.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/10-9-696x102.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/10-9-1068x157.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/10-9.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Now, copy the password and paste it into the &#8220;Administrator password&#8221; box and click Continue.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="515" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/11-8-1024x515.png" alt="" class="wp-image-14012" srcset="https://www.osradar.com/wp-content/uploads/2019/09/11-8-1024x515.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/11-8-300x151.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/11-8-768x386.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/11-8-696x350.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/11-8-1068x537.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/11-8-836x420.png 836w, https://www.osradar.com/wp-content/uploads/2019/09/11-8.png 1914w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>So you will be asked if you want to install the <strong>suggested plugins</strong> or <strong>install additional plugins</strong>. I choose &#8220;install the suggested plugins&#8221; option you can choose your desired and the installation process will start immediately.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="521" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/12-6-1024x521.png" alt="" class="wp-image-14013" srcset="https://www.osradar.com/wp-content/uploads/2019/09/12-6-1024x521.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/12-6-300x153.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/12-6-768x390.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/12-6-696x354.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/12-6-1068x543.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/12-6-826x420.png 826w, https://www.osradar.com/wp-content/uploads/2019/09/12-6.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="546" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/12-1-1-1024x546.png" alt="" class="wp-image-14025" srcset="https://www.osradar.com/wp-content/uploads/2019/09/12-1-1-1024x546.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/12-1-1-300x160.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/12-1-1-768x409.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/12-1-1-696x371.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/12-1-1-1068x569.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/12-1-1-788x420.png 788w, https://www.osradar.com/wp-content/uploads/2019/09/12-1-1.png 1567w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p><strong>Note:</strong> If you are facing any issue during plugins installation, Click on &#8220;<strong>Select plugins to install</strong>&#8221; option then un-select all plugins. You can install desired plugins from jenkins dashboard also.</p>



<p>Now, create an admin account which will  be used to manage the Jenkins server.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="545" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/13-7-1024x545.png" alt="" class="wp-image-14026" srcset="https://www.osradar.com/wp-content/uploads/2019/09/13-7-1024x545.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/13-7-300x160.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/13-7-768x409.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/13-7-696x371.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/13-7-1068x569.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/13-7-789x420.png 789w, https://www.osradar.com/wp-content/uploads/2019/09/13-7.png 1587w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Then, you need to set Jenkins URL, set a URL or leave it as default and click on Save and Finish button.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="514" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/14-7-1024x514.png" alt="" class="wp-image-14015" srcset="https://www.osradar.com/wp-content/uploads/2019/09/14-7-1024x514.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/14-7-300x151.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/14-7-768x385.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/14-7-696x349.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/14-7-1068x536.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/14-7-837x420.png 837w, https://www.osradar.com/wp-content/uploads/2019/09/14-7.png 1917w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Finally, everything has been done, click on &#8220;Start using Jenkins&#8221; button </p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="515" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/15-6-1024x515.png" alt="" class="wp-image-14016" srcset="https://www.osradar.com/wp-content/uploads/2019/09/15-6-1024x515.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/15-6-300x151.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/15-6-768x386.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/15-6-696x350.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/15-6-1068x537.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/15-6-835x420.png 835w, https://www.osradar.com/wp-content/uploads/2019/09/15-6.png 1916w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>and you will redirect to the Jenkins dashboard.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="521" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/16-7-1024x521.png" alt="" class="wp-image-14017" srcset="https://www.osradar.com/wp-content/uploads/2019/09/16-7-1024x521.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/16-7-300x153.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/16-7-768x391.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/16-7-696x354.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/16-7-1068x543.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/16-7-825x420.png 825w, https://www.osradar.com/wp-content/uploads/2019/09/16-7.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>That&#8217;s it.</p>



<p>Jenkins allows you to deploy and automate important tasks for application development in an enterprise environment. However, it requires some previous knowledge of Linux.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-jenkins-on-centos-8-rhel-8/">How to install jenkins on CentOS 8 / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-jenkins-on-centos-8-rhel-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Manage partitions in CentOS 8 / RHEL 8</title>
		<link>https://www.osradar.com/how-to-manage-partitions-in-centos-8-rhel-8/</link>
					<comments>https://www.osradar.com/how-to-manage-partitions-in-centos-8-rhel-8/#comments</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Sat, 28 Sep 2019 02:33:44 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[disk partition]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13950</guid>

					<description><![CDATA[<p>Disk partitioning or disk slicing is the creation of one or more regions on secondary storage, so that each region can be managed separately. These regions are called partitions. It is typically the first step of preparing a newly installed disk, before any file system is created. So, in this post, you will learn about [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-manage-partitions-in-centos-8-rhel-8/">How to Manage partitions in CentOS 8 / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Disk partitioning or disk slicing is the creation of one or more regions on secondary <g class="gr_ gr_11 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" id="11" data-gr-id="11">storage,</g> so that each region can be managed separately. These regions are called partitions. It is typically the first step of preparing a newly installed <g class="gr_ gr_12 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" id="12" data-gr-id="12">disk,</g> before any file system is created. So, in this post, you will learn about manage partitions in centOS 8.</p>



<p>The disk stores the information about the partition locations and sizes in an area known as the partition table that the operating system reads before any other part of the disk. Each partition then appears to the operating system as a distinct &#8220;logical&#8221; disk that uses part of the actual disk. System administrators use different programs to create, resize, delete, and manipulate the partitions. </p>



<p>In this article we will use fdisk program to create partition. Partitioning allows the use of different filesystems to be installed for different kinds of files. Separating user data from system data can prevent the system partition from becoming full and rendering the system unusable. Partitioning can also make backing up easier.</p>



<p>List/view all Disk Partitions in CentOS 8.</p>



<pre class="wp-block-preformatted">fdisk   -l  </pre>



<p>In linux all hard disks names show as sda, sdb, sdc etc.</p>



<p>sda means hard disk 1<br>sdb means hard disk 2<br>sdc means hard disk 3 and so on..</p>



<h2>Hard Disk Partitions names:</h2>



<p>Sda&gt; sda1, sda2 etc</p>



<p>sda1 mean partitions 1 of sda(Hard disk 1)<br>So, sda2 mean partitions 2 of sda(Hard disk 1)</p>



<p>To Check File System Disk Space Usage and mount point of partitions.</p>



<pre class="wp-block-preformatted">df -h    </pre>



<p>We will create and configure partition in four steps.</p>



<p><strong>1- Create partition<br>2- Partprobe<br>3- Format Partition (Filesystem)<br>4- Mount Partition</strong></p>



<p>Then we will also see that how to <strong>unmount</strong> and <strong>delete</strong> a created partition.</p>



<h2>Manage partitions in CentOS 8. Step 1- Create partition</h2>



<p>a- Run fdisk command to see disks and their partitions.</p>



<p>In fdisk -l command you have seen that a hard drive /dev/sdb has no partitions, so we will create a new partition on it.</p>



<pre class="wp-block-preformatted"> fdisk –l  </pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="614" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-10-04-1024x614.png" alt="" class="wp-image-13954" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-10-04-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-10-04-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-10-04-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-10-04-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-10-04-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-10-04-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-10-04.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>b-    Choose desired hard disk</p>



<pre class="wp-block-preformatted">fdisk    /dev/sdb</pre>



<p>c-    Press <strong>m</strong> for help.<br>d-    Press <strong>p</strong> to print partition table.<br>e-    Press <strong>n</strong> to create new partition.<br>f-    Press <strong>p</strong> to make primary partition.<br>g-    Press <strong>1</strong> is created first partition on selected disk.<br>       There are 1-4 partition number. We can type any one number from them.<br>h-    Press <strong>enter</strong> to leave first cylinder as default.<br>i-    Now assign space to partition. Use <strong>+</strong> to assign space e.g.<br> <strong>+1024M</strong> and press enter.<br>j-    Press <strong>p</strong> to print partition table.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="614" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-15-56-1024x614.png" alt="" class="wp-image-13957" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-15-56-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-15-56-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-15-56-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-15-56-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-15-56-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-15-56-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-15-56.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p><br>k-    Press <strong>w</strong> to write/save partition.</p>



<p></p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="325" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-16-26-1024x325.png" alt="" class="wp-image-13958" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-16-26-1024x325.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-16-26-300x95.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-16-26-768x244.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-16-26-696x221.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-16-26-1068x339.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-16-26.png 1279w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Step 2- Partprobe</h2>



<p>We have created partition but Linux kernel/Operating system did not know that a new partition has been added. To inform operating system about partition table changes. We can do two things. We will use second method it is recommended.</p>



<p>Restart machine <strong>(It is not recommended)</strong><br>Run partprobe command <strong>(Recommended)</strong></p>



<p>The partprobe command is used to inform the operating system of partition table changes without restarting the machine.</p>



<p><strong>Note:</strong> Always run partprobe command after partition creation.</p>



<pre class="wp-block-preformatted">partprobe<br>fdisk -l  </pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="614" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-17-48-1024x614.png" alt="" class="wp-image-13959" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-17-48-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-17-48-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-17-48-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-17-48-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-17-48-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-17-48-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-17-48.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Step 3-    Format Partition (Filesystem)</h2>



<p>We can set file system on partition in two different commands. We can use any of the following.</p>



<p>First Command</p>



<pre class="wp-block-preformatted">mkfs    -t  ext4   /dev/sdb1</pre>



<p><strong>mkfs </strong>           make filesystem<br> <strong>-t</strong>                to set filesystem type<br><strong> ext4</strong>            It is a filesystem<br><strong> /dev/sdb1</strong>  partition name</p>



<p></p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="337" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-19-37-1024x337.png" alt="" class="wp-image-13960" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-19-37-1024x337.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-19-37-300x99.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-19-37-768x253.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-19-37-696x229.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-19-37-1068x351.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-19-37-1277x420.png 1277w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-19-37.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p><strong>OR</strong></p>



<p>Now, second Command</p>



<pre class="wp-block-preformatted">mkfs.ext4  /dev/sdb1</pre>



<p>When we press Tab after <strong>mkfs</strong> we will see all file systems.</p>



<h2>Manage partititions on CentOS. Step 4- Mount Partition</h2>



<p>First create a mount point (a directory) /disk1 and use mount command to mount /<strong>dev/sdb1</strong></p>



<p>a-    Make a directory where we mount partition.</p>



<pre class="wp-block-preformatted">mkdir /disk1</pre>



<p>b-    Now mount partition on created directory.</p>



<pre class="wp-block-preformatted">mount  /dev/sdb1   /disk1</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="150" src="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-21-27-1024x150.png" alt="" class="wp-image-13961" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-21-27-1024x150.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-21-27-300x44.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-21-27-768x113.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-21-27-696x102.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-21-27-1068x157.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-21-27.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>c-    See mounted partitions</p>



<pre class="wp-block-preformatted">df –h</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="332" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-21-45-1024x332.png" alt="" class="wp-image-13962" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-21-45-1024x332.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-21-45-300x97.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-21-45-768x249.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-21-45-696x226.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-21-45-1068x346.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-21-45.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>d-    Mount partition permanently so it can also mount after system reboot.</p>



<p>The configuration file <strong>/etc/fstab</strong> contains the necessary information to automate the process of mounting partitions. In simple words <strong>/etc/fstab</strong> file is used to auto mount partitions.</p>



<p>syntax to add partition in <strong>/etc/fstab</strong> file:</p>



<p>Add partition in /etc/fstab to mount it permanent so if system will reboot partition will not unmount. Run following command.</p>



<pre class="wp-block-preformatted">vi /etc/fstab</pre>



<p>then add below lines in in this file.</p>



<pre class="wp-block-preformatted">/dev/sdb1            /disk1      ext4            defaults        0     0</pre>



<p>Save and quite.</p>



<p>Above two zero means filesystem will not run repair command on boot time on that partition.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="614" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-22-44-1024x614.png" alt="" class="wp-image-13963" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-22-44-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-22-44-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-22-44-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-22-44-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-22-44-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-22-44-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-22-44.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Unmount a partition</h2>



<p>If you want to unmount a partition use following command, where /dev/sdb1 will be replaced with your parition.</p>



<pre class="wp-block-preformatted">umount    /dev/sdb1</pre>



<p>Mount all partitions. It will read /etc/fstab file and mount all partitions which are configured in that file.</p>



<pre class="wp-block-preformatted">mount    -a</pre>



<h2>Delete a partition:</h2>



<pre class="wp-block-preformatted">df –h</pre>



<p>a-    Unmount partition. If we does not un-mount, partition will not delete.</p>



<pre class="wp-block-preformatted">umount    /dev/sdb1</pre>



<p>b-    Choose disk/drive.</p>



<pre class="wp-block-preformatted">fdisk    /dev/sdb</pre>



<p>c-    Press p to print partitions.<br>d-    Press d to delete partition.<br>e-    Now select partition number, we want to delete. E.g 1 is sdb1<br>Press 1 and enter<br>f-    Press w to write/save changes.<br>g-    Now run partprobe command.</p>



<pre class="wp-block-preformatted">partprobe</pre>



<p>That&#8217;s it, You have briefly learned how to create, mount and set filesystems on a partition. We have also mounted, unmount created a partition and also check how to delete it. So, you know how to manage partitions in CentOS 8.</p>



<p>Also, you can read our posts about CentOS 8 in this <a rel="noreferrer noopener" aria-label="link (opens in a new tab)" href="https://www.osradar.com/tag/centos-8/" target="_blank">link</a>.</p>



<p>Please share this post and join our <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener" aria-label="Telegram channel (opens in a new tab)">Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-manage-partitions-in-centos-8-rhel-8/">How to Manage partitions in CentOS 8 / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-manage-partitions-in-centos-8-rhel-8/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>Check your CPU Temperature in Linux</title>
		<link>https://www.osradar.com/check-your-cpu-temperature-in-linux/</link>
					<comments>https://www.osradar.com/check-your-cpu-temperature-in-linux/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Fri, 27 Sep 2019 22:49:54 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[temperature]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13937</guid>

					<description><![CDATA[<p>lm_sensors (Linux-monitoring sensors), is a free open source tool for Linux that provides tools and drivers for monitoring temperatures, voltage, humidity, and fans. It can also detect chassis intrusions. In this article we will install it and monitor CPU temperature using different commands. 1- Install EPEL Release if CentOS or RHEL dnf install -y epel-release [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/check-your-cpu-temperature-in-linux/">Check your CPU Temperature in Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>lm_sensors (Linux-monitoring sensors), is a free open source tool for Linux that provides tools and drivers for monitoring temperatures, voltage, humidity, and fans. It can also detect chassis intrusions. In this article we will install it and monitor CPU temperature using different commands.</p>



<h2>1- Install EPEL Release if CentOS or RHEL</h2>



<pre class="wp-block-preformatted">dnf install -y epel-release</pre>



<h2>2- Install Linux Monitoring Sensors</h2>



<p><strong>Install lm sensor on RHEL 8 and CentOS 8 and Fedora</strong></p>



<pre class="wp-block-preformatted">dnf install -y lm_sensors</pre>



<p><strong>Install lm sensor on RHEL 7 and CentOS 7</strong></p>



<pre class="wp-block-preformatted">yum install -y lm_sensors</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="204" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/1-26-1024x204.png" alt="" class="wp-image-13941" srcset="https://www.osradar.com/wp-content/uploads/2019/09/1-26-1024x204.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/1-26-300x60.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/1-26-768x153.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/1-26-696x138.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/1-26-1068x212.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/1-26.png 1615w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Installing im sensor on CentOS 7</figcaption></figure>



<p><strong>If you are using Debian or Ubuntu use following command</strong></p>



<pre class="wp-block-preformatted">sudo apt-get install lm-sensors</pre>



<h2>3- Sensor Configuration</h2>



<p>Now, we need to make some configuration using below command after lm sensor installation. So if you want to go with default configuration simply hit enter key step by step.</p>



<pre class="wp-block-preformatted">sensors-detect</pre>



<h4>You will see similar steps during configuration.</h4>



<pre class="wp-block-preformatted">[root@osradar ~]# sensors-detect
 sensors-detect revision 3.4.0-8 (2016-06-01)
 System: Hewlett-Packard HP Compaq dc7900 Small Form Factor
 Board: Hewlett-Packard 3031h
 Kernel: 3.10.0-957.27.2.el7.x86_64 x86_64
 Processor: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz (6/23/10)
 This program will help you determine which kernel modules you need
 to load to use lm_sensors most effectively. It is generally safe
 and recommended to accept the default answers to all questions,
 unless you know what you're doing.
 Some south bridges, CPUs or memory controllers contain embedded sensors.
 Do you want to scan for them? This is totally safe. (YES/no):
 Silicon Integrated Systems SIS5595…                       No
 VIA VT82C686 Integrated Sensors…                          No
 VIA VT8231 Integrated Sensors…                            No
 AMD K8 thermal sensors…                                   No
 AMD Family 10h thermal sensors…                           No
 AMD Family 11h thermal sensors…                           No
 AMD Family 12h and 14h thermal sensors…                   No
 AMD Family 15h thermal sensors…                           No
 AMD Family 16h thermal sensors…                           No
 AMD Family 17h thermal sensors…                           No
 AMD Family 15h power sensors…                             No
 AMD Family 16h power sensors…                             No
 Intel digital thermal sensor…                             Success!

     (driver `coretemp')
 Intel AMB FB-DIMM thermal sensor…                         No
 Intel 5500/5520/X58 thermal sensor…                       No
 VIA C7 thermal sensor…                                    No
 VIA Nano thermal sensor…                                  No
 Some Super I/O chips contain embedded sensors. We have to write to
 standard I/O ports to probe them. This is usually safe.
 Do you want to scan for Super I/O sensors? (YES/no):
 Probing for Super-I/O at 0x2e/0x2f
 Trying family <code>National Semiconductor/ITE'...               Yes Found unknown chip with ID 0x1911 Probing for Super-I/O at 0x4e/0x4f Trying family</code>National Semiconductor/ITE'…               No
 Trying family `SMSC'…                                     Yes
 Found unknown chip with ID 0x0b00
 Some systems (mainly servers) implement IPMI, a set of common interfaces
 through which system health data may be retrieved, amongst other things.
 We first try to get the information from SMBIOS. If we don't find it
 there, we have to read from arbitrary I/O ports to probe for such
 interfaces. This is normally safe. Do you want to scan for IPMI
 interfaces? (YES/no):
 Probing for <code>IPMI BMC KCS' at 0xca0...                      No Probing for</code>IPMI BMC SMIC' at 0xca8…                     No
 Some hardware monitoring chips are accessible through the ISA I/O ports.
 We have to write to arbitrary I/O ports to probe them. This is usually
 safe though. Yes, you do have ISA I/O ports even if you do not have any
 ISA slots! Do you want to scan the ISA I/O ports? (YES/no):
 Probing for <code>National Semiconductor LM78' at 0x290...       No Probing for</code>National Semiconductor LM79' at 0x290…       No
 Probing for <code>Winbond W83781D' at 0x290...                   No Probing for</code>Winbond W83782D' at 0x290…                   No
 Lastly, we can probe the I2C/SMBus adapters for connected hardware
 monitoring devices. This is the most risky part, and while it works
 reasonably well on most systems, it has been reported to cause trouble
 on some systems.

 Do you want to probe the I2C/SMBus adapters now? (YES/no):
 Sorry, no supported PCI bus adapters found.
 Module i2c-dev loaded successfully.
 Next adapter: i915 gmbus ssc (i2c-0)
 Do you want to scan it? (yes/NO/selectively):
 Next adapter: i915 gmbus vga (i2c-1)
 Do you want to scan it? (yes/NO/selectively):
 Next adapter: i915 gmbus panel (i2c-2)
 Do you want to scan it? (yes/NO/selectively):
 Next adapter: i915 gmbus dpc (i2c-3)
 Do you want to scan it? (yes/NO/selectively):
 Next adapter: i915 gmbus dpb (i2c-4)
 Do you want to scan it? (yes/NO/selectively):
 Next adapter: i915 gmbus dpd (i2c-5)
 Do you want to scan it? (yes/NO/selectively):
 Now follows a summary of the probes I have just done.

 Just press ENTER to continue:
 Driver `coretemp':
 Chip `Intel digital thermal sensor' (confidence: 9) 
 Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no):
 Unloading i2c-dev… OK
 [root@osradar ~]#</pre>



<p>So, you will see similar screen upon successful configuration.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="547" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/2-25-1024x547.png" alt="" class="wp-image-13942" srcset="https://www.osradar.com/wp-content/uploads/2019/09/2-25-1024x547.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/2-25-300x160.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/2-25-768x410.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/2-25-696x372.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/2-25-1068x571.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/2-25-786x420.png 786w, https://www.osradar.com/wp-content/uploads/2019/09/2-25.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Sensor has been installed successfully.</figcaption></figure>



<h2>4- See CPU Temperature</h2>



<p>Finally issue following command to see CPU temperature,</p>



<pre class="wp-block-preformatted">sensors</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="178" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/3-23-1024x178.png" alt="" class="wp-image-13943" srcset="https://www.osradar.com/wp-content/uploads/2019/09/3-23-1024x178.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/3-23-300x52.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/3-23-768x133.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/3-23-696x121.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/3-23-1068x186.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/3-23.png 1410w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Checking CPU temperature</figcaption></figure>



<p>So, you can see in above image the command &#8220;sensors&#8221; is showing number of CPU cores its current temperature. But in brackets its is also showing high and critical temperatures in degree centigrade. </p>



<p><strong>See temperature on Runtime</strong></p>



<pre class="wp-block-preformatted">watch sensors</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="125" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/4-22-1024x125.png" alt="" class="wp-image-13944" srcset="https://www.osradar.com/wp-content/uploads/2019/09/4-22-1024x125.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/4-22-300x37.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/4-22-768x94.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/4-22-696x85.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/4-22-1068x130.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/4-22.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Checking temperature on runtime</figcaption></figure>



<p><strong>Check temperature in Fahrenheit</strong></p>



<p>Then, what if you wanna see it in Fahrenheit, if you want to do so simply run below command.</p>



<pre class="wp-block-preformatted">sensors -f</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="173" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/5-16-1024x173.png" alt="" class="wp-image-13946" srcset="https://www.osradar.com/wp-content/uploads/2019/09/5-16-1024x173.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/5-16-300x51.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/5-16-768x129.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/5-16-696x117.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/5-16-1068x180.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/5-16.png 1424w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Displaying CPU temperature in  Fahrenheit </figcaption></figure>



<p>That&#8217;s it.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/check-your-cpu-temperature-in-linux/">Check your CPU Temperature in Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/check-your-cpu-temperature-in-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>du command to Check file/folder disk usage in Linux</title>
		<link>https://www.osradar.com/du-command-to-check-file-folder-disk-usage-in-linux/</link>
					<comments>https://www.osradar.com/du-command-to-check-file-folder-disk-usage-in-linux/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Fri, 27 Sep 2019 22:39:37 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[disk usage]]></category>
		<category><![CDATA[du command]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13976</guid>

					<description><![CDATA[<p>Linux du (Disk Usage) is a Unix/Linux command. It used to check disk usage of files and directories on Linux system. There are many options of du commands to get different outputs which we use in below examples. Check Directory Disk Usage Summary So, below command is used to get the summary of disk usage [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/du-command-to-check-file-folder-disk-usage-in-linux/">du command to Check file/folder disk usage in Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Linux <strong>du</strong> (Disk Usage) is a Unix/Linux command. It used to check disk usage of files and directories on Linux system. There are many options of du commands to get different outputs which we use in below examples.</p>



<h2>Check Directory Disk Usage Summary</h2>



<p>So, below command is used to get the summary of disk usage of /boot directory. Its also unclude sub-directory summary.</p>



<pre class="wp-block-preformatted">du /boot</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="316" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-45-33-1024x316.png" alt="" class="wp-image-13978" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-45-33-1024x316.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-45-33-300x93.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-45-33-768x237.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-45-33-696x215.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-45-33-1068x330.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-45-33.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>disk usage summary of /boot directory.</figcaption></figure>



<p>If you want to see a grand total disk usage of a directory, use below command where / should be your desired directory name.</p>



<pre class="wp-block-preformatted">du -s /boot</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="152" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-14-1024x152.png" alt="" class="wp-image-13979" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-14-1024x152.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-14-300x45.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-14-768x114.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-14-696x103.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-14-1068x159.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-14.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>See only grand total space using by /boot directory.</figcaption></figure>



<h2>Check disk usage in human readable form</h2>



<p>Now we will see disk usage of /boot directory in human readable from with grand total.</p>



<pre class="wp-block-preformatted">du -hs /boot</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="159" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-47-1024x159.png" alt="" class="wp-image-13981" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-47-1024x159.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-47-300x47.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-47-768x119.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-47-696x108.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-47-1068x166.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-47.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Check grand total disk usage space of /boot directory in human readable form.</figcaption></figure>



<h2>Check Disk Usage of Directories with files.</h2>



<p>what if you wanna see that how much space is using by both, files and folders. to check that simply run below command</p>



<pre class="wp-block-preformatted">du -ah /boot</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="614" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-18-1024x614.png" alt="" class="wp-image-13982" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-18-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-18-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-18-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-18-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-18-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-18-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-18.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>See Disk usage with Time</h2>



<p>If you want to see total usage of a directory with it last modification time and date, then run following command</p>



<pre class="wp-block-preformatted">du -h --time /boot</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="310" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-41-1024x310.png" alt="" class="wp-image-13983" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-41-1024x310.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-41-300x91.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-41-768x232.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-41-696x210.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-41-1068x323.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-41.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Show disk space usage in KB</h2>



<p>Simply run below command to see disk usage of a directory in kilobytes</p>



<pre class="wp-block-preformatted">du -k /boot</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="321" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-55-1024x321.png" alt="" class="wp-image-13984" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-55-1024x321.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-55-300x94.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-55-768x241.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-55-696x218.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-55-1068x335.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-55.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>List space Usage in MB</h2>



<pre class="wp-block-preformatted">du -mh /boot</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="321" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-48-15-1024x321.png" alt="" class="wp-image-13985" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-48-15-1024x321.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-48-15-300x94.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-48-15-768x241.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-48-15-696x218.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-48-15-1068x335.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-48-15.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Read manual pages using command &#8220;man du&#8221; for more information.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/du-command-to-check-file-folder-disk-usage-in-linux/">du command to Check file/folder disk usage in Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/du-command-to-check-file-folder-disk-usage-in-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
