<?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>commands Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/commands/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/commands/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:30:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How to Uninstall/Remove Package in Laravel?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-uninstall-remove-package-in-laravel/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-uninstall-remove-package-in-laravel/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Sat, 11 Sep 2021 12:37:57 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[composer]]></category>
		<category><![CDATA[laravel composer]]></category>
		<category><![CDATA[Package]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8755</guid>

					<description><![CDATA[<p>composer remove VenderName/PackageName &#8211; The remove command removes packages from the composer.json file from the current directory. Syntax :- composer [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-uninstall-remove-package-in-laravel/">How to Uninstall/Remove Package in Laravel?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>composer remove VenderName/PackageName &#8211;</strong> The remove command removes packages from the composer.json file from the current directory.</p>



<p class="wp-block-paragraph"><strong>Syntax :-</strong> composer remove VenderName/PackageName</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="979" height="510" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-remove-vendername-packagename.png" alt="" class="wp-image-8970" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-remove-vendername-packagename.png 979w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-remove-vendername-packagename-300x156.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-remove-vendername-packagename-768x400.png 768w" sizes="(max-width: 979px) 100vw, 979px" /></figure>



<p class="wp-block-paragraph"><strong>Syntax:-</strong> composer remome VenderName/PackageName1</p>



<figure class="wp-block-image size-full"><img decoding="async" width="982" height="501" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-remome-VenderName.png" alt="" class="wp-image-8972" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-remome-VenderName.png 982w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-remome-VenderName-300x153.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-remome-VenderName-768x392.png 768w" sizes="(max-width: 982px) 100vw, 982px" /></figure>



<p class="wp-block-paragraph">                                             VenderName/PackageName2</p>



<figure class="wp-block-image size-full"><img decoding="async" width="974" height="514" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/VenderName.png" alt="" class="wp-image-8973" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/VenderName.png 974w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/VenderName-300x158.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/VenderName-768x405.png 768w" sizes="(max-width: 974px) 100vw, 974px" /></figure>



<p class="wp-block-paragraph">If you want to remove more than one package then you have to run this command.</p>



<p class="wp-block-paragraph"><strong>Ex:-</strong> composer remove fzaninotto/faker</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="979" height="513" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-remove-fzaninotto.png" alt="" class="wp-image-8976" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-remove-fzaninotto.png 979w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-remove-fzaninotto-300x157.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-remove-fzaninotto-768x402.png 768w" sizes="auto, (max-width: 979px) 100vw, 979px" /></figure>



<p class="wp-block-paragraph"><strong>&#8211;dev:</strong> It remove packages form require-dev</p>



<p class="wp-block-paragraph">This means, if it is in require-dev, then you have to remove it from there, then for this, you have to flag the dev.</p>



<p class="wp-block-paragraph"><strong>Ex: </strong>composer remove fzaninotto/faker &#8211;dev</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="977" height="509" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-remove-faker-dev.png" alt="" class="wp-image-8977" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-remove-faker-dev.png 977w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-remove-faker-dev-300x156.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-remove-faker-dev-768x400.png 768w" sizes="auto, (max-width: 977px) 100vw, 977px" /></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-uninstall-remove-package-in-laravel/">How to Uninstall/Remove Package in Laravel?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-uninstall-remove-package-in-laravel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install/Add-Package in Laravel?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-install-add-package-in-laravel/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-install-add-package-in-laravel/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Fri, 03 Sep 2021 12:47:55 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[composer]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[Package]]></category>
		<category><![CDATA[VendorName]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8698</guid>

					<description><![CDATA[<p>composer require VendorName/PackageName &#8211; This command installs a package and any packages that it depends on. syntax example composer require [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-install-add-package-in-laravel/">How to Install/Add-Package in Laravel?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>composer require VendorName/PackageName &#8211;</strong> This command installs a package and any packages that it depends on.</p>



<figure class="wp-block-table"><table><tbody><tr><td class="has-text-align-center" data-align="center"><strong>syntax</strong></td><td class="has-text-align-center" data-align="center"><strong>example</strong></td></tr><tr><td class="has-text-align-center" data-align="center">composer require VendorName/PackageName</td><td class="has-text-align-center" data-align="center">composer require fzaninotto/faler</td></tr><tr><td class="has-text-align-center" data-align="center">composer require VendorName/PackageName:tag</td><td class="has-text-align-center" data-align="center">composer require fzaninotto/faker:dev-master</td></tr><tr><td class="has-text-align-center" data-align="center">composer require VendorName/PackageName:version</td><td class="has-text-align-center" data-align="center">composer require fzaninotto/faker:1.9.0</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">&#8211;dev: Add packages to require-dev.</p>



<p class="wp-block-paragraph">composer require VendorName/PackageName &#8211;dev</p>



<p class="wp-block-paragraph">https://packagist.org/ This is the website, from where you will get Php packages. This is the package repository of Php. You have to open this site, whatever your requirement is, you can do that package.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="570" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/packagist-org-1024x570.png" alt="" class="wp-image-8721" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/packagist-org-1024x570.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/packagist-org-300x167.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/packagist-org-768x427.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/packagist-org.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">If you want a viewer with PDF, then you search by typing PDF. Here the first one wants Dompdf / Dompdf, so I clicked on it. After clicking on it, it will show you what is the version tag. And it will also show how to install it. So to install it, you have to type the command <strong>composer require dompdf/dompdf.</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="577" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composor.json-file-which-you-have-is-empty-1024x577.png" alt="" class="wp-image-8720" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composor.json-file-which-you-have-is-empty-1024x577.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composor.json-file-which-you-have-is-empty-300x169.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composor.json-file-which-you-have-is-empty-768x432.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composor.json-file-which-you-have-is-empty.png 1364w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Before running this command, you should check that the composor.json file which you have is empty. That is, our project is not dependent on anyone. But now we have the requirement of this project so we will run this command.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="867" height="514" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-require-dompdf-dompdf.png" alt="" class="wp-image-8719" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-require-dompdf-dompdf.png 867w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-require-dompdf-dompdf-300x178.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-require-dompdf-dompdf-768x455.png 768w" sizes="auto, (max-width: 867px) 100vw, 867px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="530" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/require-1024x530.png" alt="" class="wp-image-8723" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/require-1024x530.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/require-300x155.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/require-768x397.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/require.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="547" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/packages-version-2-1024x547.png" alt="" class="wp-image-8726" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/packages-version-2-1024x547.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/packages-version-2-300x160.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/packages-version-2-768x410.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/packages-version-2.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-install-add-package-in-laravel/">How to Install/Add-Package in Laravel?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-install-add-package-in-laravel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to set up a new or existing package?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-set-up-a-new-or-existing-package/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-set-up-a-new-or-existing-package/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Fri, 03 Sep 2021 11:43:26 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[composer]]></category>
		<category><![CDATA[Keys]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[Package]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8633</guid>

					<description><![CDATA[<p>Manually Creating composer.json file You have to create a composer.joson file and write JSON code yourself with the required properties. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-set-up-a-new-or-existing-package/">How to set up a new or existing package?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Manually Creating composer.json file</h2>



<p class="wp-block-paragraph">You have to create a composer.joson file and write JSON code yourself with the required properties.</p>



<ul class="wp-block-list"><li>composer config &#8211;global(-g) &#8211; Operate on the global config file located at $COMPOSER_HOME/comfig.json by default. Without this option, this command affects the local composer.json file.</li></ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="867" height="516" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-global.png" alt="" class="wp-image-8689" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-global.png 867w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-global-300x179.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-global-768x457.png 768w" sizes="auto, (max-width: 867px) 100vw, 867px" /></figure>



<ul class="wp-block-list"><li>composer config &#8211;list (-l) __ It shows all the current config variables.</li></ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="868" height="517" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-list-1.png" alt="" class="wp-image-8690" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-list-1.png 868w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-list-1-300x179.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-list-1-768x457.png 768w" sizes="auto, (max-width: 868px) 100vw, 868px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="869" height="510" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-list2.png" alt="" class="wp-image-8691" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-list2.png 869w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-list2-300x176.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-list2-768x451.png 768w" sizes="auto, (max-width: 869px) 100vw, 869px" /></figure>



<ul class="wp-block-list"><li>composer config setting-key &#8220;setting-value&#8221; &#8211; It sets the config key to the value.</li></ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="864" height="513" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-setting-key-setting-value.png" alt="" class="wp-image-8692" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-setting-key-setting-value.png 864w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-setting-key-setting-value-300x178.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-setting-key-setting-value-768x456.png 768w" sizes="auto, (max-width: 864px) 100vw, 864px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="573" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-setting-key-setting-value-edit-1024x573.png" alt="" class="wp-image-8693" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-setting-key-setting-value-edit-1024x573.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-setting-key-setting-value-edit-300x168.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-setting-key-setting-value-edit-768x430.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-setting-key-setting-value-edit.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<ul class="wp-block-list"><li>composer config &#8211;unset &#8211; It removes the configuration element named by setting-key.</li></ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="870" height="512" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-unset-description.png" alt="" class="wp-image-8695" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-unset-description.png 870w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-unset-description-300x177.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-unset-description-768x452.png 768w" sizes="auto, (max-width: 870px) 100vw, 870px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-unset-description-edit-1024x575.png" alt="" class="wp-image-8694" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-unset-description-edit-1024x575.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-unset-description-edit-300x168.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-unset-description-edit-768x431.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-unset-description-edit.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<ul class="wp-block-list"><li>composer config &#8211;editor (-e) &#8211; Opens the config file (composer.json) in an editor. Use the &#8211;global flag to edit the congif (config.json).</li></ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="873" height="513" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-editor.png" alt="" class="wp-image-8696" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-editor.png 873w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-editor-300x176.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/09/composer-config-editor-768x451.png 768w" sizes="auto, (max-width: 873px) 100vw, 873px" /></figure>



<h2 class="wp-block-heading">Keys:</h2>



<ul class="wp-block-list"><li>name</li><li>version</li><li>type</li><li>description</li><li>license</li><li>homepage</li><li>keywords</li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-set-up-a-new-or-existing-package/">How to set up a new or existing package?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-set-up-a-new-or-existing-package/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ansible Adhoc Commands Lab &#038; Excercise &#8211; Part 1</title>
		<link>https://www.scmgalaxy.com/tutorials/ansible-adhoc-commands-lab-excercise-part-1/</link>
					<comments>https://www.scmgalaxy.com/tutorials/ansible-adhoc-commands-lab-excercise-part-1/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 05 Sep 2018 08:36:10 +0000</pubDate>
				<category><![CDATA[Ansible]]></category>
		<category><![CDATA[Adhoc]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[excercise]]></category>
		<category><![CDATA[Lab]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5283</guid>

					<description><![CDATA[<p>Execution Mode &#8211; Local Write a Ansible Adhoc Commands to create a group called &#8220;deploy&#8221; Write a Ansible Adhoc Commands [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ansible-adhoc-commands-lab-excercise-part-1/">Ansible Adhoc Commands Lab &#038; Excercise &#8211; Part 1</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Execution Mode &#8211; Local</strong></p>
<ol>
<li>
<h4>Write a Ansible Adhoc Commands to create a group called &#8220;deploy&#8221;</h4>
</li>
<li>
<h4>Write a Ansible Adhoc Commands to create a user called &#8220;deploy-user&#8221; which is part of group called &#8220;group&#8221; and with /bin/bash shell.</h4>
</li>
<li>
<h4>Write a Ansble Adhoc commands install package named &#8220;httpd&#8221; in RHEL/centos.</h4>
</li>
<li>
<h4>Write a Ansible Adhoc commands to start and enable the service named &#8220;httpd&#8221;</h4>
</li>
<li>
<h4>Write a Ansible commands to create a file called &#8220;index.html&#8221; in /var/www/html with some dummy html contents.</h4>
</li>
<li>
<h4>Write a Ansible commands to reboot a self machine.</h4>
</li>
<li>
<h4>Write a Ansible commands to install a package called &#8220;git&#8221;, &#8220;wget&#8221;.</h4>
</li>
<li>
<h4>Write a Ansible Adhoc commands to clone git repo. thttps://github.com/scmgalaxy/ansible-role-template</h4>
</li>
</ol>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ansible-adhoc-commands-lab-excercise-part-1/">Ansible Adhoc Commands Lab &#038; Excercise &#8211; Part 1</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/ansible-adhoc-commands-lab-excercise-part-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Delete files and folder using batch commands&#8230;</title>
		<link>https://www.scmgalaxy.com/tutorials/delete-files-and-folder-using-batch-commands/</link>
					<comments>https://www.scmgalaxy.com/tutorials/delete-files-and-folder-using-batch-commands/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 09 Dec 2017 04:49:47 +0000</pubDate>
				<category><![CDATA[others scripting language]]></category>
		<category><![CDATA[commands]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2533</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Delete files and folder using batch commands&#8230; del /s /q bin &#8211; deletes all files recursively [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/delete-files-and-folder-using-batch-commands/">Delete files and folder using batch commands&#8230;</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Delete files and folder using batch commands&#8230;</strong></p>
<p>del /s /q bin &#8211; deletes all files recursively<br />
rmdir bin &#8211; delete empty folders..</p>
<p>Regards,<br />
Rajesh Kumar<br />
Twitt me @<a href="http://twitter.com/RajeshKumarIn"> twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/delete-files-and-folder-using-batch-commands/">Delete files and folder using batch commands&#8230;</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/delete-files-and-folder-using-batch-commands/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Use of p4 change commands</title>
		<link>https://www.scmgalaxy.com/tutorials/use-of-p4-change-commands/</link>
					<comments>https://www.scmgalaxy.com/tutorials/use-of-p4-change-commands/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 04 Dec 2017 12:40:52 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[commands]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1583</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Use of p4 change commands Updating changelist number p4 change To View the changelist info p4 [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/use-of-p4-change-commands/">Use of p4 change commands</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Use of p4 change commands</strong><br />
Updating changelist number<br />
p4 change <CL Number></p>
<p>To View the changelist info<br />
p4 change -o <CL Number></p>
<p>To Delete the changelist number<br />
p4 change -d <CL Number><br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/use-of-p4-change-commands/">Use of p4 change commands</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/use-of-p4-change-commands/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Start and Stop Nagios Core &#124; Nagios Tutorial</title>
		<link>https://www.scmgalaxy.com/tutorials/starting-and-stopping-nagios-core/</link>
					<comments>https://www.scmgalaxy.com/tutorials/starting-and-stopping-nagios-core/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 20 Apr 2017 08:31:37 +0000</pubDate>
				<category><![CDATA[IT Infrastructure Monitoring Tools]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[Nagios Core]]></category>
		<category><![CDATA[Nagios Guide]]></category>
		<category><![CDATA[Nagios Tutorial]]></category>
		<category><![CDATA[Network monitoring]]></category>
		<category><![CDATA[Restart]]></category>
		<category><![CDATA[Restarting Nagios Core]]></category>
		<category><![CDATA[Start]]></category>
		<category><![CDATA[Starting Nagios Core]]></category>
		<category><![CDATA[Stop]]></category>
		<category><![CDATA[Stopping Nagios Core]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2017/04/20/starting-and-stopping-nagios-core/</guid>

					<description><![CDATA[<p>Starting Nagios Core Init Script: The easiest way to start the Nagios Core daemon is by using the init script [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/starting-and-stopping-nagios-core/">How to Start and Stop Nagios Core | Nagios Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div><img loading="lazy" decoding="async" class="size-full wp-image-2919 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/04/starting-and-stopping-nagio.png" alt="starting-and-stopping-nagios-core" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/04/starting-and-stopping-nagio.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/04/starting-and-stopping-nagio-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></div>
<div></div>
<div><strong>Starting Nagios Core</strong></div>
<div></div>
<div><strong>Init Script:</strong> The easiest way to start the Nagios Core daemon is by using the init script like so:</div>
<div>/etc/rc.d/init.d/nagios start</div>
<div></div>
<div><strong>Manually:</strong> You can start the Nagios daemon manually with the -d command line option like so:</div>
<div>/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg</div>
<div></div>
<div><strong>Restarting Nagios Core</strong></div>
<div></div>
<div>Restarting/reloading is nececessary when you modify your configuration files and want those changes to take effect.</div>
<div></div>
<div><strong>Init Script:</strong> The easiest way to restart the Nagios Core daemon is by using the init script like so:</div>
<div>/etc/rc.d/init.d/nagios reload</div>
<div></div>
<div><strong>Web Interface:</strong> You can restart the Nagios Core through the web interface by clicking the &#8220;Process Info&#8221; navigation link and selecting &#8220;Restart the Nagios process&#8221;:</div>
<div></div>
<div><strong>Manually:</strong> You can restart the Nagios Core process by sending it a SIGHUP signal like so:</div>
<div>kill -HUP &lt;nagios_pid&gt;</div>
<div></div>
<div><strong>Stopping Nagios Core</strong></div>
<div></div>
<div><strong>Init Script:</strong> The easiest way to stop the Nagios Core daemon is by using the init script like so:</div>
<div>/etc/rc.d/init.d/nagios stop</div>
<div></div>
<div><strong>Web Interface:</strong> You can stop the Nagios Core through the web interface by clicking the &#8220;Process Info&#8221; navigation link and selecting &#8220;Shutdown the Nagios process&#8221;:</div>
<div></div>
<div><strong>Manually:</strong> You can stop the Nagios Core process by sending it a SIGTERM signal like so:</div>
<div>kill &lt;nagios_pid&gt;</div>
<div></div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/starting-and-stopping-nagios-core/">How to Start and Stop Nagios Core | Nagios Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/starting-and-stopping-nagios-core/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>20 pmap Commands Examples in Linux / UNIX &#124; pmap Commands Tutorial</title>
		<link>https://www.scmgalaxy.com/tutorials/20-pmap-commands-examples-in-linux-unix/</link>
					<comments>https://www.scmgalaxy.com/tutorials/20-pmap-commands-examples-in-linux-unix/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 12 Dec 2015 12:04:03 +0000</pubDate>
				<category><![CDATA[Unix - Linux]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux pmap Command]]></category>
		<category><![CDATA[pmap]]></category>
		<category><![CDATA[pmap Command]]></category>
		<category><![CDATA[pmap Command Examples]]></category>
		<category><![CDATA[pmap command line]]></category>
		<category><![CDATA[pmap Commands Tutorials]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/12/12/20-pmap-commands-examples-in-linux-unix/</guid>

					<description><![CDATA[<p>You can find the memory used by a program (process) by looking into /proc directory or using standard command such [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/20-pmap-commands-examples-in-linux-unix/">20 pmap Commands Examples in Linux / UNIX | pmap Commands Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3162 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/pmap-commands-examples-in-l.png" alt="" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/pmap-commands-examples-in-l.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/pmap-commands-examples-in-l-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>You can find the memory used by a program (process) by looking into /proc directory or using standard command such as ps or top.</p>
</div>
<div>However, you must calculate all memory usage by hand i.e. add Shared Memory + mapped file + total virtual memory size of the process + Resident Set Size + non-swapped physical memory used by process. So how do you find the total memory used by a process or program under Linux? Use a tool called pmap. It reports the memory map of a process or processes.</div>
<div></div>
<div><strong>To display process mappings, type</strong></div>
<div>$ pmap pid</div>
<div>$ pmap 3724</div>
<div></div>
<div><strong>If you want to see the exented format<br />
</strong>The -x option can be used to provide information about the memory allocation and mapping types per mapping. The amount of resident, non-shared anonymous, and locked memory is shown for each mapping:</div>
<div></div>
<div>$ pmap -x 3526</div>
<div></div>
<div><strong>If you want to see the device format</strong></div>
<div>$ pmap -d 3526</div>
<div></div>
<div><strong>If you do not display some header/footer lines.</strong></div>
<div>$ pmap -q 3526</div>
<div></div>
<div></div>
<div><strong>GENERAL OPTIONS</strong></div>
<div>-x extended Show the extended format.</div>
<div>-d device Show the device format.</div>
<div>-q quiet Do not display some header/footer lines.</div>
<div>-V show version Displays version of program.</div>
<div></div>
<div><strong>Reference</strong></div>
<div><a href="http://linux.die.net/man/1/pmap" target="_blank" rel="noopener">http://linux.die.net/man/1/pmap</a></div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/20-pmap-commands-examples-in-linux-unix/">20 pmap Commands Examples in Linux / UNIX | pmap Commands Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/20-pmap-commands-examples-in-linux-unix/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>20 mpstat Commands Examples in Linux / UNIX &#124; mpstat Commands Tutorial</title>
		<link>https://www.scmgalaxy.com/tutorials/20-mpstat-command-examples-in-linux-unix/</link>
					<comments>https://www.scmgalaxy.com/tutorials/20-mpstat-command-examples-in-linux-unix/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 12 Dec 2015 12:01:34 +0000</pubDate>
				<category><![CDATA[Unix / Linux]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux mpstat Command]]></category>
		<category><![CDATA[mpstat]]></category>
		<category><![CDATA[mpstat Command]]></category>
		<category><![CDATA[mpstat Command Examples]]></category>
		<category><![CDATA[mpstat command line]]></category>
		<category><![CDATA[mpstat Commands Tutorials]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/12/12/20-mpstat-command-examples-in-linux-unix/</guid>

					<description><![CDATA[<p>If you are using SMP (Multiple CPU) system, use mpstat command to display the utilization of each CPU individually. mpstat [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/20-mpstat-command-examples-in-linux-unix/">20 mpstat Commands Examples in Linux / UNIX | mpstat Commands Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3166 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/mpstat-command-examples-in-.png" alt="" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/mpstat-command-examples-in-.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/mpstat-command-examples-in--300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></div>
<div>If you are using SMP (Multiple CPU) system, use mpstat command to display the utilization of each CPU individually.</div>
<div></div>
<div>mpstat Report processors related statistics which includes Collecting and displays performance statistics for all logical processors in the system.. This display CPU statistics of individual CPU (or) Core.</div>
<div></div>
<div><strong>How to install mpstat?</strong></div>
<div>1. Ensure you are logged in as &#8216;root&#8217;</div>
<div>&#8216;mpstat&#8217; and &#8216;vmstat&#8217; are apart of the &#8216;sysstat&#8217; package and should be installed by default</div>
<div>2. Verify installation :</div>
<div># rpm -qa | grep -i sysstat</div>
<div>3. Installation, if needed :</div>
<div># rpm -ivh &lt;name&gt;</div>
<div>4. If you have connectivity to RHN or a Satellite Server:</div>
<div># yum install sysstat</div>
<div>5. If you are using Ubantu:</div>
<div># apt-get install sysstat</div>
<div></div>
<div>
<p><strong>Usage:</strong></p>
</div>
<div><strong>1. Using mpstat command without any option, will display the Global Average Activities by All CPUs.</strong></div>
<div>$ mpstat</div>
<div></div>
<div><strong>2. Using mpstat with option &#8216;-P&#8217; (Indicate Processor Number) and &#8216;ALL&#8217;, will display statistics about all CPUs one by one starting from 0. 0 will the first one.</strong></div>
<div>$ mpstat -P ALL</div>
<div></div>
<div><strong>3. To display the statistics for N number of iterations after n seconds interval with average of each cpu use the following command.</strong></div>
<div>$ mpstat -P ALL 2 5</div>
<div></div>
<div><strong>4. The option &#8216;I&#8217; will print total number of interrupt statistics about per processor.</strong></div>
<div>$ mpstat -I</div>
<div></div>
<div><strong>5. Get all the above information in one command i.e. equivalent to &#8220;-u -I ALL -p ALL&#8221;.</strong></div>
<div>$ mpstat -A</div>
<div></div>
<div><strong>Reference</strong></div>
<div><a href="http://linuxcommand.org/man_pages/mpstat1.html" target="_blank" rel="noopener">http://linuxcommand.org/man_pages/mpstat1.html</a></div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/20-mpstat-command-examples-in-linux-unix/">20 mpstat Commands Examples in Linux / UNIX | mpstat Commands Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/20-mpstat-command-examples-in-linux-unix/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>20 iostat Commands Examples in Linux / UNIX &#124; iostat Commands Tutorial</title>
		<link>https://www.scmgalaxy.com/tutorials/20-iostat-commands-examples-in-linux-unix/</link>
					<comments>https://www.scmgalaxy.com/tutorials/20-iostat-commands-examples-in-linux-unix/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 12 Dec 2015 12:00:48 +0000</pubDate>
				<category><![CDATA[Unix / Linux]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[iostat]]></category>
		<category><![CDATA[iostat Command]]></category>
		<category><![CDATA[iostat Command Examples]]></category>
		<category><![CDATA[iostat command line]]></category>
		<category><![CDATA[iostat Commands Tutorials]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux iostat Command]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/12/12/20-iostat-commands-examples-in-linux-unix/</guid>

					<description><![CDATA[<p>iostat command is a command that used for monitoring system input/output device loading by observing the time the devices are [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/20-iostat-commands-examples-in-linux-unix/">20 iostat Commands Examples in Linux / UNIX | iostat Commands Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3169 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/iostat-commands-examples-in.png" alt="" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/iostat-commands-examples-in.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/iostat-commands-examples-in-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></div>
<div><strong>iostat</strong> command is a command that used for monitoring system input/output device loading by observing the time the devices are active in relation to their average transfer rates. The iostat create reports that can be used to change system configuration to better balance the input/output between physical disks.</div>
<div></div>
<div>You can use iostat command which report Central Processing Unit (CPU) statistics and input/output statistics for devices and partitions. It can be use to find out your system’s average CPU utilization since the last reboot.</div>
<div></div>
<div>Reports Central Processing Unit (CPU) statistics, asynchronous input/output (AIO) and input/output statistics for the entire system, adapters, TTY devices, disks CD-ROMs, tapes and file systems.</div>
<div></div>
<div><strong>Note:</strong></div>
<div>iostat reports CPU, disk I/O, and NFS statistics.</div>
<div>vmstat reports virtual memory statistics.</div>
<div>mpstat reports processors statictics.</div>
<div></div>
<div><strong>How to install iostat?</strong></div>
<div>1. Ensure you are logged in as &#8216;root&#8217;</div>
<div>&#8216;iostat&#8217; and &#8216;vmstat&#8217; are apart of the &#8216;sysstat&#8217; package and should be installed by default</div>
<div>2. Verify installation :</div>
<div># rpm -qa | grep -i sysstat</div>
<div>3. Installation, if needed :</div>
<div># rpm -ivh &lt;name&gt;</div>
<div>4. If you have connectivity to RHN or a Satellite Server:</div>
<div># yum install sysstat</div>
<div>5. If you are using Ubantu:</div>
<div># apt-get install sysstat</div>
<div></div>
<div><strong>1. iostat – Basic example, Iostat without any argument displays information about the CPU usage, and I/O statistics about all the partitions on the system as shown below.</strong></div>
<div>$ iostat</div>
<div></div>
<div><strong>2. iostat – Display only cpu statistics. iostat option -c, displays only the CPU usage statistics as shown below.</strong></div>
<div>$ iostat -c</div>
<div></div>
<div><strong>3. iostat – Display only disk I/O statistics. iostat option -d, displays only the disk I/O statistics as shown below.</strong></div>
<div>$ iostat -d</div>
<div></div>
<div><strong>4. iostat – Display only network statistics. iostat option -n, displays only the device and NFS statistics as shown below.</strong></div>
<div>$ iostat -n</div>
<div></div>
<div><strong>5. iostat – Display I/O data in MB/second. By default iostat, displays the device I/O statistics in Blocks. To change it to MB, use -m as shown below.</strong></div>
<div>
<p>$ iostat -m</p>
</div>
<div><strong>6. iostat – Display I/O statistics only for a device. By default iostat displays I/O data for all the disks available in the system. To view statistics for a specific device (For example, /dev/sda), use the option -p as shown below.</strong></div>
<div>$ iostat -p sda</div>
<div></div>
<div><strong>7. iostat – Display timestamp information, By default iostat displays only the current date. To display the current time, use the option -t as shown below.</strong></div>
<div>$ $ iostat -t</div>
<div></div>
<div><strong>8. iostat – Display Extended status, Use option -x, which will displays extended disk I/O statistics information as shown below.</strong></div>
<div>$ iostat -x</div>
<div></div>
<div><strong>9. To display extended information for a specific partition (For example, /dev/sda1), do the following.</strong></div>
<div>$ iostat -x sda1</div>
<div></div>
<div><strong>10. iostat – Execute Every x seconds (for y number of times). To execute iostat every 2 seconds (until you press Ctl-C), do the following.</strong></div>
<div>$ iostat 2</div>
<div></div>
<div><strong>11.To execute every 2 seconds for a total of 3 times, do the following.</strong></div>
<div>$ iostat 2 3</div>
<div></div>
<div><strong>12. iostat – Display LVM statistic (and version)</strong></div>
<div>$ iostat -N</div>
<div></div>
<div><strong>13. To display the version of iostat, use -V. This will really display the version information of sysstat, as iostat is part of sysstat package.</strong></div>
<div>$ iostat -V</div>
<div></div>
<div><strong>Reference</strong></div>
<div>iostat use these files to create reports&#8230;</div>
<div>/proc/stat which contains system statistics</div>
<div>/proc/partitions which contains disk statistics (for pre 2.5 kernel that have been patched)</div>
<div>/proc/diskstats contains disks statistics (for post 2.5 kernel)</div>
<div>/sys which contains statistics for block devices (post 2.5 kernel)</div>
<div></div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/20-iostat-commands-examples-in-linux-unix/">20 iostat Commands Examples in Linux / UNIX | iostat Commands Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/20-iostat-commands-examples-in-linux-unix/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>20 vmstat Commands Examples in Linux / UNIX &#124; vmstat Commands Tutorials</title>
		<link>https://www.scmgalaxy.com/tutorials/20-vmstat-commands-examples-in-linux-unix/</link>
					<comments>https://www.scmgalaxy.com/tutorials/20-vmstat-commands-examples-in-linux-unix/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 12 Dec 2015 11:51:04 +0000</pubDate>
				<category><![CDATA[Unix / Linux]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux vmstat Command]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[vmstat]]></category>
		<category><![CDATA[vmstat Command]]></category>
		<category><![CDATA[vmstat Command Examples]]></category>
		<category><![CDATA[vmstat command line]]></category>
		<category><![CDATA[vmstat Commands Tutorials]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/12/12/20-vmstat-commands-examples-in-linux-unix/</guid>

					<description><![CDATA[<p>vmstat &#8211; Report virtual memory statistics. vmstat is a tool that collects and reports data about your system’s memory, swap, [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/20-vmstat-commands-examples-in-linux-unix/">20 vmstat Commands Examples in Linux / UNIX | vmstat Commands Tutorials</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div><img loading="lazy" decoding="async" class="aligncenter wp-image-3171 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/20-vmstat-commands-examples.png" alt="vmstat-commands" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/20-vmstat-commands-examples.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/20-vmstat-commands-examples-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></div>
<div>vmstat &#8211; Report virtual memory statistics. vmstat is a tool that collects and reports data about your system’s memory, swap, and processor resource utilization in real time. It can be used to determine the root cause of performance and issues related to memory use.</div>
<div></div>
<div>vmstat reports information about processes, memory, paging, block IO, traps, and cpu activity. The first report produced gives averages since the last reboot. Additional reports give information on a sampling period of length delay. The process and memory reports are instantaneous in either case.</div>
<div></div>
<div><strong>Note:</strong></div>
<div>iostat reports CPU, disk I/O, and NFS statistics.</div>
<div>vmstat reports virtual memory statistics.</div>
<div>mpstat reports processors statictics.</div>
<div></div>
<div><strong>How to install vmstat?</strong></div>
<div>1. Ensure you are logged in as &#8216;root&#8217;</div>
<div>&#8216;iostat&#8217; and &#8216;vmstat&#8217; are apart of the &#8216;sysstat&#8217; package and should be installed by default</div>
<div>2. Verify installation :</div>
<div># rpm -qa | grep -i sysstat</div>
<div>3. Installation, if needed :</div>
<div># rpm -ivh &lt;name&gt;</div>
<div>4. If you have connectivity to RHN or a Satellite Server:</div>
<div># yum install sysstat</div>
<div>5. If you are using Ubantu:</div>
<div># apt-get install sysstat</div>
<div></div>
<div><strong>Example</strong></div>
<div><strong>1. The significant of the columns are explained in man page of vmstat in details. Most important fields are free under memory and si, so under swap column.</strong></div>
<div></div>
<div>[root@tecmint ~]# vmstat -a</div>
<div></div>
<div>procs &#8212;&#8212;&#8212;&#8211;memory&#8212;&#8212;&#8212;- &#8212;swap&#8211; &#8212;&#8211;io&#8212;- &#8211;system&#8211; &#8212;&#8211;cpu&#8212;&#8211;</div>
<div> r  b   swpd   free  inact active   si   so    bi    bo   in   cs us sy id wa st</div>
<div> 1  0      0 810420  97380  70628    0    0   115     4   89   79  1  6 90  3  0</div>
<div></div>
<div>Free – Amount of free/idle memory spaces.</div>
<div>si – Swaped in every second from disk in Kilo Bytes.</div>
<div>so – Swaped out every second to disk in Kilo Bytes.</div>
<div></div>
<div><strong>2. Execute vmstat ‘X’ seconds and (‘N’number of times). With this command, vmstat execute every two seconds and stop automatically after executing six intervals.</strong></div>
<div># vmstat 2 6</div>
<div></div>
<div><strong>3. Vmstat with timestamps. vmstat command with -t parameter shows timestamps with every line printed as shown below.</strong></div>
<div># vmstat -t 1 5</div>
<div></div>
<div><strong>4. Statistics of Various Counter, vmstat command and -s switch displays summary of various event counters and memory statistics.</strong></div>
<div>$ vmstat -s</div>
<div></div>
<div><strong>5. Disks Statistics, vmstat with -d option display all disks statistics.</strong></div>
<div>$ vmstat -d</div>
<div></div>
<div><strong>6. Display Statistics in Megabytes, The vmstat displays in Megabytes with parameters -S and M(Uppercase &amp; megabytes). By default vmstat displays statistics in kilobytes.</strong></div>
<div># vmstat -S M 1 5</div>
<div></div>
<div><strong>7. vmstat – Display number of forks since last boot, This displays all the fork system calls made by the system since the last boot. This displays all fork, vfork, and clone system call counts.</strong></div>
<div># vmstat -f</div>
<div></div>
<div><strong>8. vmstat – Display slab info, Use option -m, to display the slab info as shown below.</strong></div>
<div># vmstat -m</div>
<div></div>
<div><strong>Reference</strong></div>
<div>The output of vmstat is displayed in a number of columns. The following sections provide brief overviews of the data reported in each column.</div>
<div></div>
<div><strong>Procs</strong></div>
<div>The procs data reports the number of processing jobs waiting to run and allows you to determine if there are processes “blocking” your system from running smoothly.</div>
<div></div>
<div>The r column displays the total number of processes waiting for access to the processor. The b column displays the total number of processes in a “sleep” state.</div>
<div></div>
<div>These values are often 0.</div>
<div></div>
<div>r: The number of processes waiting for run time.</div>
<div>b: The number of processes in uninterruptible sleep.</div>
<div></div>
<div><strong>Memory</strong></div>
<div>The information displayed in the memory section provides the same data about memory usage as the command free -m.</div>
<div></div>
<div>The swapd or “swapped” column reports how much memory has been swapped out to a swap file or disk. The free column reports the amount of unallocated memory. The buff or “buffers” column reports the amount of allocated memory in use. The cache column reports the amount of allocated memory that could be swapped to disk or unallocated if the resources are needed for another task.</div>
<div></div>
<div>swpd: the amount of virtual memory used.</div>
<div>free: the amount of idle memory.</div>
<div>buff: the amount of memory used as buffers.</div>
<div>cache: the amount of memory used as cache.</div>
<div>inact: the amount of inactive memory. (-a option)</div>
<div>active: the amount of active memory. (-a option)</div>
<div></div>
<div><strong>Swap</strong></div>
<div>The swap section reports the rate that memory is sent to or retrieved from the swap system. By reporting “swapping” separately from total disk activity, vmstat allows you to determine how much disk activity is related to the swap system.</div>
<div></div>
<div>The si column reports the amount of memory that is moved from swap to “real” memory per second. The so column reports the amount of memory that is moved to swap from “real” memory per second.</div>
<div></div>
<div>si: Amount of memory swapped in from disk (/s).</div>
<div>so: Amount of memory swapped to disk (/s).</div>
<div></div>
<div><strong>I/O</strong></div>
<div>The io section reports the amount of input and output activity per second in terms of blocks read and blocks written.</div>
<div></div>
<div>The bi column reports the number of blocks received, or “blocks in”, from a disk per second. The bo column reports the number of blocks sent, or “blocks out”, to a disk per second.</div>
<div></div>
<div>bi: Blocks received from a block device (blocks/s).</div>
<div>bo: Blocks sent to a block device (blocks/s).</div>
<div></div>
<div><strong>System</strong></div>
<div>The system section reports data that reflects the number of system operations per second.</div>
<div></div>
<div>The in column reports the number of system interrupts per second, including interrupts from system clock. The cs column reports the number of context switches that the system makes in order to process all tasks.</div>
<div></div>
<div>in: The number of interrupts per second, including the clock.</div>
<div>cs: The number of context switches per second.</div>
<div></div>
<div><strong>CPU</strong></div>
<div>The cpu section reports on the use of the system’s CPU resources. The columns in this section always add to 100 and reflect “percentage of available time”.</div>
<div></div>
<div>The us column reports the amount of time that the processor spends on userland tasks, or all non-kernel processes. The sy column reports the amount of time that the processor spends on kernel related tasks. The id column reports the amount of time that the processor spends idle. The wa column reports the amount of time that the processor spends waiting for IO operations to complete before being able to continue processing tasks.</div>
<div></div>
<div>These are percentages of total CPU time.</div>
<div>us: Time spent running non-kernel code. (user time, including nice time)</div>
<div>sy: Time spent running kernel code. (system time)</div>
<div>id: Time spent idle. Prior to Linux 2.5.41, this includes IO-wait time.</div>
<div>wa: Time spent waiting for IO. Prior to Linux 2.5.41, included in idle.</div>
<div>st: Time stolen from a virtual machine. Prior to Linux 2.6.11, unknown.</div>
<div>Field Description For Disk Mode</div>
<div></div>
<div>Reads</div>
<div></div>
<div>total: Total reads completed successfully</div>
<div>merged: grouped reads (resulting in one I/O)</div>
<div>sectors: Sectors read successfully</div>
<div>ms: milliseconds spent reading</div>
<div>Writes</div>
<div></div>
<div>total: Total writes completed successfully</div>
<div>merged: grouped writes (resulting in one I/O)</div>
<div>sectors: Sectors written successfully</div>
<div>ms: milliseconds spent writing</div>
<div><strong>IO</strong></div>
<div></div>
<div>cur: I/O in progress</div>
<div>s: seconds spent for I/O</div>
<div>Field Description For Disk Partition Mode</div>
<div></div>
<div>reads: Total number of reads issued to this partition</div>
<div>read sectors: Total read sectors for partition</div>
<div>writes : Total number of writes issued to this partition</div>
<div>requested writes: Total number of write requests made for partition</div>
<div>Field Description For Slab Mode</div>
<div></div>
<div>cache: Cache name</div>
<div>num: Number of currently active objects</div>
<div>total: Total number of available objects</div>
<div>size: Size of each object</div>
<div>pages: Number of pages with at least one active object</div>
<div>totpages: Total number of allocated pages</div>
<div>pslab: Number of pages per slab</div>
<div></div>
<div><strong>Files</strong></div>
<div>/proc/meminfo</div>
<div>/proc/stat</div>
<div>/proc/*/stat</div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/20-vmstat-commands-examples-in-linux-unix/">20 vmstat Commands Examples in Linux / UNIX | vmstat Commands Tutorials</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/20-vmstat-commands-examples-in-linux-unix/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>20 Xargs Commands Examples in Linux / UNIX &#124; Xargs Commands Tutorials</title>
		<link>https://www.scmgalaxy.com/tutorials/20-xargs-commands-examples-in-linux-unix/</link>
					<comments>https://www.scmgalaxy.com/tutorials/20-xargs-commands-examples-in-linux-unix/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 12 Dec 2015 11:45:14 +0000</pubDate>
				<category><![CDATA[Unix / Linux]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Xargs Command]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[Xargs]]></category>
		<category><![CDATA[Xargs Command]]></category>
		<category><![CDATA[Xargs Command Examples]]></category>
		<category><![CDATA[Xargs command line]]></category>
		<category><![CDATA[Xargs Commands Tutorials]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/12/12/20-xargs-commands-examples-in-linux-unix/</guid>

					<description><![CDATA[<p>Under Development The xargs command is extremely useful when we combine it with other commands.This tutorials explains the usage of [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/20-xargs-commands-examples-in-linux-unix/">20 Xargs Commands Examples in Linux / UNIX | Xargs Commands Tutorials</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="aligncenter wp-image-3174 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/xargs-commands-examples-in-.png" alt="xargs-commands" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/xargs-commands-examples-in-.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/xargs-commands-examples-in--300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>Under Development</p>
<div></div>
<div></div>
<div>The xargs command is extremely useful when we combine it with other commands.This tutorials explains the usage of xargs command using few simple examples.</div>
<div></div>
<div>1. Xargs Basic Example</div>
<div>The xargs command (by default) expects the input from stdin, and executes /bin/echo command over the input. When you execute xargs without any argument, or when you execute it without combining with any other commands. you get Welcome message</div>
<div></div>
<div>&gt; xargs</div>
<div>Hi,</div>
<div>Welcome to TGS.Hi, Welcome to TGS.</div>
<div>After you type something, press ctrl+d, which will echo the string back to you on stdout as shown below.</div>
<div></div>
<div>2. Specify Delimiter Using -d option</div>
<div>Delimiters can be applied so that each character in the input is taken literally using -d option in xargs.In the following example, when you use the -d\n, it will preserve newline delimiter in the output, and display the output exactly as it was typed.</div>
<div></div>
<div>&gt; xargs -d\n</div>
<div>Hi,</div>
<div>Welcome to TGS.</div>
<div></div>
<div>3. Limit Output Per Line Using -n Option</div>
<div></div>
<div>By default as explained earlier, xargs displays whatever comes to its stdin as shown below.</div>
<div></div>
<div>&gt; echo a b c d e f| xargs</div>
<div>a b c d e f</div>
<div></div>
<div>&gt; echo a b c d e f| xargs -n 3</div>
<div>a b c</div>
<div>d e f</div>
<div></div>
<div>In the following example, we used -n 3, which will display only 3 items per line in the xargs output.</div>
<div></div>
<div>4. Delete Files that has White-space in the Filename</div>
<div>&gt; find . -name &#8220;*.c&#8221; -print0 | xargs -0 rm -rf</div>
<div></div>
<div></div>
<div>Example</div>
<div># fild /usr/preserve –mtime +30 –exec rm –f {} \;</div>
<div>is equivalent to&#8230;.</div>
<div># find /usr/preserve –mtime +30 –print | xargs rm –f</div>
<div># find /usr/preserve –size +1024 –print | xargs –n20 rm –f</div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/20-xargs-commands-examples-in-linux-unix/">20 Xargs Commands Examples in Linux / UNIX | Xargs Commands Tutorials</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/20-xargs-commands-examples-in-linux-unix/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>20 Mount and Unmount Filesystem / Partition commands in Linux / UNIX</title>
		<link>https://www.scmgalaxy.com/tutorials/20-mount-and-unmount-filesystem-partition-commands-in-linux-unix/</link>
					<comments>https://www.scmgalaxy.com/tutorials/20-mount-and-unmount-filesystem-partition-commands-in-linux-unix/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 12 Dec 2015 11:32:45 +0000</pubDate>
				<category><![CDATA[Unix / Linux]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Filesystem]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux/UNIX]]></category>
		<category><![CDATA[Mount]]></category>
		<category><![CDATA[Mount command]]></category>
		<category><![CDATA[Mount Filesystem]]></category>
		<category><![CDATA[Partition]]></category>
		<category><![CDATA[Partition commands]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[Unmount]]></category>
		<category><![CDATA[Unmount Command]]></category>
		<category><![CDATA[Unmount Filesystem]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/12/12/20-mount-and-unmount-filesystem-partition-commands-in-linux-unix/</guid>

					<description><![CDATA[<p>Once you create a partition, you should use mount command to mount the partition into a mount point (a directory), [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/20-mount-and-unmount-filesystem-partition-commands-in-linux-unix/">20 Mount and Unmount Filesystem / Partition commands in Linux / UNIX</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div><img loading="lazy" decoding="async" class="aligncenter wp-image-3177 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/mount-and-unmount-filesyste.png" alt="partition-commands-in-linux-unix" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/mount-and-unmount-filesyste.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/mount-and-unmount-filesyste-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></div>
<div>Once you create a partition, you should use mount command to mount the partition into a mount point (a directory), to start using the filesystem.</div>
<div></div>
<div>You need to add the -t FILESYSTEMTYPE argument to the command, replacing FILESYSTEMTYPE with your filesystem type.valid filesystem types are:</div>
<div></div>
<div>auto &#8211; this is a special one. It will try to guess the fs type when you use this.</div>
<div>ext4 &#8211; this is probably the most common Linux fs type of the last few years</div>
<div>ext3 &#8211; this is the most common Linux fs type from a couple years back</div>
<div>ntfs &#8211; this is the most common Windows fs type or larger external hard drives</div>
<div>vfat &#8211; this is the most common fs type used for smaller external hard drives</div>
<div></div>
<div><strong>The general mount command syntax to mount a device:</strong></div>
<div>&gt; mount -t type device destination_dir</div>
<div></div>
<div><strong>Mount a CD-ROM</strong></div>
<div>&gt; mount -t iso9660 -o ro /dev/cdrom /mnt</div>
<div></div>
<div>In the above example, the option “-o ro” indicates that the cdrom should be mounted with read-only access. Also, make sure that the destination directory (in the above example, /mnt) exist before you execute the mount command.</div>
<div></div>
<div><strong>View All Mounts</strong></div>
<div>&gt; mount</div>
<div></div>
<div>You can also use df command to view all the mount points.</div>
<div></div>
<div><strong>Mount all the filesystem mentioned in /etc/fstab</strong></div>
<div>The filesystems listed in /etc/fstab gets mounted during booting process. After booting, system administrator may unmount some of the partitions for various reasons. If you want all the filesystems to be mounted as specified in /etc/fstab, use -a option with mount as shown below:</div>
<div></div>
<div>&gt; cat /etc/fstab</div>
<div>&gt; mount -a</div>
<div></div>
<div><strong>Access contents from new mount point</strong></div>
<div>&gt; mount -M /mydata /mnt/</div>
<div></div>
<div>Mount an iso image into a directory</div>
<div>&gt; mount -t iso9660 -o loop pdf_collections.iso /mnt</div>
<div></div>
<div><strong>Unmount</strong></div>
<div>
<p>The same -a option can be used with umount to unmount all the filesystems mentioned in /etc/mtab</p>
<p><strong>Example</strong></p>
<div># mount –t ext2 /dev/hda3 /oracle A empty directory must be made before mounting in linux</div>
<div># unmounts /oracle</div>
<div># unmounts /dev/hda3   Linux</div>
<div># mount –a   This run when system boot</div>
<div># unmont –a     This runs when shutdown sequence runs</div>
<div># mount –t vfat /dev/hda1 /windows     Windows Partition &#8211; Linux</div>
<div></div>
<div># mount configuration file &#8211; /etc/fstab</div>
<div># default file system for mount in Linux is ext2</div>
</div>
<div></div>
<div><strong>Reference</strong></div>
<div><a href="http://www.thegeekstuff.com/2013/01/mount-umount-examples/" target="_blank" rel="noopener">http://www.thegeekstuff.com/2013/01/mount-umount-examples/</a></div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/20-mount-and-unmount-filesystem-partition-commands-in-linux-unix/">20 Mount and Unmount Filesystem / Partition commands in Linux / UNIX</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/20-mount-and-unmount-filesystem-partition-commands-in-linux-unix/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to upload the artifacts in Sonatype Nexus &#124; Tutorial</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-upload-the-artifacts-in-sonatype-nexus/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-upload-the-artifacts-in-sonatype-nexus/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 19 Oct 2015 19:45:06 +0000</pubDate>
				<category><![CDATA[SonaType Nexus]]></category>
		<category><![CDATA[artifacts]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[Sonatype Nexus]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[upload]]></category>
		<category><![CDATA[Upload Artifacts]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/10/19/how-to-upload-the-artifacts-in-sonatype-nexus/</guid>

					<description><![CDATA[<p>  1. Upload Artifacts using NEXUS GUI https://books.sonatype.com/nexus-book/reference/using-sect-uploading.html 2. Upload Artifacts using Maven pom.xml using &#8220;mvn deploy&#8221; Update your pom.xml [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-upload-the-artifacts-in-sonatype-nexus/">How to upload the artifacts in Sonatype Nexus | Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div> <img loading="lazy" decoding="async" class="alignnone size-full wp-image-3075 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/10/how-to-upload-the-artifacts.png" alt="artifacts-in-sonatype-nexus" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/10/how-to-upload-the-artifacts.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/10/how-to-upload-the-artifacts-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></div>
<div></div>
<div><strong>1. Upload Artifacts using NEXUS GUI</strong></div>
<div>https://books.sonatype.com/nexus-book/reference/using-sect-uploading.html</div>
<div></div>
<div><strong>2. Upload Artifacts using Maven pom.xml using &#8220;mvn deploy&#8221;</strong></div>
<div><strong>Update your pom.xml with following&#8230;</strong></div>
<div></div>
<div>&lt;distributionManagement&gt;</div>
<div>  &lt;repository&gt;</div>
<div>  &lt;id&gt;deployment&lt;/id&gt;</div>
<div>  &lt;name&gt;Internal Releases&lt;/name&gt;</div>
<div>  &lt;url&gt;http://uvo1ppw4qmimuo3p1tg.vm.cld.sr:8081/nexus/content/repositories/releases/&lt;/url&gt;</div>
<div>  &lt;/repository&gt;</div>
<div></div>
<div>  &lt;snapshotRepository&gt;</div>
<div>&lt;id&gt;deployment&lt;/id&gt;</div>
<div>&lt;name&gt;Internal Releases&lt;/name&gt;</div>
<div>&lt;url&gt;http://uvo1ppw4qmimuo3p1tg.vm.cld.sr:8081/nexus/content/repositories/snapshots/&lt;/url&gt;</div>
<div>&lt;/snapshotRepository&gt;</div>
<div>&lt;/distributionManagement&gt;</div>
<div></div>
<div><strong>Update your setting.xml with following</strong></div>
<div>&lt;servers&gt;</div>
<div>&lt;server&gt;</div>
<div>&lt;id&gt;deployment&lt;/id&gt;</div>
<div>&lt;username&gt;deployment&lt;/username&gt;</div>
<div>&lt;password&gt;deployment123&lt;/password&gt;</div>
<div>&lt;/server&gt;</div>
<div>&lt;/servers&gt;</div>
<div></div>
<div><strong>3. Upload Artifacts using Linux Commands</strong></div>
<div></div>
<div></div>
<div>&gt; curl -v -u admin:admin123 &#8211;upload-file pom.xml http://localhost:8081/nexus/content/repositories/releases/org/foo/1.0/foo-1.0.pom</div>
<div></div>
<div>&gt; curl -v \</div>
<div>-F &#8220;r=releases&#8221; \</div>
<div>-F &#8220;g=com.acme.widgets&#8221; \</div>
<div>-F &#8220;a=widget&#8221; \</div>
<div>-F &#8220;v=0.1-1&#8221; \</div>
<div>-F &#8220;p=tar.gz&#8221; \</div>
<div>-F &#8220;file=@./widget-0.1-1.tar.gz&#8221; \</div>
<div>-u myuser:mypassword \</div>
<div>http://localhost:8081/nexus/service/local/artifact/maven/content</div>
<div></div>
<div><strong>4. Upload Artifacts using mvn commands</strong></div>
<div></div>
<div>Upload Artifacts using Maven &#8220;deploy-file&#8221; Deployment</div>
<div></div>
<div><strong>Example without a pom file:</strong></div>
<div></div>
<div>mvn deploy:deploy-file -DgroupId=com.somecompany -DartifactId=project -Dversion=1.0.0 -DgeneratePom=true -Dpackaging=jar -DrepositoryId=nexus -Durl=http://localhost:8081/nexus/content/repositories/releases -Dfile=target/project-1.0.0.jar</div>
<div></div>
<div>With a pom file:</div>
<div>mvn deploy:deploy-file -DgroupId=com.somecompany -DartifactId=project -Dversion=1.0.0 -DgeneratePom=false -Dpackaging=jar -DrepositoryId=nexus -Durl=http://localhost:8081/nexus/content/repositories/releases -DpomFile=pom.xml -Dfile=target/project-1.0.0.jar</div>
<div></div>
<div><strong>With a Zip file:</strong></div>
<div></div>
<div>&gt; mvn deploy:deploy-file -DgroupId=com.fanniemae.securitiesprocessor -DartifactId=sp_adapter_mbs -Dversion=0.0.1-SNAPSHOT -Dpackaging=zip -Dfile=sp_adapter.zip -DrepositoryId=deployment -Durl=http://nexus-server:8081/nexus/content/repositories/snapshots/</div>
<div></div>
<div></div>
<div>Note: You need to update your setting.xml with following. where as The &#8220;repositoryId&#8221; parameter is not a Nexus repository ID, it is the ID of a server section in your settings.xml file which has then credentials needed for deployment.</div>
<div>&lt;servers&gt;</div>
<div>&lt;server&gt;</div>
<div>&lt;id&gt;nexus&lt;/id&gt;</div>
<div>&lt;username&gt;deployment&lt;/username&gt;</div>
<div>&lt;password&gt;deployment123&lt;/password&gt;</div>
<div>&lt;/server&gt;</div>
<div>&lt;/servers&gt;</div>
<div></div>
<div></div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-upload-the-artifacts-in-sonatype-nexus/">How to upload the artifacts in Sonatype Nexus | Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-upload-the-artifacts-in-sonatype-nexus/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>gsh &#8211; Run linux commands on many other linux server at once</title>
		<link>https://www.scmgalaxy.com/tutorials/gsh-run-linux-commands-on-many-other-linux-server-at-once/</link>
					<comments>https://www.scmgalaxy.com/tutorials/gsh-run-linux-commands-on-many-other-linux-server-at-once/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 12 Aug 2015 14:42:16 +0000</pubDate>
				<category><![CDATA[Unix / Linux]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Execute]]></category>
		<category><![CDATA[gsh]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux command]]></category>
		<category><![CDATA[Linux server]]></category>
		<category><![CDATA[Multiple linux server]]></category>
		<category><![CDATA[Multiple servers]]></category>
		<category><![CDATA[Once]]></category>
		<category><![CDATA[Run]]></category>
		<category><![CDATA[server]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/08/12/gsh-run-linux-commands-on-many-other-linux-server-at-once/</guid>

					<description><![CDATA[<p>gsh &#8211; Run linux commands on many other linux server at once Group Shell (also called gsh) is a remote [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/gsh-run-linux-commands-on-many-other-linux-server-at-once/">gsh &#8211; Run linux commands on many other linux server at once</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3453 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/08/gsh-run-linux-commands.png" alt="gsh-run-linux-commands" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/08/gsh-run-linux-commands.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/08/gsh-run-linux-commands-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>gsh &#8211; Run linux commands on many other linux server at once</strong></p>
<p>Group Shell (also called gsh) is a remote shell multiplexor. It lets you control many remote shells at once in a single shell. Unlike other commands dispatchers, it is interactive, so shells spawned on the remote hosts are persistent.</p>
<p>GSH is a pluggable version of DSH (Distributed Shell) written in Python. Both a module and a command-line tool for running a shell command over multiple machines are included. GSH can be extended by adding new host loaders as well as hooking into various stages of the runtime.</p>
<p>It requires only a SSH server on the remote hosts, or some other way to open a remote shell.<br />
gsh allows you to run commands on multiple hosts by adding tags to the gsh command.</p>
<p>e.g &gt; gsh tag &#8220;remote command&#8221;</p>
<p><strong>Important things to remember:</strong><br />
/etc/ghosts contains a list of all the servers and tags. gsh is a lot more fun once you’ve set up ssh keys to your servers</p>
<p><strong>gsh [OPTIONS] SYSTEMS CMD&#8230;</strong><br />
SYSTEMS is a combination of ghost macros. See ghosts(1).</p>
<p>CMD is the command to run<br />
-h, &#8211;help Display full help<br />
-d, &#8211;debug Turn on exeuction debugging reports<br />
-h, &#8211;no-host-prefix Does not prefix output lines with the host name<br />
-s, &#8211;show-commands Displays the command before the output report<br />
-n, &#8211;open-stdin Leaves stdin open when running (scary!)<br />
-l, &#8211;user USER SSH&#8217;s to the host as user USER<br />
-r, &#8211;run-locally Run commands locally (replaces $host with host)<br />
-o, &#8211;self-remote Run locally instead of over SSH for local host<br />
-V, &#8211;version Report the version and exit</p>
<p>You set up a /etc/ghosts file containing your servers in groups such as web, db, RHEL4, x86_64, or whatever (man ghosts) then you use that group when you call gsh.</p>
<p><strong>How to run the gsh?</strong><br />
&gt; gsh linux &#8220;cat /etc/redhat-release; uname -r&#8221;</p>
<p>You can also combine or split ghost groups, using cpanel+vps or web-RHEL4, for example.</p>
<pre>Here’s an example /etc/ghosts file:</pre>
<pre># Machines
 #
 # hostname OS-Version Hardware OS cp security
 linuxbrigade.com debian6 baremetal linux plesk iptables
 linuxbrigade.com centos5 vps linux cpanel csfcluster
 linuxbrigade.com debian7 baremetal linux plesk iptables
 linuxbrigade.com centos6 vps linux cpanel csfcluster
 linuxbrigade.com centos6 vps linux cpanel csfcluster
 linuxbrigade.com centos6 vps linux nocp denyhosts
 linuxbrigade.com debian6 baremetal linux plesk iptables
 linuxbrigade.com centos6 baremetal linux cpanel csf
 linuxbrigade.com centos5 vps linux cpanel csf</pre>
<p><strong>Reference url </strong></p>
<p><a href="http://www.linuxbrigade.com/run-the-same-command-on-many-linux-servers-at-once/" target="_blank" rel="noopener">http://www.linuxbrigade.com/run-the-same-command-on-many-linux-servers-at-once/</a><br />
<a href="http://linux.die.net/man/1/gsh" target="_blank" rel="noopener">http://linux.die.net/man/1/gsh</a><br />
<a href="https://github.com/gmjosack/gsh" target="_blank" rel="noopener">https://github.com/gmjosack/gsh</a><br />
<a href="http://outflux.net/unix/software/gsh/" target="_blank" rel="noopener">http://outflux.net/unix/software/gsh/</a><br />
<a href="http://outflux.net/unix/software/gsh/gsh.html" target="_blank" rel="noopener">http://outflux.net/unix/software/gsh/gsh.html</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/gsh-run-linux-commands-on-many-other-linux-server-at-once/">gsh &#8211; Run linux commands on many other linux server at once</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/gsh-run-linux-commands-on-many-other-linux-server-at-once/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Linux Commands for Administrator &#124; Linux Admin Commands Reference</title>
		<link>https://www.scmgalaxy.com/tutorials/linux-commands-for-administrator/</link>
					<comments>https://www.scmgalaxy.com/tutorials/linux-commands-for-administrator/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 21 Jul 2014 00:00:00 +0000</pubDate>
				<category><![CDATA[Unix - Linux]]></category>
		<category><![CDATA[Admin Linux Commands]]></category>
		<category><![CDATA[Administrator]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Admin Commands Reference]]></category>
		<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[Linux Commands for Administrators]]></category>
		<category><![CDATA[Linux Commands for Administrators Guide]]></category>
		<category><![CDATA[Linux Commands for Administrators Reference]]></category>
		<category><![CDATA[Linux Commands for Administrators Tutorials]]></category>
		<category><![CDATA[Linux Commands Guide]]></category>
		<category><![CDATA[Linux Commands Reference]]></category>
		<category><![CDATA[Linux Commands Tutorials]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2014/07/21/linux-commands-for-administrator/</guid>

					<description><![CDATA[<p>su: Acquiring Superuser Status # su  :- Acquire  Superuser after entering password but home directory does not change # su [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/linux-commands-for-administrator/">Linux Commands for Administrator | Linux Admin Commands Reference</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3667 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/07/linux-commands-administrato.png" alt="linux-commands-administrators" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/07/linux-commands-administrato.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/07/linux-commands-administrato-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>su: Acquiring Superuser Status</strong><br />
# su  :- Acquire  Superuser after entering password but home directory does not change<br />
# su – l :– Acquire Superuser access after password but home  directory change to ROOT<br />
# su  &#8211; henry : &#8211; To  Login and Recreate a user environment<br />
# sudo -s root -c &#8220;/bin/bash -l&#8221;</p>
<p><strong>passwd – Changing any Password</strong><br />
# passwd henry<br />
stat &lt;fileName&gt;</p>
<p><strong>ulimit – Setting Limits on file size</strong><br />
ulimit command impost a restriction on the maximum size of a file that a user is permitted to create<br />
# ulimit 20971510                             This is often placed in /etc/profile. Measured in 512 byte blocks</p>
<p><strong>umask – Please refer user manual</strong></p>
<p><strong>Source</strong><br />
The source command in shell is used to execute commands from a file in the current shell. This is useful to load function or variables stored in another file.<br />
# source filename<br />
# source /path/to/file</p>
<p><strong>locate</strong></p>
<pre><strong>To locate any files in system. This works based on </strong>updatedb.</pre>
<pre># locate</pre>
<pre># updatedb     Run as a root.File location is /var/lib/mlocate/mlocate.db</pre>
<p><strong>which </strong><br />
shows the full path of (shell) commands</p>
<p><strong>od</strong><br />
od command dumps a file in octal, decimal, and other formats.</p>
<pre># od -c special-chars.txt</pre>
<p># od -bc special-chars.txt</p>
<p><strong>chkconfig</strong><br />
chkconfig command is used to setup, view, or change services that are configured to start automatically during the system startup.</p>
<p>The –list option displays all the services with the current startup configuration status.<br />
# chkconfig &#8211;list<br />
To view only the services that are configured to be started during system startup, do the following. Please note that this assumes that your system startup level is 3<br />
# chkconfig &#8211;list | grep 3:on<br />
To display the current settings for a selected service only, use chkconfig &#8211;list followed by the name of the service:<br />
# chkconfig &#8211;list service_name</p>
<p>To enable a service in runlevels 2, 3, 4, and 5, type the following at a shell prompt as root.<br />
# chkconfig service_name on<br />
To disable a service in runlevels 2, 3, 4, and 5, type the following at a shell prompt as root.<br />
# chkconfig service_name off</p>
<p># chkconfig network &#8211;level 3 &amp;&amp; echo &#8220;Network service is configured for level 3&#8221;<br />
# chkconfig network &#8211;level 1 &amp;&amp; echo &#8220;Network service is configured for level 1&#8221;</p>
<p>To view the startup configuration of a particular service, grep the output of ‘chkconfig –list’ for that service.<br />
# chkconfig &#8211;list | grep network</p>
<p>Add a new Service to the Startup<br />
# chkconfig &#8211;add iptables</p>
<p>To remove it from the startup list, use the –del option as shown below.<br />
# chkconfig &#8211;del ip6tables</p>
<p><strong>How to install services?</strong></p>
<pre><strong>Step 1. Copy the script into </strong>/etc/init.d/ such as /etc/init.d/httpd</pre>
<pre>Step 2. chkconfig --add httpd</pre>
<p>http://bitnami.org/article/how-to-install-services-on-linux</p>
<p><strong>service</strong><br />
# service network restart<br />
OR<br />
# /etc/init.d/network restart</p>
<p>To start Linux network service:<br />
# service network start</p>
<p>To stop Linux network service:<br />
# service network stop</p>
<p><strong>date – Setting the system Date</strong><br />
# date MMDDhhmm</p>
<p><strong>groupadd</strong><br />
# groupadd –g 241 dba               The command place entry in /etc/group which can also insert manually(dba:x:241). 241 is GID of dba</p>
<p><strong>useradd</strong><br />
# useradd –u 210 –g dba –c “The RDBMS” –d /home/oracle –s /bin/bash –m username</p>
<p><strong>usermod</strong><br />
# usermod –s /bin/csh username</p>
<p><strong>userdel</strong><br />
# userdel username</p>
<p><strong>shutdown</strong><br />
# shutdown 17:30                         Shutdown at 17:30<br />
# shutdown –r now                     Shutdown immediately and reboot<br />
# shutown –r 17:30                      Shutdown immediately and reboot at 17:30<br />
# shutown –h now                       Shutdown immediately and halt<br />
# shutown –h 17:30                     Shutdown at 17:30<br />
# shutdown –c                               Cancel the shutdown<br />
Reboot / Poweroff / halt</p>
<p><strong>df</strong><br />
The df (disk free) command lets you see if file systems are full.</p>
<ul>
<li>To see how much free space is in all file systems (including mounted ones), use df</li>
<li>To see how much free space is in all file systems with names containing &#8220;dev&#8221;, use df | grep dev</li>
<li>To see how much free space is in your home file system, use df /home</li>
<li>To see how much free space is in the file system &#8220;tmp&#8221;, use df /tmp</li>
<li>To see if there is enough free space on the machine, check the output from the following</li>
</ul>
<p># df /usr,<br />
# df /var<br />
# df -k /tmp /home                                          -k Reports in units of KB<br />
<strong># </strong>df –h / /usr                                                       -h reports in MB, GB</p>
<p><strong>du -Disk usage</strong><br />
# du  /home/sales/tml<br />
# du –s /home/*                                               -s options for summary disk usage information for tml directory<br />
# du –sh /home                                                 -h options for reports in MB , GB<br />
# find /home –size +1024 –print                                     Files above 1MB<br />
# find /home –size +1024 –size -4096 – print             Files above 1Mb and below 4MB</p>
<h3><a title="mount / unmount" href="scm/operating-systems/unix-linux/mount-and-unmount-filesystem-partition-in-linux.html" target="_blank" rel="noopener">mount / unmount</a></h3>
<p><strong>Using file for incremental Backup</strong><br />
# tar –cvf /dev/rct0 `find /home –type f –newer .last_time –print`<br />
# touch .last_time<br />
# tar –cvf /dev/rct0 /home &gt; homelist `date “+%d%b%y”`</p>
<h3><a href="scm/operating-systems/unix-linux/20-xargs-command-examples-in-linux-unix.html" target="_blank" rel="noopener">xrags</a></h3>
<h3><a href="http://danielmiessler.com/blog/linux-xargs-vs-exec/">xargs vs. exec {}</a></h3>
<p><strong>Remote machine Login: telnet, rlogin</strong><br />
<strong>telnet</strong><br />
<strong>rlogin</strong></p>
<p><strong>Secure Login with password: ssh </strong><br />
<strong>ssh</strong></p>
<p><strong>Remote login without Password: rsh</strong><br />
<strong>rsh</strong></p>
<p><strong>File Transfer: ftp, rcp, scp</strong><br />
<strong>rcp</strong></p>
<p><strong>scp</strong></p>
<p><strong>ftp</strong><br />
ftp rajesh-servers &#8211; How to Login<br />
Directory Commands:<br />
# cd [directory] Changes to the specified directory on the remote system.<br />
# dir Displays a long listing of files on the remote system.<br />
# ls Displays a short listing of the files on the remote system.<br />
# lcd Changes the working directory on the local system.<br />
# pwd Displays the working directory on the remote system.<br />
File Transfer Commands:<br />
# get [filename] Downloads a single file from the remote system.<br />
# put [filename] Uploads a single file to the remote system.<br />
# mget [file&#8230;] Downloads multiple files from the remote system.<br />
# mput [file&#8230;] Uploads multiple files to the remote system.</p>
<p><strong>Generic troubleshooting tips</strong></p>
<ul>
<li>Use tail –f to watch log file in real time, advantage is simple you can spot error or warning message in real time.<br />
<strong>tail –f /path/to/log/file</strong><strong><br />
Example(s):<br />
<strong># tail –f /var/log/maillog</strong></strong></li>
<li>Use telnet command to see if you get response or not. Sometime you will also see some informative message:<br />
<strong>telnet ip port</strong></li>
</ul>
<p>Example(s):<br />
<strong># telnet localhost 53</strong><br />
<strong># telnet localhost 25</strong></p>
<ul>
<li>Make sure you can see PID of your service.<br />
<strong>pidof service-name</strong><strong><br />
<strong>cat /var/run/service.pid</strong></strong><strong><br />
Example(s):<br />
<strong># pidof sshd</strong><br />
<strong># cat /var/run/sshd.pid</strong></strong></li>
<li>You need to make sure that your DNS server or third party DNS server (ISP) is accessible. This is an important step, as many network services depend upon DNS; especially sendmail/postfix or Squid etc for example. Run dig or nslookup. No timeout should occurred.<br />
<strong><br />
<strong># dig your-domain.com</strong><br />
<strong># nslookup gw.isp.com</strong><br />
<strong># more /etc/resolv.conf</strong></strong></li>
</ul>
<p><strong>Performance /  Memory / CPU / Process check</strong><br />
<strong>ps</strong> – Read user manual</p>
<p><strong>w username</strong> &#8211;  Find Out Who Is Logged on And What They Are Doing. w command displays information about the users currently on the machine, and their processes.</p>
<p><strong>top</strong><br />
The top program provides a dynamic real-time view of a running system i.e. actual process activity. By default, it displays the most CPU-intensive tasks running on the server and updates the list every five seconds.</p>
<p><strong>uptime</strong><br />
tell How Long The System Has Been Running</p>
<p><strong>free &#8211; Memory Usage</strong><br />
The command free displays the total amount of free and used physical and swap memory in the system, as well as the buffers used by the kernel.<br />
# free –m                                                            Display free memory size in MB<br />
# free -t –m                                                        Displays a line containing the totals memory in MB</p>
<h3><a href="scm/operating-systems/unix-linux/20-vmstat-command-examples-in-linux-unix.html" target="_blank" rel="noopener">vmstat<br />
</a><br />
<a href="scm/operating-systems/unix-linux/linux-performance-monitoring-using-iostat-mpstat-and-vmstat.html" target="_blank" rel="noopener">Linux Performance Monitoring using iostat, mpstat and vmstat</a></h3>
<h3><a href="scm/operating-systems/unix-linux/20-iostat-command-examples-in-linux-unix.html" target="_blank" rel="noopener">iostat</a></h3>
<h3><a href="scm/operating-systems/unix-linux/20-pmap-commands-examples-in-linux-unix.html" target="_blank" rel="noopener">pmap </a><br />
<strong><br />
</strong><a href="scm/operating-systems/unix-linux/20-mpstat-command-examples-in-linux-unix.html" target="_blank" rel="noopener">mpstat </a></h3>
<p><strong># strace &amp; truss &#8211; Debug the Execution of a Program in Linux</strong><br />
Trace the Execution of an Executable<br />
# strace ls</p>
<p>Save the Trace Execution to a File Using Option -o<br />
strace -o output.txt ls</p>
<p>Execute Strace on a Running Linux Process Using Option -p<br />
# ps -C firefox-bin To get the process id<br />
# sudo strace -p 1725 -o firefox_trace.txt</p>
<p>Print Relative Time for System Calls Using Option -r<br />
# strace -r ls</p>
<p><strong>Networking troubleshooting tips</strong></p>
<p><span style="text-decoration: underline;">Hostname verification or setup tools</span></p>
<ul>
<li>hostname : To get hostname of server.</li>
<li>hostname –s : To get FQDN hostname of server</li>
<li>more /etc/sysconfig/network : To setup hostname and networking can enable or disabled.</li>
<li>dnsdomainname : List or setup domainname.</li>
<li>more /etc/hosts : Make sure at least localhost entry do exist.</li>
</ul>
<p><span style="text-decoration: underline;">Ethernet configuration tools</span></p>
<p><strong>service network reload|restart|stop|start :</strong> To reload (after changed made in ip config file)|restart|stop|start network interface with all properties.</p>
<p><strong>route</strong><br />
The route command allows you to add static routes to the routing tabling.</p>
<p><strong>traceroute (tracert in Windows)</strong><br />
Traceroute displays the routers that are passed through to reach the destination.</p>
<p><strong>dmesg</strong><br />
When the system boots up, it prints number of messages on the screen that displays information about the hardware devices that the kernel detects during boot process.<br />
These messages are available in kernel ring buffer and whenever the new message comes the old message gets overwritten. You could see all those messages after the system bootup using the dmesg command.</p>
<pre># dmesg | more</pre>
<pre># dmesg | grep Memory</pre>
<pre># dmesg  | grep eth</pre>
<pre></pre>
<p><strong>ifconfig</strong><br />
The ifconfig command is used to display the local interface configuration (winipcfg for Windows) and to modify the configuration.<br />
ifconfig eth0 up|down : To enable|disable network interface</p>
<p><strong>netstat</strong><br />
The network status command netstat displays status information about the network interfaces on the host machine. Netstat command displays the network related information such as network connections, routing tables, interface statistics.<br />
-a                Show both listening and non-listening sockets<br />
-n                prints the numeric forms of IP address</p>
<p># netstat -ain                                  Local interface status<br />
# netstat -rn                                    Routing table information<br />
# netstat –an                                  Display Active Internet Connections and domain sockets using netstat<br />
# netstat -tap                                 Display Active Connections with Process ID and Program Name<br />
# netstat –-route                          Display Routing Table<br />
# netstat &#8211;statistics &#8211;raw         Display RAW network statistics<br />
# netstat &#8211;tcp &#8211;numeric           List of TCP connection to and from the machine.<br />
netstat -tuplin                                UNIX</p>
<p><strong>iptables </strong></p>
<p>To know which ports are running in the machine.<br />
<strong>ping</strong><br />
The ping command allows you to determine that the:</p>
<ul>
<li>TCP/IP stack is configured properly</li>
<li>Network interface card is configured properly</li>
<li>Default gateway and subnet mask is configured properly</li>
<li>Domain name services is configured properly.</li>
</ul>
<p><strong># ping ipaddress</strong> to check if the ip address in connected with network and if host is alive or dead<br />
<strong># ping 127.0.0.1/localhost</strong> &#8211; to check TCP/IP services is running properly or not. Checks that your TCP/IP stack is working properly up to the NIC. If this fails, check to see if you have TCP/IP services loaded.<br />
<strong># ping &#8220;IP address of default gateway&#8221;</strong> &#8211; Checks that the NIC is working on the local subnet by pinging the local side of the default gateway which is a router. If this fails, check that TCP/IP is bound to the NIC. Then check that the NIC&#8217;s IRQ, and base address are set properly both on the card itself and in the operating system&#8217;s interface configuration.<br />
<strong># ping &#8220;domain name&#8221;</strong> if DNS name is correctly configured. If it fails, check that the DNS server&#8217;s IP address is entered in properly in the TCP/IP configuration.</p>
<pre><strong>arp</strong></pre>
<pre><strong>address resolution protocol</strong></pre>
<p><strong># arp </strong>  &#8211; To see the IP to MAC address translation table<br />
<strong># arp -a</strong>  -Use this command to see the IP to MAC address translation table if you are having problems connecting to other network hosts. It is a dynamic cache which updates every 120 seconds.</p>
<p># more /etc/modules.conf : To see your network card configuration alias for eth0 exists or not.<br />
# lsmod : To list loaded modules (read as drivers), here you need to see that eth0 module is loaded or not, if not loaded then use insmod to insert (load) driver.<br />
# dhclient : Dynamic Host Configuration Protocol Client, run this if your Ethernet card is not getting ip from DHCP box on startup; this command does by default shows useful information.</p>
<p><strong>To see if service blocked because of access control</strong><br />
# iptables –n –L : To list all iptable rules; useful to see if firewall blocks service or not.<br />
# service iptables stop|start : To start|stop iptables<br />
# more /etc/xinetd.conf</p>
<p><strong>sar </strong><br />
sar is an excellent monitoring tool that displays performance data of pretty much every resource of the system including CPU, memory, IO, paging, networking, interrupts etc., Sar Collects, Reports (displays) and Saves the performance data<strong>.</strong></p>
<p># sar –u | more         Display CPU Statistics using Sar Command<br />
# sar –d | more         Display Disk IO Statistics using sar command<br />
# sar -n DEV | more Display networking Statistics using sar command<br />
# sar -n SOCK |more Display networking Statistics using sar command<br />
# sar -n DEV -f /var/log/sa/sa24 | more   To display the network counters from the 24th<br />
# sar 4 5                                             You can also display real time usage using sar</p>
<p><strong>lsof</strong><br />
lsof stands for &#8220;ls open files&#8221;, which will list all the open files in the system. The open files include network connection, devices and directories. The output of the lsof command will have the following columns:</p>
<p>COMMAND process name.<br />
PID process ID<br />
USER Username<br />
FD file descriptor<br />
TYPE node type of the file<br />
DEVICE device number<br />
SIZE file size<br />
NODE node number<br />
NAME full path of the file name.</p>
<p># lsof | more              View all open files of the system<br />
# lsof | wc -l                How many files are open in the system at any given point<br />
# lsof –u ramesh       View open files by a specific user. A system administrator can use this command to get some idea on what users are executing on the system.<br />
# lsof /bin/vi               it displays all users who are currently using vi</p>
<p><strong>Some external Tools</strong><br />
iptraf &#8211; Real-time Network Statistics<br />
tcpdump  &#8211; Detailed Network Traffic Analysis<br />
Nagios &#8211; Server And Network Monitoring<br />
Cacti &#8211; Web-based Monitoring Tool<br />
KDE System Guard &#8211; Real-time Systems Reporting and Graphing<br />
Gnome System Monitor &#8211; Real-time Systems Reporting and Graphing<br />
nmap &#8211; scan your server for open ports.<br />
lsof &#8211; list open files, network connections and much more.<br />
ntop web based tool &#8211; ntop is the best tool to see network usage in a way similar to what top command does for processes i.e. it is network traffic monitoring software. You can see network status, protocol wise distribution of traffic for UDP, TCP, DNS, HTTP and other protocols.<br />
Conky &#8211; Another good monitoring tool for the X Window System. It is highly configurable and is able to monitor many system variables including the status of the CPU, memory, swap space, disk storage,<br />
temperatures, processes, network interfaces, battery power, system messages, e-mail inboxes etc.<br />
GKrellM &#8211; It can be used to monitor the status of CPUs, main memory, hard disks, network interfaces, local and remote mailboxes, and many other things.<br />
vnstat &#8211; vnStat is a console-based network traffic monitor. It keeps a log of hourly, daily and monthly network traffic for the selected interface(s).<br />
htop &#8211; htop is an enhanced version of top, the interactive process viewer, which can display the list of processes in a tree form.<br />
mtr &#8211; mtr combines the functionality of the traceroute and ping programs in a single network diagnostic tool.</p>
<p>yum<br />
Rsync<br />
rpm – Refer Cheat Book</p>
<p><strong>Some Well known System services</strong><br />
QUICK DNS Flush                             /etc/rc.d/init.d/nscd restart<br />
/Proc file system &#8211; Various Kernel Statistics<br />
# cat /proc/cpuinfo<br />
# cat /proc/meminfo<br />
# cat /proc/zoneinfo<br />
# cat /proc/mounts</p>
<p><strong>Questions</strong><br />
What is MASK in output of ifconfig<br />
Understand the output of ifconfig in linux such as RX packets and TX packets<br />
Set ip address using commands line</p>
<p><strong>Change Host name in RHEL</strong><br />
Changes should be made in the following files.<br />
/etc/hosts<br />
/etc/sysconfig/network</p>
<p><strong>For finding your java process</strong><br />
jps -v      For finding your java process.<br />
jstack PID  To Get stack of threads inside jvm</p>
<p><strong>If application running under different user than yourself</strong><br />
sudo jps -v<br />
sudo jstack 6172</p>
<table border="0" width="1464" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="bottom" nowrap="nowrap" width="712"><strong>QUICK DNS Flush</strong><br />
/etc/rc.d/init.d/nscd restart</td>
<td nowrap="nowrap" width="752">/etc/rc.d/init.d/nscd restart</td>
</tr>
<tr>
<td valign="bottom" nowrap="nowrap" width="712"><strong>Reference</strong><br />
<a href="http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch04_:_Simple_Network_Troubleshooting">http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch04_:_Simple_Network_Troubleshooting</a><br />
<a href="http://www.cyberciti.biz/tips/linux-security.html">http://www.cyberciti.biz/tips/linux-security.html</a><br />
<a href="http://www.cyberciti.biz/tips/list-of-linux-troubleshooting-commandstools-part-1.html">http://www.cyberciti.biz/tips/list-of-linux-troubleshooting-commandstools-part-1.html</a><br />
<a href="http://www.princeton.edu/~unix/Solaris/troubleshoot/index.html">http://www.princeton.edu/~unix/Solaris/troubleshoot/index.html</a><br />
<a href="http://www.techbooksforfree.com/intro_to_data_com/page252.html">http://www.techbooksforfree.com/intro_to_data_com/page252.html</a><br />
<a href="unix-linux/linux-performance-monitoring-using-iostat-mpstat-and-vmstat.html">http://www.scmgalaxy.com/unix-linux/linux-performance-monitoring-using-iostat-mpstat-and-vmstat.html</a></p>
<p><a href="http://www.tecmint.com/20-advanced-commands-for-linux-experts/">http://www.tecmint.com/20-advanced-commands-for-linux-experts/</a></td>
<td nowrap="nowrap" width="752"></td>
</tr>
</tbody>
</table>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/linux-commands-for-administrator/">Linux Commands for Administrator | Linux Admin Commands Reference</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/linux-commands-for-administrator/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Linux Commands for User &#124; Linux User Commands Reference</title>
		<link>https://www.scmgalaxy.com/tutorials/linux-commands-for-user/</link>
					<comments>https://www.scmgalaxy.com/tutorials/linux-commands-for-user/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 21 Jul 2014 00:00:00 +0000</pubDate>
				<category><![CDATA[Unix - Linux]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[Linux Commands for User Guide]]></category>
		<category><![CDATA[Linux Commands for User Reference]]></category>
		<category><![CDATA[Linux Commands for User Tutorials]]></category>
		<category><![CDATA[Linux Commands for Users]]></category>
		<category><![CDATA[Linux Commands Guide]]></category>
		<category><![CDATA[Linux Commands Reference]]></category>
		<category><![CDATA[Linux Commands Tutorials]]></category>
		<category><![CDATA[Linux User Commands Guide]]></category>
		<category><![CDATA[Linux User Commands Tutorials]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[user]]></category>
		<category><![CDATA[Users Linux Commands]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2014/07/21/linux-commands-for-user/</guid>

					<description><![CDATA[<p>General Commands Not Used Frequently cal – The Calender bc – The Calculator file – knowing the file types cmp [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/linux-commands-for-user/">Linux Commands for User | Linux User Commands Reference</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3671 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/07/linux-commands-user.png" alt="linux-commands-user" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/07/linux-commands-user.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/07/linux-commands-user-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>General Commands Not Used Frequently</strong><br />
cal – The Calender<br />
bc – The Calculator<br />
file – knowing the file types<br />
cmp – Comparing two files.<br />
comm – Common in two files<br />
dos2unix and unix2dos – Converting between dos and unix<br />
stat &#8211; Display file or file system status such as Access, Modify,Change, users and more<br />
# stat &lt;fileName&gt; unix Command</p>
<p><strong>General Commands Frequently Used</strong><br />
Script – recording your session<br />
Passwd – change your password<br />
Echo  &#8211; Displaying the message<br />
Printf &#8211; Displaying the message<br />
who – Who are the Users<br />
who am I – To know my user name<br />
uname – Knowing your machine characteristics<br />
# uname –a  &#8211; To Print all info.<br />
tty – knowing your terminal<br />
pwd – Checking Current Directory<br />
cd &#8211; changing the current Directory<br />
mkdir – Making directories<br />
rmdir – removing directories<br />
<strong>ls – Listing Directory Contents</strong><br />
# ls –F – Marks executables with *, directories with / and symbolic links with @ at the end of file name.<br />
# ls – a – Shows all filesnames including beginning with a dot.<br />
# ls –R – Recursive display list of files and folders<br />
# ls -1 – one filename in each line<br />
# ls –l long listing + time of last file modification<br />
# ls –t Sorts filenames by last modification time<br />
# ls –u – Sorts filenames by last access time<br />
# ls –I – Displays inode number<br />
# ls –lc – Time of last inode modifcation</p>
<p><strong>Cat – Displaying and creating Files</strong><br />
# cat filename – Displaying file contents<br />
# cat –n filename &#8211; Displaying file contents with line numbers<br />
# cat &gt; filename – To Create a file name</p>
<p><strong>More – Paging Output</strong><br />
# more filename – To to display the filename contents</p>
<p><strong>Less – Paging Output</strong></p>
<p><strong>wc – Counting lines, Words and Characters</strong><br />
# -l – Option counts only the number of lines<br />
# -w – Option counts only the words.<br />
# -c – Options counts only the characters.</p>
<p><strong>cp – copying a files</strong><br />
Options<br />
# -p – Copy the files including preserve the mode, ownership and permissions.<br />
# -R – Copying Directory Structure</p>
<p><strong>gzip and gunzip – Compressing and Decompressing Files</strong><br />
# gzip filename<br />
# gzip –l – To find out how much of the compression was archived.<br />
# gzip –d filename – To Decompress a file<br />
# gunzip filename – To Decompress a file<br />
# gzip –R dir – To Compress Recursive</p>
<p><strong>Tar – The archival Program</strong><br />
# -c – To create a archive<br />
# -x – Extract files from archive<br />
# -t – Display fils in archive<br />
# -v – verbose<br />
# -f – name of the arch filename .tar<br />
# tar –cvf filename.tar filename1 filename2<br />
# tar –xvf filename.tar</p>
<p><strong>Create tar and gzip</strong><br />
# tar cvf &#8211; foodir | gzip &gt; foo.tar.gz</p>
<p><strong>Un-tar and gunzip</strong><br />
# tar -zxvf apache-activemq-5.1.0-bin.tar.gz</p>
<p><strong>Un-tar and uncompress using gunzip</strong><br />
# gunzip -c apache-activemq-5.1.0-bin.tar.gz | tar xvf &#8211;<br />
or alternatively:<br />
# gunzip apache-activemq-5.1.0-bin.tar.gz | tar xvf &#8211;</p>
<p><strong>File Attributes</strong><br />
<strong>chmod – Changing File Permission</strong></p>
<p>Abbreviations Used by chmod</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="160"><strong>Category</strong></td>
<td valign="top" width="160"><strong>Operation</strong></td>
<td valign="top" width="160"><strong>Permission</strong></td>
<td valign="top" width="160"><strong>Assigned Number</strong></td>
</tr>
<tr>
<td valign="top" width="160">u -user</td>
<td valign="top" width="160">+ &#8211; Assigns Permission</td>
<td valign="top" width="160">r – Read permission</td>
<td valign="top" width="160">4</td>
</tr>
<tr>
<td valign="top" width="160">g -group</td>
<td valign="top" width="160">&#8211;  &#8211; Assigns Permission</td>
<td valign="top" width="160">w – Write Permission</td>
<td valign="top" width="160">2</td>
</tr>
<tr>
<td valign="top" width="160">o – other</td>
<td valign="top" width="160">= &#8211; Assigns Permission</td>
<td valign="top" width="160">x – Execute Permission</td>
<td valign="top" width="160">1</td>
</tr>
<tr>
<td valign="top" width="160">a –all(ugo)</td>
<td valign="top" width="160"></td>
<td valign="top" width="160"></td>
<td valign="top" width="160"></td>
</tr>
</tbody>
</table>
<p>Example:<br />
# chmod u+x filename<br />
# chmod u+x filename<br />
# chmod ugo+x filename<br />
# chmod u+x filename1 filename2 filename3<br />
# chmod a-x,go+r filename<br />
# chmod 566 filename<br />
# chmod 755 filename<br />
# chmod –R 755 .<br />
# chmod –R a+x *</p>
<p><strong>Chown – Changing File Ownership</strong><br />
# chown username filename<br />
More example needed.</p>
<p><strong>Shell’s Wild-Cards</strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="149"><strong>Wild-Card</strong></td>
<td valign="top" width="489"><strong>Matches</strong></td>
</tr>
<tr>
<td valign="top" width="149"><strong>*</strong></td>
<td valign="top" width="489">Any numbers of characters including none</td>
</tr>
<tr>
<td valign="top" width="149"><strong>?</strong></td>
<td valign="top" width="489">A single character</td>
</tr>
<tr>
<td valign="top" width="149"><strong>[ijk]</strong></td>
<td valign="top" width="489">A single character – either I,j or k</td>
</tr>
<tr>
<td valign="top" width="149"><strong>[x-z]</strong></td>
<td valign="top" width="489">A single character that is within the ASCII range of the characters x and z</td>
</tr>
<tr>
<td valign="top" width="149"><strong>[!ijk]</strong></td>
<td valign="top" width="489">A single character that is not an I,j, or k</td>
</tr>
<tr>
<td valign="top" width="149"><strong>[!x-z]</strong></td>
<td valign="top" width="489">A single character that is not within the ASCII range of the characters x and z</td>
</tr>
<tr>
<td valign="top" width="149"><strong> </strong></td>
<td valign="top" width="489"></td>
</tr>
</tbody>
</table>
<p><strong>Ps – Process Status</strong><br />
<strong>Options to ps</strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="158"><strong>POSIX Options</strong></td>
<td valign="top" width="480"><strong>Significance</strong></td>
</tr>
<tr>
<td valign="top" width="158"><strong>-f</strong></td>
<td valign="top" width="480">Full listing showing the PPID of each process</td>
</tr>
<tr>
<td valign="top" width="158"><strong>-e or –A</strong></td>
<td valign="top" width="480">All Process including user and Systems</td>
</tr>
<tr>
<td valign="top" width="158"><strong>-u usr</strong></td>
<td valign="top" width="480">Process of user usr only</td>
</tr>
<tr>
<td valign="top" width="158"><strong>-a</strong></td>
<td valign="top" width="480">Processes of all users excluding processes not associated with terminal</td>
</tr>
<tr>
<td valign="top" width="158"><strong>-l</strong></td>
<td valign="top" width="480">A long listing showing memory-related information</td>
</tr>
</tbody>
</table>
<p><strong>Example</strong><br />
# ps -ef<br />
# ps –u sumit<br />
# ps –a<br />
# ps –e<br />
# ps -A &#8211; ps command will report a snapshot of the current processes. To select all processes use the -A<br />
# ps -Al &#8211; Show Long Format Output<br />
# ps -AlF &#8211; To turn on extra full mode (it will show command line arguments passed to process):<br />
# ps axu &#8211; Print All Process On The Server<br />
# ps -U vivek -u vivek u &#8211; See Every Process Running As User Vivek<br />
# ps -p 55977 -o comm= &#8211; Display The Name of PID 55977<br />
# ps -auxf | sort -nr -k 4 | head -10 &#8211; Find Out The Top 10 Memory Consuming Process<br />
# ps -auxf | sort -nr -k 3 | head -10 &#8211; Find Out top 10 CPU Consuming Process</p>
<p># $! – Store the PID of the last background jobs<br />
# echo $$  &#8211; To Know the PID of current Shell<br />
# echo $SHELL – To Know the Current Shell<br />
# System process easily identifies the ? in the TTY coloumn.<br />
# Mechanism of Process Creation<br />
Fork<br />
Exec<br />
Wait</p>
<p><strong>&amp; and nohup – Ruunning jobs in background</strong><br />
# nohup sort emp.lst $</p>
<p><strong>nice – Job execution with low priority</strong><br />
Kernel decides how much processor time is required for a process based on the nice value. Possible nice value range is: -20 to 20. A process that has a nice value of -20 is very high priority. The process that has a nice value of 20 is very low priority.<br />
Use ps axl to display the nice value of all running process as shown below.<br />
# ps axl<br />
# nice command is used with &amp; operator to reduce the priority of jobs<br />
# nice script.sh &amp;<br />
# ./nice-test.sh &amp;                             Default the nice value of 0<br />
# nice -10 ./nice-test.sh &amp;            Nice value is 10                 Low priority.<br />
# nice &#8211;10 ./nice-test.sh &amp;          Nice value is -10                High priority.</p>
<p><strong>Kill – killing the process</strong><br />
# kill PID<br />
# kill PID1 PID2 PID3<br />
# kill $i – Killing the last background process<br />
# kill –s KILL PID – recommended way for killing (SIGKILL)<br />
# kill -9 PID – same as above but not recommended. (SIGKILL)<br />
# kill -9 $$  -$$ store the PID of current shell<br />
# kill –s KILL 0 – kill all the process including the login shell.<br />
# kill –l – To View the list of all signal names and numbers that are available on your machine.<br />
# kill %1 – Kill first background jobs</p>
<p><strong>Jobs </strong><br />
List the background jobs in following fashion<br />
[3] +       running                                command<br />
[1] &#8211;        running                                command<br />
[2]          running                                command</p>
<p><strong>bg – Convert Jobs to background</strong><br />
# if you have invoked a command and the prompt has not yet return, you can suspend the job by pressing Ctrl-Z. Observe that job has not been terminated yet; its onl y suspended (“stopped”). Now you can use bg command to push the current foreground job in the background.<br />
# bg %2 – Sends second job to background<br />
# bg %sort &#8211; Sends sort job to background</p>
<p><strong>fg – bring background job to foreground</strong><br />
# fg – To bring most recent job to forground<br />
# fg %1 – Bring First job to foreground<br />
# fg %2 – Bring second job to foreground<br />
# fg %sort &#8211; Bring sort job to foreground</p>
<p><strong>at – On time execution</strong><br />
# at 14:08<br />
at &gt; script.sh<br />
[ctrl-d]</p>
<p><strong>Batch – execute when system resources are available</strong><br />
# batch &lt; script.sh</p>
<p><strong>Cron – Schedule and run jobs periodically</strong><br />
# crontab –e – To Edit the cron tab<br />
# crontab –l – To Display the cron tab<br />
# crontab cron.tx – cron.txt contains cron commands<br />
# crontab –r – To Remove the cron</p>
<p>Format of crontab – TODO</p>
<p><strong>Customizing the environment</strong></p>
<p># set – set statemtent display a complete list of all environment variable<br />
# PATH =$PATH:/usr/xpg4/bin – Adding new value to old values<br />
# PS1 =”C&gt; “ – To Change the prompt<br />
# PS1=’[$PWD] ‘ – To Change the prompt to pwd<br />
# alias cp=”cp –I” – To Set the alias in bash<br />
# history – To See the history<br />
# IFS – Field Separators for commands and arguments<br />
# !! – Repeat Previous commands<br />
# !2 – Repeat commands 2 from history output<br />
# !-2 – Execute the commands prior to previous one<br />
# !v – Execture very last commands beginning withg v<br />
# $_ &#8211; Using last arugement of previous commands<br />
# mkdir raj<br />
# cd $_</p>
<p><strong>ln – Hard Links and Softlinks</strong><br />
# ln /usr/bin/perl  /usr/local/bin/perl – To create a hard links from src to dest<br />
# ls –I  &#8211; To Display the node number of files<br />
# ln –s /usr/bin/perl  /usr/local/bin/perl – To Create a soft link</p>
<p><strong>umask – default file and directory permission</strong><br />
# When you create a files and directories, the permission assigned to them depends on rge system’s default setting..<br />
# unix has default 666 for regular files &amp; 777 for directories<br />
# umask –ENTER<br />
# 022<br />
This is an octal number which has to be subtracted from system default to obtain the actual default. This becomes 644 (666-022) for ordinary files and 755 ( 777 -022) for directories.<br />
# User can set the umask such as umask 023.</p>
<p><strong>touch – Changing the time stamp</strong><br />
# touch emp.lst – Create a file name called emp.lst<br />
# touch 02161430 emp.lst – To Change the time stamp of file for MMDDhhmm format<br />
# touch –a 02161430 emp.lst – To Change the access time stamp of file for MMDDhhmm format<br />
# touch –m 02161430 emp.lst – To Change the modification time stamp of file for MMDDhhmm format</p>
<p><strong>find – Locating files</strong></p>
<p><strong>Expression Used by find.</strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="149">Expression</td>
<td valign="top" width="489">Use</td>
</tr>
<tr>
<td valign="top" width="149">-inum n</td>
<td valign="top" width="489">Having inode number n</td>
</tr>
<tr>
<td valign="top" width="149">-type x</td>
<td valign="top" width="489">if of type x can include files, directories or symbolic link</td>
</tr>
<tr>
<td valign="top" width="149">-type f</td>
<td valign="top" width="489">If an ordinary file</td>
</tr>
<tr>
<td valign="top" width="149">-perm nnn</td>
<td valign="top" width="489">If octal permission match nnn completely</td>
</tr>
<tr>
<td valign="top" width="149">-links n</td>
<td valign="top" width="489">If having n links</td>
</tr>
<tr>
<td valign="top" width="149">-user usname</td>
<td valign="top" width="489">If owner by usname</td>
</tr>
<tr>
<td valign="top" width="149">-group gname</td>
<td valign="top" width="489">If owned by group gname</td>
</tr>
<tr>
<td valign="top" width="149">-size +x[C]</td>
<td valign="top" width="489"></td>
</tr>
<tr>
<td valign="top" width="149">-mtime –x</td>
<td valign="top" width="489">If modified in less than x days</td>
</tr>
<tr>
<td valign="top" width="149">-newer filename</td>
<td valign="top" width="489">If modified after filename</td>
</tr>
<tr>
<td valign="top" width="149">-mmin –x</td>
<td valign="top" width="489">If modified in less than x minutes</td>
</tr>
<tr>
<td valign="top" width="149">-atime +x</td>
<td valign="top" width="489">If accessed in more than x days</td>
</tr>
<tr>
<td valign="top" width="149">-amin +x</td>
<td valign="top" width="489">If accessed in more than x minutes</td>
</tr>
<tr>
<td valign="top" width="149">-name filename</td>
<td valign="top" width="489">Filename</td>
</tr>
<tr>
<td valign="top" width="149"><strong>Action</strong></td>
<td valign="top" width="489"><strong>Significance</strong></td>
</tr>
<tr>
<td valign="top" width="149">-print</td>
<td valign="top" width="489">Prints selected file on standard output</td>
</tr>
<tr>
<td valign="top" width="149">-ls</td>
<td valign="top" width="489">Executes ls –lids commands on selected files</td>
</tr>
<tr>
<td valign="top" width="149">-exec cmd</td>
<td valign="top" width="489">Executes UNIX command cmd followed by {} \;</td>
</tr>
<tr>
<td valign="top" width="149">-ok cmd</td>
<td valign="top" width="489">Like –exec, except that command is executed after user confirmation</td>
</tr>
</tbody>
</table>
<p><strong>Example</strong></p>
<p>Change File Permissions Recursively<br />
# find . -type f -exec chmod 644 {} \;<br />
# find . -type d -exec chmod 755 {} \;<br />
# find . -name Configuration.php -exec chmod 666 {} \;</p>
<p>Find files modified in the last 48 hours, and in current folder and one level below<br />
# find -maxdepth 2 -type f -mtime -2</p>
<p>To find all files modified in the last 24 hours (last full day) in a particular specific directory and its sub-directories:<br />
# find /directory_path -mtime -1 –print</p>
<p>To find all files with regular file types only, and modified in the last 24 hours (last full day) in current directory and its sub-directories:<br />
# find /directory_path -type f -mtime -1 –print<br />
# find . -type f -mtime -1 –print</p>
<p>To find all files that are modified today only (since start of day only, i.e. 12 am), in current directory and its sub-directories:<br />
# touch -t `date +%m%d0000` /tmp/$$<br />
# find /tmefndr/oravl01 -type f -newer /tmp/$$<br />
# rm /tmp/$$</p>
<p>To find all files in /home/user/demo directory<br />
# find /home/user/demo -type f –print</p>
<p>To find all files in /home/user/demo directory with permission 777, enter:<br />
# find /home/user/demo -type f -perm 777 –print</p>
<p>Apply new permission using the -exec option as follows:<br />
# find /home/user/demo -type f -perm 777 -print -exec chmod 755 {} \;</p>
<p>To select directories and subdirectories use the following syntax:<br />
# find /var/www/html -type d -perm 777 -print -exec chmod 755 {} \;</p>
<p>This first Linux find example searches through the root filesystem (&#8220;/&#8221;) for the file named &#8220;Chapter1&#8221;. If it finds the file, it prints the location to the screen.<br />
# find / -name Chapter1 -type f –print</p>
<p>A nice thing to know is that on Linux systems and modern Unix system you no longer need the -print option at the end of the find command, so you can issue it like this:<br />
# find / -name Chapter1 -type f</p>
<p>This next find command searches through the /usr and /home directories for the file named Chapter1:<br />
# find /usr /home -name Chapter1 -type f</p>
<p>To search in the current directory, and all subdirectories, just use the . character to reference the current directory in your find commands, like this:<br />
# find . -name Chapter1 -type f</p>
<p>This next command searches through the /usr directory for all files that begin with the letters Chapter, followed by anything else. The filename can end with any other combination of characters. It will match filenames such as Chapter, Chapter1, Chapter1.bad, Chapter-in-life, etc.:<br />
# find /usr -name &#8220;Chapter*&#8221; -type f</p>
<p>This next command searches through the /usr/local directory for files that end with the extension .html. These file locations are then printed to the screen.<br />
# find /usr/local -name &#8220;*.html&#8221; -type f</p>
<p>To find all directories named build under the current directory, use this command:<br />
# find . -type d -name build</p>
<p>This command searches through the htdocs and cgi-bin directories for files that end with the extension .cgi. When these files are found, their permission is changed to mode 755 (rwxr-xr-x). This example shows that the find command can easily search through multiple sub-directories (htdocs, cgi-bin) at one time.<br />
# find htdocs cgi-bin -name &#8220;*.cgi&#8221; -type f -exec chmod 755 {} \;</p>
<p>Find and display files last modified les than 90 days ago.<br />
# find . -name &#8220;*&#8221; -mtime -3 -print</p>
<p>find everything in your home that has been modified more recently than &#8220;abc.txt&#8221;:<br />
# find $HOME -newer ~joeuser/lastbatch.txt</p>
<p>For finding only files from all directories recursively<br />
# find ./ -type f | wc -l</p>
<p>For finding only files from all directories recursively<br />
# find ./ &#8211; type d | wc -l</p>
<p>How to Return a message when a file is not found using find command? OR<br />
Find command return type OR<br />
when the file is not found i want it to return some value OR<br />
# find . -name raj.txt &gt; raj.txt<br />
# counter= `cat abc.txt | wc -l&#8217;<br />
# if [$counter -gt 0]<br />
# then<br />
#                echo &#8220;File is found&#8221;<br />
# else<br />
#                echo &#8220;File is not found&#8221;<br />
# fi<br />
<strong>That&#8217;s nice, but what if I want to see the last modification time of these files, or their filesize? No problem, I just add the &#8220;ls -ld&#8221; command to my find command, like this:</strong><br />
find . -name &#8220;*.pl&#8221; -exec ls -ld {} \;</p>
<p>Count Total number of files in Directory and Subdirectory<br />
# find . -type f | wc –l</p>
<p>Count Specific extention files in Directory and Subdirectory<br />
# find . -type f -name \*.mnp |wc –l</p>
<p>Count only Directory<br />
# find . -type d | wc –l</p>
<p><strong>head – Displaying the beginning of a file</strong><br />
# head –n 3 filename<br />
# vi `ls –t` | head –n 1` &#8211; Opens last modified file for editing</p>
<p><strong>tail – Displaying the end of a file</strong><br />
<strong># tail -3 filename</strong><br />
<strong># tail –f filename             Monitering file live</strong></p>
<p><strong>Cut</strong><br />
# cut –c 6-12,24-32 filename – Cutting column<br />
# cut –d \| -f 2,3 filename            &#8211; Cutting fields<br />
# cut –d “|” –f 1,4- filename –To cut out the fields numbered 1,4,5 and 6.</p>
<p><strong>Sort – Ordering a file</strong><br />
<strong>Sort Options</strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="121"><strong>Option</strong></td>
<td valign="top" width="518"><strong>Description</strong></td>
</tr>
<tr>
<td valign="top" width="121"><strong>-tchar</strong></td>
<td valign="top" width="518">Use delimiter char to identify fields</td>
</tr>
<tr>
<td valign="top" width="121"><strong>-k n</strong></td>
<td valign="top" width="518">Sorts on nth field</td>
</tr>
<tr>
<td valign="top" width="121"><strong>-k m,n</strong></td>
<td valign="top" width="518">Start sort on mth field and end sort on nth field</td>
</tr>
<tr>
<td valign="top" width="121"><strong>-k m.n</strong></td>
<td valign="top" width="518">Start sort on nth column of mth field</td>
</tr>
<tr>
<td valign="top" width="121"><strong>-u </strong></td>
<td valign="top" width="518">Removes repeated lines</td>
</tr>
<tr>
<td valign="top" width="121"><strong>-n </strong></td>
<td valign="top" width="518">Sort numerically</td>
</tr>
<tr>
<td valign="top" width="121"><strong>-r </strong></td>
<td valign="top" width="518">Reverse sort order</td>
</tr>
<tr>
<td valign="top" width="121"><strong>-m list</strong></td>
<td valign="top" width="518">Merge sorted files in list</td>
</tr>
<tr>
<td valign="top" width="121"><strong>-c</strong></td>
<td valign="top" width="518">Checks of file sorted</td>
</tr>
<tr>
<td valign="top" width="121"><strong>-o filename</strong></td>
<td valign="top" width="518">Place output in file filename</td>
</tr>
</tbody>
</table>
<p><strong>Examples:</strong><br />
# sort –t”|” –k 2 shortlist<br />
# sort –t”|” –r –k 2 shortlist<br />
# sort –t “|” –k 3,3 –k 2,2 shortlist<br />
# sort –t”|” –k 5.7,5.8 shortlist<br />
# sort numfile<br />
# cut –d”|” –f3 filename | sort –u<br />
# sort –m foo1 foo2 foo3</p>
<p><strong>Uniq – Locate repeated and non-repeated lines</strong><br />
# sort dept.lst | uniq<br />
# cut –d”|” –f3 emp.lst | sort | uniq –u                                 ( -u selects only lines which is not repeated)<br />
# cut –d”|” –f3 emp.lst | sort | uniq –d                                 ( -d selects one copy of repeated lines)<br />
# cut –d”|” –f3 emp.lst | sort | uniq –c</p>
<p><strong>tr – Translating characters</strong><br />
# tr ‘|/’ ‘~-‘ &lt; emp.lst | head –n 3             – To replace the | with a ~ and the / with a  -.<br />
# head –n 3 emp.lst | tr ‘[a-z]’ ‘[A-Z]’     – Change first three lines from lower to upper.<br />
# tr –d ‘|’ &lt; emp.lst | head –n 3                                – To deleting characters</p>
<p><strong>grep – Searching for a pattern</strong><br />
# grep “director” filename1 filename2<br />
# grep “Rajesh Kumar” filename1<br />
# grep –i ‘rajesh’ filename1                                         To Ignore case<br />
# grep –v ‘rajesh’ filename1 &gt; filename2                              To Select all except lines containing patterns<br />
# grep –n ‘rajesh’ filename1                                       To Display line numbers<br />
# grep –c ‘rajesh’ filename                                          Counting line containing pattern<br />
# grep –l ‘rajesh’ *.lst                                                    -l options display only the name of files containing pattern<br />
# grep –f pattern.lst emp.lst                                       Taking patterns from files</p>
<p><strong>Grep a file, but show several surrounding lines?</strong></p>
<p>For BSD or GNU grep you can use -B num to set how many lines before the match and -A num for th number of lines after the match.<br />
grep -B 3 -A 2 foo README.txt</p>
<p>If you want the same amount of lines before and after you can use -C num.<br />
grep -C 3 foo README.txt<br />
This will show 3 lines before and 3 lines after.</p>
<p><strong>Basic Regular Expression tables</strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="158"><strong>Symbols or Expressions</strong></td>
<td valign="top" width="480"><strong>Matches</strong></td>
</tr>
<tr>
<td valign="top" width="158"><strong>*</strong></td>
<td valign="top" width="480">Zero or more occurrances of the previous character</td>
</tr>
<tr>
<td valign="top" width="158"><strong>g*</strong></td>
<td valign="top" width="480">Nothing or g,gg,ggg, etc</td>
</tr>
<tr>
<td valign="top" width="158"><strong>.</strong></td>
<td valign="top" width="480">A Single Character</td>
</tr>
<tr>
<td valign="top" width="158"><strong>.*</strong></td>
<td valign="top" width="480">Nothing or any number of character</td>
</tr>
<tr>
<td valign="top" width="158"><strong>[pqr]</strong></td>
<td valign="top" width="480">A single character p, q or r</td>
</tr>
<tr>
<td valign="top" width="158"><strong>[c1-c2]</strong></td>
<td valign="top" width="480">A Single Character with ASCII range</td>
</tr>
<tr>
<td valign="top" width="158"><strong>[1-3]</strong></td>
<td valign="top" width="480">A single digit between 1 and 3</td>
</tr>
<tr>
<td valign="top" width="158"><strong>[^pqr]</strong></td>
<td valign="top" width="480">A Single character which is not a p,q or r</td>
</tr>
<tr>
<td valign="top" width="158"><strong>[^a-zA-Z]</strong></td>
<td valign="top" width="480">A non-alphabetic character</td>
</tr>
<tr>
<td valign="top" width="158"><strong>^pat</strong></td>
<td valign="top" width="480">Pattern pat at the beginning of the line</td>
</tr>
<tr>
<td valign="top" width="158"><strong>pat$</strong></td>
<td valign="top" width="480">Pattern pat at the end of the line</td>
</tr>
<tr>
<td valign="top" width="158"><strong>bash$</strong></td>
<td valign="top" width="480">Bash at the end of the line</td>
</tr>
<tr>
<td valign="top" width="158"><strong>^bash$</strong></td>
<td valign="top" width="480">Bash as the only one word in line</td>
</tr>
<tr>
<td valign="top" width="158"><strong>^$</strong></td>
<td valign="top" width="480">Line containing nothing</td>
</tr>
<tr>
<td valign="top" width="158"><strong>+</strong></td>
<td valign="top" width="480">Matches one or more character of previous character</td>
</tr>
<tr>
<td valign="top" width="158"><strong>?</strong></td>
<td valign="top" width="480">Matches zero or one occurrence of the previous character</td>
</tr>
<tr>
<td valign="top" width="158"><strong>|</strong></td>
<td valign="top" width="480">Delimiter for multiple pattern</td>
</tr>
<tr>
<td valign="top" width="158"><strong>( )</strong></td>
<td valign="top" width="480">Group pattern</td>
</tr>
</tbody>
</table>
<p><strong>Example:</strong><br />
# grep “[aA]g[ar][ar]wal filename<br />
# grep “[aA]gg*[ar][ar]wal” filename<br />
# grep “j.*Saxena” filename<br />
# grep “^2” filename<br />
# grep “7…$” filename<br />
# grep “^[^2]” filename<br />
# grep –E “[aA]gg?arwal” filename<br />
# grep –E ‘sengupta|dasgupta’ filename<br />
# grep –E ‘(sen|das)gupta’ filename</p>
<p><strong>Editor</strong><br />
Awk  &#8211; http://www.thegeekstuff.com/2010/01/awk-introduction-tutorial-7-awk-print-examples/<br />
Sed<br />
vi</p>
<p># sed – The Stream Editor<br />
# sed ‘3q’ filename == head –n 3                              Quit after line number 3<br />
# sed –n ‘1,2p’ filename                                                               Prints the first 2 lines. Must use –n with p<br />
# sed –n ‘$p’ filename                                                   print last line<br />
# sed –n ‘9,11p 7,9p $p’ filename<br />
# sed –n ‘3,$ip’ filename                                              Don’t print line 3 to the end, display only line 1 and 2</p>
<p># sed –n ‘/director/p’ filename                                 To print the lines which has pattern in filename<br />
# sed –n ‘/dasgupta/,/saksena/p’ filename<br />
# sed –n ‘1,/dasgupta/p’ filename<br />
# sed –n ‘/[aA]gg*[ar][ar]wal/p’ filename<br />
# sed –n ‘/sa[kx]s*ena/p /Gupta/p’ filename<br />
# sed –n ‘/50…..$/p’ filename</p>
<p># sed –n ‘director/w  dlsit’ filename<br />
# sed –n ‘director/w dlist /manager/w mlist /executive/w elist’ filename<br />
# sed –n ‘1,500w foo1 501,$w foo2’ filename</p>
<p># sed ‘1i\<br />
&gt; #include &lt;stdio.h&gt;\<br />
&gt; #include&lt;unistd.h&gt;<br />
&gt;’ foo.c  &gt;&gt; $$                                                                    Include these include on beginning of the program<br />
# sed ‘a\</p>
<p>‘ filename                                                                            # insert after every line this blank line<br />
# sed “/director/d’ filename &gt; filename2              -n option not to be used with d<br />
== # grep –v “director” filename &gt; filename2<br />
# sed –n ‘/director/!p’ filename1 &gt; filename2</p>
<p># sed ‘s/|/:/’ filename | head -2<br />
# sed ‘s/|/:/g’ filename | head -2<br />
# sed ‘1,3s/|/:/g’ filename<br />
# sed ‘1,5s/director/member /’ filename<br />
# sed ‘s/^/2’ filename<br />
# sed ‘s/$.00/’ filename</p>
<p><strong>Sed tables</strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="130">Command</td>
<td valign="top" width="508">Description</td>
</tr>
<tr>
<td valign="top" width="130">I,a,c</td>
<td valign="top" width="508"><strong>Insert, Appends and Changes text</strong></td>
</tr>
<tr>
<td valign="top" width="130">d</td>
<td valign="top" width="508"><strong>Delete lines</strong></td>
</tr>
<tr>
<td valign="top" width="130">10q</td>
<td valign="top" width="508"><strong>Quit after reading the first 10 lines</strong></td>
</tr>
<tr>
<td valign="top" width="130">p</td>
<td valign="top" width="508"><strong>Print line on standard outputs</strong></td>
</tr>
<tr>
<td valign="top" width="130">3,$p</td>
<td valign="top" width="508"><strong>Print lines 3 to the end. –n option is required</strong></td>
</tr>
<tr>
<td valign="top" width="130">$!p</td>
<td valign="top" width="508"><strong>Prints all lines except last line. –n option required</strong></td>
</tr>
<tr>
<td valign="top" width="130">/begin/,/end/p</td>
<td valign="top" width="508"><strong>Print lines enclosed between begin and end. –n option required</strong></td>
</tr>
<tr>
<td valign="top" width="130">q</td>
<td valign="top" width="508"><strong>Quit after reading uo to the address line</strong></td>
</tr>
<tr>
<td valign="top" width="130"></td>
<td valign="top" width="508"><strong> </strong></td>
</tr>
</tbody>
</table>
<p><strong>Vi &#8211; Editor                            </strong></p>
<p><strong>IMPORTANT – YOU SHOULD USE DOUBLE QUOTES ONLY WHEN PARAMETER EVALULATION OR command substitution is embedded within command</strong></p>
<p>Write about command “w”</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/linux-commands-for-user/">Linux Commands for User | Linux User Commands Reference</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/linux-commands-for-user/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Perforce backup commands &#124; Perforce backup method</title>
		<link>https://www.scmgalaxy.com/tutorials/perforce-backup-commands/</link>
					<comments>https://www.scmgalaxy.com/tutorials/perforce-backup-commands/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 18 Feb 2014 05:03:59 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Backup Commands]]></category>
		<category><![CDATA[Backup Perforce commands]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Commands for Perforce backup]]></category>
		<category><![CDATA[Perforce Backup]]></category>
		<category><![CDATA[Perforce backup commands]]></category>
		<category><![CDATA[Perforce Backup Guide]]></category>
		<category><![CDATA[Perforce Backup Instructions]]></category>
		<category><![CDATA[Perforce backup method]]></category>
		<category><![CDATA[Perforce Backup Tutorials]]></category>
		<category><![CDATA[Perforce Guide]]></category>
		<category><![CDATA[Perforce Tutorial]]></category>
		<category><![CDATA[Recovery]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2014/02/18/perforce-backup-commands/</guid>

					<description><![CDATA[<p>There are several commands and arguments that allow more complex operations. (A command line flag “-z” tells Perforce to use [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/perforce-backup-commands/">Perforce backup commands | Perforce backup method</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3728 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/02/perforce-backup-commands.png" alt="perforce-backup-commands" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/02/perforce-backup-commands.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/02/perforce-backup-commands-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>There are several commands and arguments that allow more complex operations. (A command line flag “-z” tells Perforce to use compre ssion.) The commands are as follows:</p>
<p>p4d -jc [-z] – Take a checkpoint, rotate the journal</p>
<p>p4 admin checkpoint [-z] – Client-side checkpoint/journal</p>
<p>p4d -jj [-z] – Rotate the journal</p>
<p>p4d -jr [-z]filename – Restore the journal file filename</p>
<p>p4d -jd [-z] filename – Checkpoint to filename without incrementing the checkpoint/journal counter</p>
<p>p4d -c command – Lock the database files, and run command</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/perforce-backup-commands/">Perforce backup commands | Perforce backup method</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/perforce-backup-commands/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Execute external commands by using perl?</title>
		<link>https://www.scmgalaxy.com/tutorials/executing-external-commands-using-perl/</link>
					<comments>https://www.scmgalaxy.com/tutorials/executing-external-commands-using-perl/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 04 May 2012 11:02:25 +0000</pubDate>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Execute]]></category>
		<category><![CDATA[Execute external commands]]></category>
		<category><![CDATA[Execute external commands from Perl]]></category>
		<category><![CDATA[External]]></category>
		<category><![CDATA[External commands]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[Implement]]></category>
		<category><![CDATA[Implement external commands by using perl]]></category>
		<category><![CDATA[Perl Guide for executing external commands]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Using]]></category>
		<category><![CDATA[Ways]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2012/05/04/executing-external-commands-using-perl/</guid>

					<description><![CDATA[<p>There are many ways to execute external commands from Perl. The most commons are: system function exec function backticks (&#8220;) [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/executing-external-commands-using-perl/">How to Execute external commands by using perl?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3828 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/05/external-commands-using-per.png" alt="execute-external-commands-from-perl" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/05/external-commands-using-per.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/05/external-commands-using-per-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>There are many ways to execute external commands from Perl. The most commons are:</p>
<ul type="disc">
<li><strong>system</strong> function</li>
<li><strong>exec</strong> function</li>
<li><strong>backticks (&#8220;)</strong> operator</li>
<li><strong>open</strong> function</li>
</ul>
<p>All of these methods have different behaviour, so you should choose which one to use depending of your particular need. In brief, these are the recommendations:</p>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td><strong>method</strong></td>
<td><strong>use if &#8230;</strong></td>
</tr>
<tr>
<td>system()</td>
<td>you want to execute a command and don&#8217;t want to capture its output</td>
</tr>
<tr>
<td>exec</td>
<td>you don&#8217;t want to return to the calling perl script</td>
</tr>
<tr>
<td>backticks</td>
<td>you want to capture the output of the command</td>
</tr>
<tr>
<td>open</td>
<td>you want to pipe the command (as input or output) to your script</td>
</tr>
</tbody>
</table>
<p>More detailed explanations of each method follows:</p>
<p><strong>Using system() </strong><br />
system() executes the command specified. It doesn&#8217;t capture the output of the command.<br />
system() accepts as argument either a scalar or an array. If the argument is a scalar, system() uses a shell to execute the command (&#8220;/bin/sh -c command&#8221;); if the argument is an array it executes the command directly, considering the first element of the array as the command name and the remaining array elements as arguments to the command to be executed.<br />
For that reason, it&#8217;s highly recommended for efficiency and safety reasons (specially if you&#8217;re running a cgi script) that you use an array to pass arguments to system()</p>
<pre><strong>Example: </strong>     #-- calling 'command' with  arguments    system("command arg1 arg2 arg3");         #-- better way of calling the same command    system("command", "arg1", "arg2",  "arg3");     The return value  is set in <strong>$?</strong>; this value is the exit status of the command as returned  by the 'wait' call; to get the real exit status of the command you have to  shift right by 8 the value of $? ($? &gt;&gt; 8).     If the value of <strong>$?</strong> is -1, then the command failed to execute, in that case you may check the value  of <strong>$!</strong> for the reason of the failure.</pre>
<pre><strong>Example: </strong>     system("command",  "arg1");    if ( $? == -1 )    {      print "command failed: $!\n";    }    else    {      printf "command exited with value %d", $? &gt;&gt; 8;    }</pre>
<p><strong>Using exec() </strong><br />
The exec() function executes the command specified and never returns to the calling program, except in the case of failure because the specified command does not exist AND the exec argument is an array.<br />
Like in system(), is recommended to pass the arguments of the functions as an array.</p>
<p><strong>Using backticks (&#8220;) </strong><br />
In this case the command to be executed is surrounded by backticks. The command is executed and the output of the command is returned to the calling script.<br />
In scalar context it returns a single (possibly multiline) string, in list context it returns a list of lines or an empty list if the command failed.<br />
The exit status of the executed command is stored in <strong>$?</strong> (see system() above for details).</p>
<pre><strong>Example: </strong>     #-- scalar context    $result = `command arg1 arg2`;         #-- the same command in list context    @result = `command arg2 arg2`;     Notice that the  only output captured is STDOUT, to collect messages sent to STDERR you should  redirect STDERR to STDOUT</pre>
<pre><strong>Example: </strong>     #-- capture STDERR as well  as STDOUT    $result = `command 2&gt;&amp;1`;</pre>
<p><strong>Using open() </strong><br />
Use open() when you want to:<br />
&#8211; capture the data of a command (syntax: open(&#8220;command |&#8221;))<br />
&#8211; feed an external command with data generated from the Perl script (syntax: open(&#8220;| command&#8221;))</p>
<pre><strong>Examples: </strong>     #-- list the processes  running on your system    open(PS,"ps -e -o pid,stime,args |") || die "Failed: $!\n";    while ( &lt;PS&gt; )    {      #-- do something here    }         #-- send an email to user@localhost    open(MAIL, "| /bin/mailx -s test user\@localhost ") || die  "mailx failed: $!\n";  print MAIL "This is a test message";</pre>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/executing-external-commands-using-perl/">How to Execute external commands by using perl?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/executing-external-commands-using-perl/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Common unix commands and utilities &#124; unix commands and utilities Guide</title>
		<link>https://www.scmgalaxy.com/tutorials/common-unix-commands-and-utilities/</link>
					<comments>https://www.scmgalaxy.com/tutorials/common-unix-commands-and-utilities/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 05 Jan 2011 07:04:15 +0000</pubDate>
				<category><![CDATA[Unix - Linux]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Common]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[List of Unix commands]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[Unix commands]]></category>
		<category><![CDATA[Unix commands and utilities]]></category>
		<category><![CDATA[Unix commands and utilities Cheatsheet]]></category>
		<category><![CDATA[Unix commands and utilities Guide]]></category>
		<category><![CDATA[Unix commands and utilities References]]></category>
		<category><![CDATA[Unix commands and utilities Tutorials]]></category>
		<category><![CDATA[Unix commands Guide]]></category>
		<category><![CDATA[Unix commands Tutorials]]></category>
		<category><![CDATA[Useful Unix Commands]]></category>
		<category><![CDATA[Useful Unix Commands CheatSheet]]></category>
		<category><![CDATA[Useful Unix Commands References]]></category>
		<category><![CDATA[Utilities]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2011/01/05/common-unix-commands-and-utilities/</guid>

					<description><![CDATA[<p>To find a program not on this list (and there are hundreds), try the man program with the -k option [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/common-unix-commands-and-utilities/">Common unix commands and utilities | unix commands and utilities Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="size-full wp-image-3896 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2011/01/unix-commands-and-utilities.png" alt="unix-commands-and-utilities" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2011/01/unix-commands-and-utilities.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2011/01/unix-commands-and-utilities-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>To find a program not on this list (and there are hundreds), try the man program with the -k option followed by a keyword, for example,<br />
man -k tape<br />
to find all on-line manual entries that refer to programs that work with tapes.</p>
<h3>Terminal control characters for C-shell (csh)</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">^h, backspace</td>
<td>erase previously typed character</td>
</tr>
<tr>
<td>^u</td>
<td>erase entire line of input so far typed</td>
</tr>
<tr>
<td>^d</td>
<td>end-of-input for programs reading from terminal</td>
</tr>
<tr>
<td>^s</td>
<td>suspend writing to terminal (freezes terminal)</td>
</tr>
<tr>
<td>^q</td>
<td>continue writing to terminal</td>
</tr>
<tr>
<td>^z</td>
<td>suspend currently running job; restart with bg or fg</td>
</tr>
<tr>
<td>^c</td>
<td>kill currently running program and allow clean-up before exiting</td>
</tr>
<tr>
<td>^\</td>
<td>emergency kill of currently running program with no chance of cleanup</td>
</tr>
</tbody>
</table>
<p>Also see a <a href="http://pangea.stanford.edu/computing/unix/shell/specialchars.php">list of special characters</a> that should not be used in filenames.</p>
<h3>Login and authentication</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">login</td>
<td>access computer; start interactive session</td>
</tr>
<tr>
<td>logout</td>
<td>disconnect terminal session</td>
</tr>
<tr>
<td>passwd</td>
<td>change local login password; you <strong>must</strong> set a <a href="http://pangea.stanford.edu/computing/resources/network/security/safeguards/strongpass.php"> strong password</a> that is not easily guessed</td>
</tr>
<tr>
<td>kinit</td>
<td>obtain kerberos ticket for connections to other kerberized computers</td>
</tr>
<tr>
<td>kdestroy</td>
<td>destroy kerberos tickets (authorizations)</td>
</tr>
</tbody>
</table>
<h3>Information</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">date</td>
<td>show date and time</td>
</tr>
<tr>
<td>history</td>
<td>list of previously executed commands</td>
</tr>
<tr>
<td>man</td>
<td>show online documentation by program name</td>
</tr>
<tr>
<td>info</td>
<td>online documentation for GNU programs</td>
</tr>
<tr>
<td>w, who</td>
<td>who is on the system and what they are doing</td>
</tr>
<tr>
<td>whoami</td>
<td>who is logged onto this terminal</td>
</tr>
<tr>
<td>top</td>
<td>show system stats and top CPU using processes</td>
</tr>
<tr>
<td>uptime</td>
<td>show one line summary of system status</td>
</tr>
</tbody>
</table>
<h3>File management</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">cat</td>
<td>combine files</td>
</tr>
<tr>
<td>cp</td>
<td>copy files</td>
</tr>
<tr>
<td>ls</td>
<td>list files in a directory and their attributes</td>
</tr>
<tr>
<td>mv</td>
<td>change file name or directory location</td>
</tr>
<tr>
<td>rm</td>
<td>remove files</td>
</tr>
<tr>
<td>ln</td>
<td>create another link (name) to a file</td>
</tr>
<tr>
<td>chmod</td>
<td>set file permissions</td>
</tr>
<tr>
<td>crypt</td>
<td>encode/decode a file with a private key</td>
</tr>
<tr>
<td>gzip, gunzip</td>
<td>compress/decompress a file</td>
</tr>
<tr>
<td>find</td>
<td>find files that match specific criteria</td>
</tr>
</tbody>
</table>
<h3>Display contents of files</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">cat</td>
<td>copy files to display device</td>
</tr>
<tr>
<td>more</td>
<td>show text file on display terminal with paging control</td>
</tr>
<tr>
<td>head</td>
<td>show first few lines of a file(s)</td>
</tr>
<tr>
<td>tail</td>
<td>show last few lines of a file; or reverse line order</td>
</tr>
<tr>
<td>vi</td>
<td>full-featured screen editor for modifying text files</td>
</tr>
<tr>
<td>pico</td>
<td>simple screen editor for modifying text files</td>
</tr>
<tr>
<td>grep</td>
<td>display lines that match a pattern</td>
</tr>
<tr>
<td>lpr</td>
<td>send file to printer</td>
</tr>
<tr>
<td>pr</td>
<td>format file with page headers, multiple columns, etc.</td>
</tr>
<tr>
<td>diff</td>
<td>compare two files and show differences</td>
</tr>
<tr>
<td>cmp</td>
<td>compare two binary files and report if different</td>
</tr>
<tr>
<td>comm</td>
<td>compare two files; show common or unique lines</td>
</tr>
<tr>
<td>od</td>
<td>display binary files as eqivalent octal/hex codes</td>
</tr>
<tr>
<td>strings</td>
<td>show printable text embedded in binary files</td>
</tr>
<tr>
<td>file</td>
<td>examine file(s) and guess type: text, data, program, etc.</td>
</tr>
<tr>
<td>wc</td>
<td>count characters, words, and lines in a file</td>
</tr>
</tbody>
</table>
<h3>Directories</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">cd</td>
<td>change to new directory</td>
</tr>
<tr>
<td>mkdir</td>
<td>create new directory</td>
</tr>
<tr>
<td>rmdir</td>
<td>remove empty directory (you must remove files first)</td>
</tr>
<tr>
<td>mv</td>
<td>change name of directory</td>
</tr>
<tr>
<td>pwd</td>
<td>show current directory</td>
</tr>
</tbody>
</table>
<h3>Disks</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">df</td>
<td>summarize free space on disk filesystems</td>
</tr>
<tr>
<td>du</td>
<td>show disk space used by files or directories</td>
</tr>
</tbody>
</table>
<h3>Special character handling for C-shell (See man csh)</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">*</td>
<td>match any characters in a file name</td>
</tr>
<tr>
<td>~user</td>
<td>shorthand for home directory of user</td>
</tr>
<tr>
<td>$name</td>
<td>substitute value of variable name</td>
</tr>
<tr>
<td>\</td>
<td>turn off special meaning of character that follows</td>
</tr>
<tr>
<td>&#8216;</td>
<td>in pairs, quote string with special chars, except !</td>
</tr>
<tr>
<td>&#8220;</td>
<td>in pairs, quote string with special chars, except !, $</td>
</tr>
<tr>
<td>`</td>
<td>in pairs, substitute output from enclosed command</td>
</tr>
</tbody>
</table>
<h3>Controlling program execution for C-shell (See man csh)</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">&amp;</td>
<td>run job in background</td>
</tr>
<tr>
<td>^c</td>
<td>kill job in foreground</td>
</tr>
<tr>
<td>^z</td>
<td>suspend job in foreground</td>
</tr>
<tr>
<td>fg</td>
<td>restart suspended job in foreground</td>
</tr>
<tr>
<td>bg</td>
<td>run suspended job in background</td>
</tr>
<tr>
<td>;</td>
<td>delimit commands on same line</td>
</tr>
<tr>
<td>()</td>
<td>group commands on same line</td>
</tr>
<tr>
<td>!</td>
<td>re-run earlier commands from history list</td>
</tr>
<tr>
<td>jobs</td>
<td>list current jobs</td>
</tr>
<tr>
<td>ps</td>
<td>show process information</td>
</tr>
<tr>
<td>kill</td>
<td>kill background job or previous process</td>
</tr>
<tr>
<td>nice</td>
<td>run program at lower priority</td>
</tr>
<tr>
<td>at</td>
<td>run program at a later time</td>
</tr>
<tr>
<td>crontab</td>
<td>run program at specified intervals</td>
</tr>
<tr>
<td>limit</td>
<td>see or set resource limits for programs</td>
</tr>
<tr>
<td>alias</td>
<td>create alias name for program (normally used in .login file)</td>
</tr>
<tr>
<td>sh, csh</td>
<td>execute command file</td>
</tr>
</tbody>
</table>
<h3>Controlling program input/output for C-shell (See man csh)</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">|</td>
<td>pipe output to input</td>
</tr>
<tr>
<td>&gt;</td>
<td>redirect output to a storage file</td>
</tr>
<tr>
<td>&lt;</td>
<td>redirect input from a storage file</td>
</tr>
<tr>
<td>&gt;&gt;</td>
<td>append redirected output to a storage file</td>
</tr>
<tr>
<td>tee</td>
<td>copy input to both file and next program in pipe</td>
</tr>
<tr>
<td>script</td>
<td>make file record of all terminal activity</td>
</tr>
</tbody>
</table>
<h3>Email and communication</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">msgs</td>
<td>read system bulletin board messages</td>
</tr>
<tr>
<td>mailx</td>
<td>send/read email; can be run by other programs to send exisiting files via email</td>
</tr>
<tr>
<td>uuencode<br />
uudecode</td>
<td>encode/decode a binary file for transmission via email</td>
</tr>
<tr>
<td>rn</td>
<td>read USENET news groups</td>
</tr>
</tbody>
</table>
<h3>Editors and formatting utilities</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">sed</td>
<td>programmable text editor for data streams</td>
</tr>
<tr>
<td>vi</td>
<td>full-featured editor for character terminals</td>
</tr>
<tr>
<td>emacs</td>
<td>GNU emacs editor for character terminals</td>
</tr>
<tr>
<td>xemacs</td>
<td>GNU emacs editor for X Window terminals</td>
</tr>
<tr>
<td>pico</td>
<td>very simple text editor</td>
</tr>
<tr>
<td>fmt</td>
<td>fill and break lines to make all same length</td>
</tr>
<tr>
<td>fold</td>
<td>break long lines to specified length</td>
</tr>
</tbody>
</table>
<h3>X Window client programs (output to X terminal or server)</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">xterm</td>
<td>provide login shell window</td>
</tr>
<tr>
<td>xauth</td>
<td>manipulate authorization files</td>
</tr>
<tr>
<td>xload</td>
<td>show system load</td>
</tr>
<tr>
<td>xman</td>
<td>full screen online manual viewer</td>
</tr>
<tr>
<td>xemacs</td>
<td>GNU emacs editor</td>
</tr>
<tr>
<td>gv</td>
<td>interface to contol gs to display PostScript or PDF files on screen</td>
</tr>
<tr>
<td>xdvi</td>
<td>display DVI files on X Window (screen preview)</td>
</tr>
<tr>
<td>gnuplot</td>
<td>interactive data plotting on screen</td>
</tr>
</tbody>
</table>
<h3>TeX typesetting system</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">tex</td>
<td>process TeX files to DVI (device independent) output</td>
</tr>
<tr>
<td>latex</td>
<td>process LaTeX files to DVI</td>
</tr>
<tr>
<td>dvips</td>
<td>print DVI files on Postscript laser printer</td>
</tr>
<tr>
<td>xdvi</td>
<td>display DVI files on X Window (screen preview)</td>
</tr>
<tr>
<td>latex2html</td>
<td>translate LaTeX files to HTML (for web pages)</td>
</tr>
</tbody>
</table>
<h3>Printing (BSD based)</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">lpr</td>
<td>send file to print queue</td>
</tr>
<tr>
<td>lpq</td>
<td>examine status of files in print queue</td>
</tr>
<tr>
<td>lprm</td>
<td>remove a file from print queue</td>
</tr>
<tr>
<td>enscript</td>
<td>convert text files to PostScript format for printing</td>
</tr>
</tbody>
</table>
<h3>Interpreted languages and data manipulation utilities</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">sed</td>
<td>programmable text editor for data streams</td>
</tr>
<tr>
<td>awk</td>
<td>pattern scanning and processing language</td>
</tr>
<tr>
<td>perl</td>
<td>Practical Extraction and Report Language</td>
</tr>
<tr>
<td>sort</td>
<td>sort or merge lines in a file(s) by specified fields</td>
</tr>
<tr>
<td>tr</td>
<td>translate characters</td>
</tr>
<tr>
<td>cut</td>
<td>cut out columns from a file</td>
</tr>
<tr>
<td>paste</td>
<td>paste columns into a file</td>
</tr>
<tr>
<td>dd</td>
<td>copy data between devices; reblock; convert EBCDIC</td>
</tr>
</tbody>
</table>
<h3>Graphics and mapping</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">gnuplot</td>
<td>interactive data plotting; outputs to PostScript or X Window</td>
</tr>
<tr>
<td>gs</td>
<td>&#8220;ghostscript&#8221; converter displays PostScript files on X Window displays or other devices</td>
</tr>
</tbody>
</table>
<h3>Networking/communications</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">ssh</td>
<td>remote login/command execution; encrypted</td>
</tr>
<tr>
<td>scp</td>
<td>remote non-interactive file copy; encrypted</td>
</tr>
<tr>
<td>sftp</td>
<td>remote interactive file copy; encrypted</td>
</tr>
<tr>
<td>telnet</td>
<td>remote network login; plain text password &#8211; <strong>not recommended</strong></td>
</tr>
<tr>
<td>ftp</td>
<td>network file transfer program; plain text password &#8211; <strong>not recommended</strong></td>
</tr>
<tr>
<td>host</td>
<td>find IP address for given host name, or vice versa</td>
</tr>
<tr>
<td>lynx</td>
<td>web browser for character based (text-only) terminals</td>
</tr>
<tr>
<td>gzip, gunzip</td>
<td>compress/decompress a file</td>
</tr>
<tr>
<td>tar</td>
<td>combine multiple files/dirs into single archive</td>
</tr>
<tr>
<td>uuencode<br />
uudecode</td>
<td>encode/decode a binary file for transmission via email</td>
</tr>
</tbody>
</table>
<h3>Compilers, interpreters and programming tools</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">csh</td>
<td>command language interpreter (C-shell scripts)</td>
</tr>
<tr>
<td>ksh</td>
<td>command language interpreter (Korn-shell scripts)</td>
</tr>
<tr>
<td>sh</td>
<td>command language interpreter (Borne-shell scripts)</td>
</tr>
<tr>
<td>f77</td>
<td>Fortran 77 compiler</td>
</tr>
<tr>
<td>f2c</td>
<td>convert fortran source code to C source code</td>
</tr>
<tr>
<td>gcc</td>
<td>GNU C compiler</td>
</tr>
<tr>
<td>g++</td>
<td>GNU C++ compiler</td>
</tr>
<tr>
<td>dbx</td>
<td>command-line symbolic debugger for compiled C or Fortran</td>
</tr>
<tr>
<td>make</td>
<td>recompile programs from modified source</td>
</tr>
<tr>
<td>cflow</td>
<td>generate C flow graph</td>
</tr>
</tbody>
</table>
<h3>Programming libraries (see man library_name)</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">lapack</td>
<td>Fortran 77 routines for numerical linear algebra (supersedes LINPACK and EISPACK)</td>
</tr>
<tr>
<td>X</td>
<td>routines to interface with X window system (no man page &#8212; get the X Toolkit book)</td>
</tr>
<tr>
<td>dbm</td>
<td>database routines</td>
</tr>
<tr>
<td>xdr</td>
<td>library routines for external data representation</td>
</tr>
<tr>
<td>netcdf</td>
<td>routines for machine independent data representation</td>
</tr>
</tbody>
</table>
<h3>Tape manipulation and archiving</h3>
<table border="0" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td width="100">mt</td>
<td>manipulate tape drive and position tape</td>
</tr>
<tr>
<td>dd</td>
<td>unformatted tape read and write; file conversion</td>
</tr>
<tr>
<td>tar</td>
<td>archive disk files on tape or disk</td>
</tr>
<tr>
<td>ltf</td>
<td>read/write ANSI standard label tapes</td>
</tr>
</tbody>
</table>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/common-unix-commands-and-utilities/">Common unix commands and utilities | unix commands and utilities Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/common-unix-commands-and-utilities/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
