<?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>unix Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/unix/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/unix/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 21 Feb 2026 07:13:57 +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>Complete Guide to Emacs: Features, Use Cases, Architecture, and Getting Started</title>
		<link>https://www.scmgalaxy.com/tutorials/complete-guide-to-emacs-features-use-cases-architecture-and-getting-started/</link>
					<comments>https://www.scmgalaxy.com/tutorials/complete-guide-to-emacs-features-use-cases-architecture-and-getting-started/#respond</comments>
		
		<dc:creator><![CDATA[Vijay K]]></dc:creator>
		<pubDate>Thu, 26 Jun 2025 12:14:00 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Customization]]></category>
		<category><![CDATA[DevelopmentTools]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[SoftwareDevelopment]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=12982</guid>

					<description><![CDATA[<p>What is Emacs? Emacs is an open-source, extensible text editor used primarily for programming, though it can be used for [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/complete-guide-to-emacs-features-use-cases-architecture-and-getting-started/">Complete Guide to Emacs: Features, Use Cases, Architecture, and Getting Started</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="570" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-209-1024x570.png" alt="" class="wp-image-12989" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-209-1024x570.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-209-300x167.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-209-768x428.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-209.png 1151w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h3 class="wp-block-heading"><strong>What is Emacs?</strong></h3>



<p class="wp-block-paragraph"><strong>Emacs</strong> is an <strong>open-source, extensible text editor</strong> used primarily for programming, though it can be used for a variety of tasks, from writing and editing to project management. Originally created by <strong>Richard Stallman</strong> in 1976, Emacs has since evolved into one of the most powerful and customizable text editors in the world, beloved by developers, writers, and other power users.</p>



<p class="wp-block-paragraph">Emacs offers a <strong>highly customizable environment</strong> where users can define and extend its behavior using the <strong>Emacs Lisp</strong> programming language. The core philosophy of Emacs revolves around being <strong>self-documenting</strong>, <strong>extendable</strong>, and <strong>operable</strong> on almost any computing platform, from Unix-based systems to Windows.</p>



<p class="wp-block-paragraph">Emacs is more than just a text editor—it&#8217;s often described as a <strong>&#8220;computing environment&#8221;</strong> because of its wide range of features and integrations, including file management, version control, web browsing, and more.</p>



<h4 class="wp-block-heading"><strong>Key Features of Emacs:</strong></h4>



<ol class="wp-block-list">
<li><strong>Extensibility</strong>: Emacs is not just a text editor but a complete <strong>environment</strong> that can be customized and extended using <strong>Emacs Lisp</strong>.</li>



<li><strong>Customization</strong>: Users can configure every part of Emacs, from key bindings to complex workflows, allowing an unparalleled level of personalization.</li>



<li><strong>Integrated Environment</strong>: Emacs integrates tools for <strong>version control</strong> (Git, SVN), <strong>text editing</strong>, <strong>email</strong>, <strong>file browsing</strong>, and much more, all within the same interface.</li>



<li><strong>Cross-Platform</strong>: Emacs can run on various platforms, including <strong>Linux</strong>, <strong>Windows</strong>, <strong>macOS</strong>, and more, ensuring accessibility across different systems.</li>



<li><strong>Robust Community</strong>: Emacs has a vibrant, active community, offering numerous plugins, packages, and resources to extend its capabilities further.</li>
</ol>



<p class="wp-block-paragraph">While Emacs has a steep learning curve, it is highly powerful and flexible, making it a preferred choice for many <strong>programmers</strong>, <strong>scientists</strong>, and <strong>writers</strong>.</p>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h3 class="wp-block-heading"><strong>What Are the Major Use Cases of Emacs?</strong></h3>



<p class="wp-block-paragraph">Emacs is versatile and is used for a wide range of tasks. Below are some of the <strong>major use cases</strong> of Emacs:</p>



<h4 class="wp-block-heading"><strong>1. Software Development:</strong></h4>



<ul class="wp-block-list">
<li><strong>Use Case</strong>: Emacs is widely used by developers for writing and editing code. It supports multiple programming languages (e.g., <strong>Python</strong>, <strong>C/C++</strong>, <strong>JavaScript</strong>, <strong>Ruby</strong>) with syntax highlighting, code completion, and linting.</li>



<li><strong>Example</strong>: A developer working on a <strong>Python</strong> project might use Emacs to write and run Python scripts, check for syntax errors, and view documentation all within the same interface.</li>



<li><strong>Why Emacs?</strong> Emacs offers a customizable development environment with powerful features like <strong>auto-completion</strong>, <strong>integrated debugging</strong>, and <strong>version control</strong> systems like <strong>Git</strong>.</li>
</ul>



<h4 class="wp-block-heading"><strong>2. Text Editing and Writing:</strong></h4>



<ul class="wp-block-list">
<li><strong>Use Case</strong>: Emacs is a great tool for general-purpose text editing and writing, supporting rich text formats (e.g., <strong>Markdown</strong>, <strong>LaTeX</strong>) and allowing users to organize their thoughts.</li>



<li><strong>Example</strong>: Writers can use Emacs to write blog posts in <strong>Markdown</strong>, format LaTeX documents for publication, or edit plain text files.</li>



<li><strong>Why Emacs?</strong> Emacs provides extensive features for manipulating text, from simple tasks (like <strong>searching and replacing</strong>) to advanced functionality (such as <strong>automated formatting</strong> and <strong>spell checking</strong>).</li>
</ul>



<h4 class="wp-block-heading"><strong>3. Project Management:</strong></h4>



<ul class="wp-block-list">
<li><strong>Use Case</strong>: With its powerful <strong>file navigation</strong> and <strong>project management</strong> tools, Emacs allows developers and professionals to manage large projects with ease. Features like <strong>dired</strong> (directory editor) and <strong>org-mode</strong> help with task management and documentation.</li>



<li><strong>Example</strong>: A software engineer working on a large project could use Emacs to manage project files, track TODOs, and write documentation, all in one place.</li>



<li><strong>Why Emacs?</strong> Emacs integrates <strong>version control</strong>, <strong>task lists</strong>, and <strong>file navigation</strong> tools to allow users to stay organized and productive within one editor.</li>
</ul>



<h4 class="wp-block-heading"><strong>4. Writing and Note-Taking:</strong></h4>



<ul class="wp-block-list">
<li><strong>Use Case</strong>: Emacs supports <strong>org-mode</strong>, a powerful tool for organizing notes, to-do lists, and projects in a hierarchical manner. It is particularly popular among people who need to manage their tasks, calendars, and notes.</li>



<li><strong>Example</strong>: A researcher might use <strong>org-mode</strong> to take notes during research, organize thoughts in a structured manner, and track tasks associated with their projects.</li>



<li><strong>Why Emacs?</strong> <strong>org-mode</strong> enables users to manage their notes in an organized, customizable, and efficient way, with easy integration into other tasks like <strong>email</strong> and <strong>calendar</strong> management.</li>
</ul>



<h4 class="wp-block-heading"><strong>5. Email Management:</strong></h4>



<ul class="wp-block-list">
<li><strong>Use Case</strong>: Emacs has robust packages such as <strong>Mu4e</strong> and <strong>Gnus</strong> that allow users to manage their email directly within Emacs. This feature is highly useful for people who prefer staying within a single tool for productivity.</li>



<li><strong>Example</strong>: A user can read, send, and organize their emails in Emacs, without needing to open a separate email client or web application.</li>



<li><strong>Why Emacs?</strong> Emacs integrates email handling with many other tools, providing a streamlined workflow for users who prefer using a single environment for all tasks.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h3 class="wp-block-heading"><strong>How Emacs Works Along with Architecture?</strong></h3>



<figure class="wp-block-image size-full is-resized"><img decoding="async" width="700" height="295" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-210.png" alt="" class="wp-image-12990" style="width:820px;height:auto" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-210.png 700w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-210-300x126.png 300w" sizes="(max-width: 700px) 100vw, 700px" /></figure>



<p class="wp-block-paragraph">Emacs works with a layered architecture, integrating various components and tools that make it a powerful and customizable environment. Below is an overview of how <strong>Emacs works</strong>:</p>



<h4 class="wp-block-heading"><strong>1. Core Emacs:</strong></h4>



<ul class="wp-block-list">
<li>At the heart of Emacs is the <strong>Emacs Lisp</strong> interpreter, which allows users to interact with and extend the editor using the <strong>Lisp programming language</strong>. This gives users the ability to write custom functions, key bindings, and scripts to automate their workflow.</li>



<li><strong>Core Features</strong>: The core of Emacs includes <strong>buffers</strong> (editing windows), <strong>major modes</strong> (for language-specific features like syntax highlighting), <strong>minor modes</strong> (for additional functionalities like line numbering), and <strong>key bindings</strong> (for user-defined commands).</li>
</ul>



<h4 class="wp-block-heading"><strong>2. Extensibility with Emacs Lisp:</strong></h4>



<ul class="wp-block-list">
<li>The power of Emacs lies in its <strong>extensibility</strong> through <strong>Emacs Lisp</strong>. This dynamic scripting language allows users to create and load custom scripts that modify or extend Emacs functionality.</li>



<li><strong>Example</strong>: Users can create custom <strong>key bindings</strong>, define <strong>functions</strong> for specific tasks, and create powerful <strong>extensions</strong> like <strong>calendar integration</strong> or <strong>email management</strong>.</li>
</ul>



<h4 class="wp-block-heading"><strong>3. Emacs Packages:</strong></h4>



<ul class="wp-block-list">
<li><strong>Emacs Packages</strong> are collections of pre-written Lisp code that extend the functionality of Emacs. These packages can be installed via package managers like <strong>MELPA</strong> or <strong>ELPA</strong>, and they offer various features such as <strong>Git integration</strong>, <strong>syntax highlighting for new languages</strong>, <strong>advanced text search</strong>, and <strong>project management</strong>.</li>



<li><strong>Example</strong>: A developer can install the <strong>Magit</strong> package to integrate Git version control directly within Emacs, allowing them to perform Git operations such as <strong>commit</strong>, <strong>push</strong>, and <strong>merge</strong> without leaving the editor.</li>
</ul>



<h4 class="wp-block-heading"><strong>4. Buffer and Window System:</strong></h4>



<ul class="wp-block-list">
<li>Emacs uses a <strong>buffer</strong> system, where every open file or document is represented by a buffer. These buffers can be split into multiple windows, allowing users to view and edit multiple files simultaneously.</li>



<li><strong>Example</strong>: A user working on two different files can have both files open in side-by-side windows (splitting the screen) to make comparisons and edits more efficiently.</li>
</ul>



<h4 class="wp-block-heading"><strong>5. Modes in Emacs:</strong></h4>



<ul class="wp-block-list">
<li>Emacs has <strong>major modes</strong> (for language-specific features like <strong>Python</strong>, <strong>HTML</strong>, <strong>C++</strong>) and <strong>minor modes</strong> (for additional features like <strong>spell checking</strong>, <strong>line numbering</strong>, <strong>syntax highlighting</strong>). Modes enhance the usability and efficiency of Emacs for specific tasks.</li>



<li><strong>Example</strong>: When editing Python code, the <strong>Python mode</strong> provides features like <strong>auto-indentation</strong>, <strong>syntax highlighting</strong>, and <strong>code completion</strong>.</li>
</ul>



<h4 class="wp-block-heading"><strong>6. Communication with External Tools:</strong></h4>



<ul class="wp-block-list">
<li>Emacs supports integration with external tools such as <strong>compilers</strong>, <strong>debuggers</strong>, <strong>shells</strong>, and <strong>version control systems</strong>. Users can invoke these tools directly within Emacs, eliminating the need to switch between multiple applications.</li>



<li><strong>Example</strong>: A programmer can run a <strong>Python script</strong> directly from within Emacs, debug it using Emacs’s built-in debugger, and then commit changes to a Git repository.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h3 class="wp-block-heading"><strong>What Are the Basic Workflow of Emacs?</strong></h3>



<p class="wp-block-paragraph">Emacs provides a highly customizable and flexible workflow. Below is an overview of the basic workflow:</p>



<h4 class="wp-block-heading"><strong>1. Opening Files and Buffers:</strong></h4>



<ul class="wp-block-list">
<li>Files are opened in <strong>buffers</strong>, and each buffer corresponds to an open file or document.</li>



<li>You can open a file using the command: </li>
</ul>



<pre class="wp-block-code"><code>C-x C-f  # Open file command
</code></pre>



<h4 class="wp-block-heading"><strong>2. Navigating Within Files:</strong></h4>



<ul class="wp-block-list">
<li>You can navigate within a file using simple commands such as: </li>
</ul>



<pre class="wp-block-code"><code>C-x C-s  # Save file
C-x C-c  # Exit Emacs
C-p      # Move up one line
C-n      # Move down one line
C-b      # Move left by one character
C-f      # Move right by one character
</code></pre>



<h4 class="wp-block-heading"><strong>3. Customizing the Environment:</strong></h4>



<ul class="wp-block-list">
<li>Emacs allows you to customize nearly every aspect of your editing environment, including key bindings, themes, and plugins.</li>



<li><strong>Example</strong>: You can change the color theme with the command <code>M-x load-theme</code>, or you can define custom keybindings for frequently used tasks.</li>
</ul>



<h4 class="wp-block-heading"><strong>4. Working with Multiple Windows and Buffers:</strong></h4>



<ul class="wp-block-list">
<li>Emacs lets you work with <strong>multiple windows</strong> (for side-by-side editing) and <strong>buffers</strong> (for opened files).</li>



<li><strong>Example</strong>: You can split your screen into multiple windows using commands like: </li>
</ul>



<pre class="wp-block-code"><code>C-x 2  # Split window horizontally
C-x 3  # Split window vertically
</code></pre>



<h4 class="wp-block-heading"><strong>5. Using Package Managers:</strong></h4>



<ul class="wp-block-list">
<li>You can install <strong>packages</strong> and <strong>extensions</strong> to expand the functionality of Emacs. The most common package manager is <strong>MELPA</strong> (Milkypostman’s Emacs Lisp Package Archive).</li>



<li><strong>Example</strong>: To install the <strong>Magit</strong> package for Git integration, you would use:</li>
</ul>



<pre class="wp-block-code"><code>M-x package-install RET magit RET
</code></pre>



<h4 class="wp-block-heading"><strong>6. Saving and Closing Files:</strong></h4>



<ul class="wp-block-list">
<li>To save your changes, use the standard <strong>save command</strong> <code>C-x C-s</code>, and to exit Emacs, use <code>C-x C-c</code>.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h3 class="wp-block-heading"><strong>Step-by-Step Getting Started Guide for Emacs</strong></h3>



<h4 class="wp-block-heading"><strong>Step 1: Install Emacs</strong></h4>



<ul class="wp-block-list">
<li><strong>On Linux</strong>: </li>
</ul>



<pre class="wp-block-code"><code>sudo apt-get install emacs  # For Ubuntu-based systems
sudo yum install emacs      # For Fedora-based systems
</code></pre>



<ul class="wp-block-list">
<li><strong>On macOS</strong>:<br>Use <strong>Homebrew</strong> to install Emacs: </li>
</ul>



<pre class="wp-block-code"><code>brew install emacs
</code></pre>



<ul class="wp-block-list">
<li><strong>On Windows</strong>:<br>Download the installer from the official <a href="https://www.gnu.org/software/emacs/">Emacs website</a>.</li>
</ul>



<h4 class="wp-block-heading"><strong>Step 2: Basic Usage</strong></h4>



<ol class="wp-block-list">
<li>Open Emacs by typing <code>emacs</code> in the terminal or launching it from your desktop.</li>



<li>Open a file using the command <code>C-x C-f</code>.</li>



<li>Start typing and navigating within the file using the arrow keys or <strong>Emacs commands</strong>.</li>
</ol>



<h4 class="wp-block-heading"><strong>Step 3: Customize Your Setup</strong></h4>



<ul class="wp-block-list">
<li>Open the <strong>Emacs init file</strong> to customize your environment (e.g., themes, keybindings). </li>
</ul>



<pre class="wp-block-code"><code>C-x C-f ~/.emacs
</code></pre>



<h4 class="wp-block-heading"><strong>Step 4: Install Packages</strong></h4>



<ul class="wp-block-list">
<li>Use the <strong>package manager</strong> to install additional features. For example, to install <strong>Magit</strong> for Git integration: </li>
</ul>



<pre class="wp-block-code"><code>M-x package-install RET magit RET
</code></pre>



<h4 class="wp-block-heading"><strong>Step 5: Explore Emacs Modes</strong></h4>



<ul class="wp-block-list">
<li>Explore the various <strong>major modes</strong> for programming languages or writing formats. Switch between modes using <code>M-x</code>, followed by the desired mode name (e.g., <code>python-mode</code>).</li>
</ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/complete-guide-to-emacs-features-use-cases-architecture-and-getting-started/">Complete Guide to Emacs: Features, Use Cases, Architecture, and Getting Started</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/complete-guide-to-emacs-features-use-cases-architecture-and-getting-started/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Unix command to find memory usage</title>
		<link>https://www.scmgalaxy.com/tutorials/unix-command-to-find-memory-usage/</link>
					<comments>https://www.scmgalaxy.com/tutorials/unix-command-to-find-memory-usage/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 09:25:06 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2399</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: unix command to find memory usage Monitor processes continuously. Updates every 3 seconds by default. Displays [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/unix-command-to-find-memory-usage/">Unix command to find memory usage</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: unix command to find memory usage</strong></p>
<p>Monitor processes continuously. Updates every 3 seconds by default. Displays useful information such as total memory, memory in use, % of total memory used by each process, % cpu usage of each process, and process ID (PID) of each process. Type &#8216;h&#8217; for help or &#8216;q&#8217; to quit. To stop (&#8216;kill&#8217;) a process, type &#8216;k&#8217; and enter the PID of the process, then enter the signal for the &#8216;kill&#8217; command (see below) or press Enter to use the default signal (terminate).</p>
<p>top<br />
Useful options:<br />
-d <delay_time> Specify time between updates<br />
-u <user> List processes for user <user><br />
-p<PID> List process with ID <PID><br />
-n <num_iterations> Specify number of iterations before quitting</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/unix-command-to-find-memory-usage/">Unix command to find memory usage</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/unix-command-to-find-memory-usage/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Find Application Instance Directory In Unix</title>
		<link>https://www.scmgalaxy.com/tutorials/find-application-instance-directory-in-unix/</link>
					<comments>https://www.scmgalaxy.com/tutorials/find-application-instance-directory-in-unix/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 09:14:54 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2393</guid>

					<description><![CDATA[<p>scmuser created the topic: find application instance directory in unix How to find installed application directory in unix? rajeshkumar replied [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/find-application-instance-directory-in-unix/">Find Application Instance Directory In Unix</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: find application instance directory in unix</strong></p>
<p>How to find installed application directory in unix?</p>
<p><strong>rajeshkumar replied the topic: Re:find application instance directory in unix</strong></p>
<p>use Which command</p>
<p>I mean</p>
<p><code>which java<br />
which perl<br />
which ant<br />
which p4<br />
which svn</code></p>
<p>You will get location of the apps installed in your machine.<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p><strong>rajeshkumar replied the topic: Re:find application instance directory in unix</strong><br />
To search for anything with the terminal, you can either use the commands locate or which.<br />
Locate is used more like a keyword-based search function. For example, if you type in a terminal:</p>
<p><code>locate java</code></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/find-application-instance-directory-in-unix/">Find Application Instance Directory In Unix</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/find-application-instance-directory-in-unix/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Unix command to Know some useful system Information</title>
		<link>https://www.scmgalaxy.com/tutorials/unix-command-to-know-some-useful-system-information/</link>
					<comments>https://www.scmgalaxy.com/tutorials/unix-command-to-know-some-useful-system-information/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 08 Dec 2017 07:09:12 +0000</pubDate>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2309</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Unix command to Know some useful system Information Unix command to Know some useful system Information [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/unix-command-to-know-some-useful-system-information/">Unix command to Know some useful system Information</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Unix command to Know some useful system Information</strong><br />
Unix command to Know some useful system Information</p>
<p>top show system stats and top CPU using processes<br />
uptime show one line summary of system status<br />
who who is on the system and what they are doing<br />
more show text file on display terminal with paging control<br />
uname Knowing machine characteristics such as OS, version etc..</p>
<p>Please add your collection&#8230;</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/unix-command-to-know-some-useful-system-information/">Unix command to Know some useful system Information</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/unix-command-to-know-some-useful-system-information/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Memory Usage In UNIX</title>
		<link>https://www.scmgalaxy.com/tutorials/memory-usage-in-unix/</link>
					<comments>https://www.scmgalaxy.com/tutorials/memory-usage-in-unix/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 30 Nov 2017 10:33:07 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=745</guid>

					<description><![CDATA[<p>aparna created the topic: memory usage in Unix I have a map file and I need to test this file [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/memory-usage-in-unix/">Memory Usage In UNIX</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>aparna created the topic: memory usage in Unix</strong><br />
I have a map file and I need to test this file and get all the information about the memory usage such as, RAM usage. Can I do that by using unix or is there any other good program to use? Any help please?</p>
<p>rajeshkumar replied the topic: Re: memory usage in Unix<br />
Hi,</p>
<p>Using top commands you can find the memory utilization of each process.</p>
<p>To know more about it &#8230;<br />
<a href="http://www.computerhope.com/unix/top.htm">www.computerhope.com/unix/top.htm </a></p>
<p>few useful utility<br />
mpstat reports processors statictics.<br />
vmstat reports virtual memory statistics.<br />
URL &#8211; <a href="http://www.scmgalaxy.com/unix-linux/linux-perfo...stat-and-vmstat.html">www.scmgalaxy.com/unix-linux/linux-perfo&#8230;stat-and-vmstat.html</a><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/memory-usage-in-unix/">Memory Usage In UNIX</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/memory-usage-in-unix/feed/</wfw:commentRss>
			<slash:comments>1</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 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="(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 Understand Epoch &#038; Unix Timestamp &#124; Epoch Converter</title>
		<link>https://www.scmgalaxy.com/tutorials/understanding-epoch-unix-timestamp/</link>
					<comments>https://www.scmgalaxy.com/tutorials/understanding-epoch-unix-timestamp/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 22 Feb 2012 00:00:00 +0000</pubDate>
				<category><![CDATA[Concept & Definition]]></category>
		<category><![CDATA[About Epoch Timestamp]]></category>
		<category><![CDATA[About Unix Timestamp]]></category>
		<category><![CDATA[Epoch]]></category>
		<category><![CDATA[Epoch and Unix]]></category>
		<category><![CDATA[Epoch Converter]]></category>
		<category><![CDATA[Epoch time]]></category>
		<category><![CDATA[Introduction Epoch Timestamp]]></category>
		<category><![CDATA[Introduction Unix Timestamp]]></category>
		<category><![CDATA[Overview Epoch & Unix Timestamp]]></category>
		<category><![CDATA[Timestamp]]></category>
		<category><![CDATA[Understand]]></category>
		<category><![CDATA[Understand Epoch & Unix Timestamp]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[Unix timestamp]]></category>
		<category><![CDATA[What is epoch time]]></category>
		<category><![CDATA[What is unix time]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2012/02/22/understanding-epoch-unix-timestamp/</guid>

					<description><![CDATA[<p>What is epoch time? The Unix epoch (or Unix time or POSIX time or Unix timestamp) is the number of [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/understanding-epoch-unix-timestamp/">How to Understand Epoch &#038; Unix Timestamp | Epoch Converter</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3849 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/02/epoch-unix-timestamp.png" alt="epoch-unix-timestamp" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/02/epoch-unix-timestamp.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/02/epoch-unix-timestamp-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></h2>
<h2>What is epoch time?</h2>
<p>The <strong>Unix epoch</strong> (or <strong>Unix time</strong> or <strong>POSIX time</strong> or <strong>Unix timestamp</strong>) is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap seconds (in ISO 8601: 1970-01-01T00:00:00Z). Literally speaking the epoch is Unix time 0 (midnight 1/1/1970), but &#8216;epoch&#8217; is often used as a synonym for &#8216;Unix time&#8217;. Many Unix systems store epoch dates as a signed 32-bit integer, which might cause problems on January 19, 2038 (known as the Year 2038 problem or Y2038).</p>
<table border="1">
<tbody>
<tr>
<td><strong>Human readable time</strong></td>
<td align="right"><strong>Seconds</strong></td>
</tr>
<tr>
<td>1 hour</td>
<td align="right">3600 seconds</td>
</tr>
<tr>
<td>1 day</td>
<td align="right">86400 seconds</td>
</tr>
<tr>
<td>1 week</td>
<td align="right">604800 seconds</td>
</tr>
<tr>
<td>1 month (30.44 days)</td>
<td align="right">2629743 seconds</td>
</tr>
<tr>
<td>1 year (365.24 days)</td>
<td align="right">31556926 seconds</td>
</tr>
</tbody>
</table>
<h2>How to get the current epoch time in &#8230;</h2>
<table border="0" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td><strong>Perl</strong></td>
<td>time</td>
</tr>
<tr>
<td><strong>PHP</strong></td>
<td>time()</td>
</tr>
<tr>
<td><strong>Ruby</strong></td>
<td>Time.now (or Time.new). To display the epoch: Time.now.to_i</td>
</tr>
<tr>
<td><strong>Python</strong></td>
<td>import time first, then time.time()</td>
</tr>
<tr>
<td><strong>Java</strong></td>
<td>long epoch = System.currentTimeMillis()/1000;</td>
</tr>
<tr>
<td><strong>Microsoft .NET C#</strong></td>
<td>epoch = (DateTime.Now.ToUniversalTime().Ticks &#8211; 621355968000000000) / 10000000;</td>
</tr>
<tr>
<td><strong>VBScript/ASP</strong></td>
<td>DateDiff(&#8220;s&#8221;, &#8220;01/01/1970 00:00:00&#8221;, Now())</td>
</tr>
<tr>
<td><strong>R</strong></td>
<td>as.numeric(Sys.time())</td>
</tr>
<tr>
<td><strong>Erlang</strong></td>
<td>calendar:datetime_to_gregorian_seconds(calendar:now_to_universal_time( now()))-719528*24*3600.</td>
</tr>
<tr>
<td><strong>MySQL</strong></td>
<td>SELECT unix_timestamp(now()) <a href="http://www.epochconverter.com/programming/mysql-from-unixtime.php">More info (+ negative epochs)</a></td>
</tr>
<tr>
<td><strong>PostgreSQL</strong></td>
<td>SELECT extract(epoch FROM now());</td>
</tr>
<tr>
<td><strong>Oracle PL/SQL</strong></td>
<td>SELECT (SYSDATE &#8211; TO_DATE(&#8217;01/01/1970 00:00:00&#8242;, &#8216;MM-DD-YYYY HH24:MI:SS&#8217;)) *<br />
24 * 60 * 60 FROM DUAL</td>
</tr>
<tr>
<td><strong>SQL Server</strong></td>
<td>SELECT DATEDIFF(s, &#8216;1970-01-01 00:00:00&#8217;, GETUTCDATE())</td>
</tr>
<tr>
<td><strong>JavaScript</strong></td>
<td>Math.round(new Date().getTime()/1000.0) getTime() returns time in milliseconds.</td>
</tr>
<tr>
<td><strong>Tcl/Tk</strong></td>
<td>clock seconds</td>
</tr>
<tr>
<td><strong>Unix/Linux Shell</strong></td>
<td>date +%s</td>
</tr>
<tr>
<td><strong>PowerShell</strong></td>
<td>Get-Date -UFormat &#8220;%s&#8221; Produces: 1279152364.63599</td>
</tr>
<tr>
<td><strong>Other OS&#8217;s </strong></td>
<td>Command line: perl -e &#8220;print time&#8221; (If Perl is installed on your system)</td>
</tr>
</tbody>
</table>
<h2>Convert from human readable date to epoch</h2>
<table border="0" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td><strong>Perl</strong></td>
<td>Use the <a href="http://www.epochconverter.com/programming/functions-perl.php">Perl Epoch routines</a></td>
</tr>
<tr>
<td><strong>PHP</strong></td>
<td>mktime(<em>hour</em>, <em>minute</em>, <em>second</em>, <em>month</em>, <em>day</em>, <em>year</em>) <a href="http://www.php.net/mktime" rel="nofollow"><img loading="lazy" decoding="async" src="http://www.epochconverter.com/img/icons/info.png" alt="More info" width="16" height="16" border="0" /></a></td>
</tr>
<tr>
<td><strong>Ruby</strong></td>
<td>Time.local(<em>year</em>, <em>month</em>, <em>day</em>, <em>hour</em>, <em>minute</em>, <em>second</em>, <em>usec</em> ) (or Time.gm for GMT/UTC input). To display add .to_i</td>
</tr>
<tr>
<td><strong>Python</strong></td>
<td>import time first, then int(time.mktime(time.strptime(&#8216;2000-01-01 12:34:00&#8217;, &#8216;%Y-%m-%d %H:%M:%S&#8217;))) &#8211; time.timezone</td>
</tr>
<tr>
<td><strong>Java</strong></td>
<td>long epoch = new java.text.SimpleDateFormat (&#8220;MM/dd/yyyy HH:mm:ss&#8221;).parse(&#8220;01/01/1970 01:00:00&#8221;).getTime();</td>
</tr>
<tr>
<td><strong>VBScript/ASP</strong></td>
<td>DateDiff(&#8220;s&#8221;, &#8220;01/01/1970 00:00:00&#8221;, <em>time field</em>) <a href="http://www.epochconverter.com/programming/#asp"><img loading="lazy" decoding="async" src="http://www.epochconverter.com/img/icons/info.png" alt="More info" width="16" height="16" border="0" /></a></td>
</tr>
<tr>
<td><strong>C</strong></td>
<td>Use the <a href="http://www.epochconverter.com/programming/functions-c.php">C Epoch Converter routines</a></td>
</tr>
<tr>
<td><strong>R</strong></td>
<td>as.numeric(as.POSIXct(&#8220;MM/dd/yyyy HH:mm:ss&#8221;, origin=&#8221;1970-01-01&#8243;))</td>
</tr>
<tr>
<td><strong>MySQL</strong></td>
<td>SELECT unix_timestamp(<em>time</em>) Time format: YYYY-MM-DD HH:MM:SS or YYMMDD or YYYYMMDD<br />
<a href="http://www.epochconverter.com/programming/mysql-from-unixtime.php">More on using Epoch timestamps with MySQL</a></td>
</tr>
<tr>
<td><strong>PostgreSQL</strong></td>
<td>SELECT extract(epoch FROM date(&#8216;2000-01-01 12:34&#8217;));<br />
With timestamp: SELECT EXTRACT(EPOCH FROM TIMESTAMP WITH TIME ZONE &#8216;2001-02-16 20:38:40-08&#8217;);<br />
With interval: SELECT EXTRACT(EPOCH FROM INTERVAL &#8216;5 days 3 hours&#8217;);</td>
</tr>
<tr>
<td><strong>SQL Server</strong></td>
<td>SELECT DATEDIFF(s, &#8216;1970-01-01 00:00:00&#8217;, <em>time field</em>)</td>
</tr>
<tr>
<td><strong>JavaScript</strong></td>
<td>Use the <a href="http://www.epochconverter.com/programming/#javascript">JavaScript Date object</a></td>
</tr>
<tr>
<td><strong>Unix/Linux Shell</strong></td>
<td>date +%s -d&#8221;Jan 1, 1980 00:00:01&#8243; Replace &#8216;-d&#8217; with &#8216;-ud&#8217; to input in GMT/UTC time.</td>
</tr>
</tbody>
</table>
<h2>Convert from epoch to human readable date</h2>
<table border="0" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td><strong>Perl</strong></td>
<td>Use the <a href="http://www.epochconverter.com/programming/functions-perl.php">Perl Epoch routines</a></td>
</tr>
<tr>
<td><strong>PHP</strong></td>
<td>date(<em>output format</em>, <em>epoch</em>); Output format example: &#8216;r&#8217; = RFC 2822 date <a href="http://nl2.php.net/date" rel="nofollow"><img loading="lazy" decoding="async" src="http://www.epochconverter.com/img/icons/info.png" alt="More info" width="16" height="16" border="0" /></a></td>
</tr>
<tr>
<td><strong>Ruby</strong></td>
<td>Time.at(<em>epoch</em>)</td>
</tr>
<tr>
<td><strong>Python</strong></td>
<td>import time first, then time.strftime(&#8220;%a, %d %b %Y %H:%M:%S +0000&#8221;, time.localtime(<em>epoch</em>)) Replace time.localtime with time.gmtime for GMT time. <a href="http://docs.python.org/lib/module-time.html" rel="nofollow"><img loading="lazy" decoding="async" src="http://www.epochconverter.com/img/icons/info.png" alt="More info" width="16" height="16" border="0" /></a></td>
</tr>
<tr>
<td><strong>Java</strong></td>
<td>String date = new java.text.SimpleDateFormat(&#8220;MM/dd/yyyy HH:mm:ss&#8221;).format(new java.util.Date (<em>epoch</em>*1000));</td>
</tr>
<tr>
<td><strong>VBScript/ASP</strong></td>
<td>DateAdd(&#8220;s&#8221;, <em>epoch</em>, &#8220;01/01/1970 00:00:00&#8221;) <a href="http://www.epochconverter.com/programming/#asp"><img loading="lazy" decoding="async" src="http://www.epochconverter.com/img/icons/info.png" alt="More info" width="16" height="16" border="0" /></a></td>
</tr>
<tr>
<td><strong>C</strong></td>
<td>Use the <a href="http://www.epochconverter.com/programming/functions-c.php">C Epoch Converter routines</a></td>
</tr>
<tr>
<td><strong>R</strong></td>
<td>as.POSIXct(epoch, origin=&#8221;1970-01-01&#8243;)</td>
</tr>
<tr>
<td><strong>MySQL</strong></td>
<td>from_unixtime(<em>epoch</em>, <em>optional output format</em>) The default output format is YYY-MM-DD HH:MM:SS <a href="http://www.epochconverter.com/programming/mysql-from-unixtime.php">more &#8230;</a></td>
</tr>
<tr>
<td><strong>PostgreSQL</strong></td>
<td>PostgreSQL version 8.1 and higher: SELECT to_timestamp(<em>epoch</em>); <a href="http://www.postgresql.org/docs/8.1/static/functions-formatting.html" rel="nofollow"><img loading="lazy" decoding="async" src="http://www.epochconverter.com/img/icons/info.png" alt="More info" width="16" height="16" border="0" /></a> Older versions: SELECT TIMESTAMP WITH TIME ZONE &#8216;epoch&#8217; + <em>epoch</em> * INTERVAL &#8216;1 second&#8217;;</td>
</tr>
<tr>
<td><strong>Oracle PL/SQL</strong></td>
<td>SELECT to_date(&#8217;01-JAN-1970&#8242;,&#8217;dd-mon-yyyy&#8217;)+(1326357743/60/60/24) from dual<br />
Replace 1326357743 with epoch.</td>
</tr>
<tr>
<td><strong>SQL Server</strong></td>
<td>DATEADD(s, <em>epoch</em>, &#8216;1970-01-01 00:00:00&#8217;)</td>
</tr>
<tr>
<td><strong>Microsoft Excel</strong></td>
<td>=(A1 / 86400) + 25569 Format the result cell for date/time, the result will be in GMT time (A1 is the cell with the epoch number). For other time zones: =((A1 +/- <a href="http://www.epochconverter.com/epoch/timezones.php">time zone adjustment</a>) / 86400) + 25569.</td>
</tr>
<tr>
<td><strong>Crystal Reports</strong></td>
<td>DateAdd(&#8220;s&#8221;, {EpochTimeStampField}-14400, #1/1/1970 00:00:00#) -14400 used for Eastern Standard Time. See <a href="http://www.epochconverter.com/epoch/timezones.php">Time Zones</a>.</td>
</tr>
<tr>
<td><strong>JavaScript</strong></td>
<td>Use the <a href="http://www.epochconverter.com/programming/#javascript">JavaScript Date object</a></td>
</tr>
<tr>
<td><strong>Tcl/Tk</strong></td>
<td>clock format 1325376000 <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/clock.htm" rel="nofollow"><img loading="lazy" decoding="async" src="http://www.epochconverter.com/img/icons/info.png" alt="More info" width="16" height="16" border="0" /></a></td>
</tr>
<tr>
<td><strong>Unix/Linux Shell</strong></td>
<td>date -d @1190000000 Replace 1190000000 with your epoch, needs recent version of &#8216;date&#8217;. Replace &#8216;-d&#8217; with &#8216;-ud&#8217; for GMT/UTC time.</td>
</tr>
<tr>
<td><strong>PowerShell</strong></td>
<td>Function get-epochDate ($epochDate) { [timezone]::CurrentTimeZone.ToLocalTime(([datetime]&#8217;1/1/1970&#8242;).AddSeconds($epochDate)) }, then use: get-epochDate 1279152364. Works for Windows PowerShell v1 and v2</td>
</tr>
<tr>
<td><strong>Other OS&#8217;s</strong></td>
<td>Command line: perl -e &#8220;print scalar(localtime(<em>epoch</em>))&#8221; (If Perl is installed) Replace &#8216;localtime&#8217; with &#8216;gmtime&#8217; for GMT/UTC time.</td>
</tr>
</tbody>
</table>
<p><strong>Reference</strong></p>
<p><a href="http://www.epochconverter.com/" target="_blank" rel="noopener">http://www.epochconverter.com/</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/understanding-epoch-unix-timestamp/">How to Understand Epoch &#038; Unix Timestamp | Epoch Converter</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/understanding-epoch-unix-timestamp/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>
		<item>
		<title>Unix Sed Quick Reference</title>
		<link>https://www.scmgalaxy.com/tutorials/unix-sed-quick-reference/</link>
					<comments>https://www.scmgalaxy.com/tutorials/unix-sed-quick-reference/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 23 Nov 2010 09:49:04 +0000</pubDate>
				<category><![CDATA[Unix / Linux]]></category>
		<category><![CDATA[Introduction of Unix Sed]]></category>
		<category><![CDATA[Quick]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Sed]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[Unix Sed]]></category>
		<category><![CDATA[Unix sed command]]></category>
		<category><![CDATA[Unix Sed Guide]]></category>
		<category><![CDATA[UNIX SED Introduction]]></category>
		<category><![CDATA[Unix Sed Overview]]></category>
		<category><![CDATA[UNIX Sed Working Method]]></category>
		<category><![CDATA[What is Unix sed]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/11/23/unix-sed-quick-reference/</guid>

					<description><![CDATA[<p>UNIX SED Introduction · Sed is a “non-interactive” stream-oriented editor. Since its an “non-interactive” it can be used to automate [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/unix-sed-quick-reference/">Unix Sed Quick 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-4353" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/11/unix-sed-quick-reference.png" alt="unix-sed-quick-reference" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/11/unix-sed-quick-reference.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/11/unix-sed-quick-reference-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="font-family: Calibri;"><span style="font-size: small;"><span style="color: #000000;">UNIX SED Introduction</span></span></span></span></strong></p>
<p class="MsoListParagraphCxSpFirst" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"><span style="color: #000000;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span> </span></span><span style="font-family: Calibri; font-size: small;">Sed is a “non-interactive” stream-oriented editor. Since its an “non-interactive” it can be used to automate editing.</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"><span style="color: #000000;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span> </span></span><span style="font-family: Calibri; font-size: small;">This allows you to edit multiple files, or to perform common editing operations without opening VI or emacs.</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"><span style="color: #000000;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span> </span></span><span style="font-family: Calibri; font-size: small;">Sed reads from a file or from its standard input and outputs to its standard output.</span></span></p>
<p class="MsoListParagraphCxSpLast" style="text-indent: -0.25in; margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1;"><span style="color: #000000;"><span style="font-family: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol;"><span style="mso-list: Ignore;"><span style="font-size: small;">·</span> </span></span><span style="font-size: small;"><span style="font-family: Calibri;"> Sed has two buffers which are called pattern buffer and hold buffer. Both are initially empty.</span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="color: #000000;">UNIX Sed Working Method</span></span></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-family: Calibri; color: #000000; font-size: small;">This is called as one execution cycle. Cycle continues till end of file/input is reached.</span></p>
<p class="MsoListParagraphCxSpFirst" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2;"><span style="color: #000000;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: Ignore;"><span style="font-family: Calibri; font-size: small;">1.</span> </span></span><span style="font-family: Calibri; font-size: small;">Read a entire line from stdin/file.</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2;"><span style="color: #000000;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: Ignore;"><span style="font-family: Calibri; font-size: small;">2.</span> </span></span><span style="font-family: Calibri; font-size: small;">Removes any trailing newline.</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2;"><span style="color: #000000;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: Ignore;"><span style="font-family: Calibri; font-size: small;">3.</span> </span></span><span style="font-family: Calibri; font-size: small;">Places the line, in its pattern buffer.</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l1 level1 lfo2;"><span style="color: #000000;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: Ignore;"><span style="font-family: Calibri; font-size: small;">4.</span> </span></span><span style="font-family: Calibri; font-size: small;">Modify the pattern buffer according to the supplied commands</span></span></p>
<p class="MsoListParagraphCxSpLast" style="text-indent: -0.25in; margin: 0in 0in 10pt 0.5in; mso-list: l1 level1 lfo2;"><span style="color: #000000;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="mso-list: Ignore;"><span style="font-family: Calibri; font-size: small;">5.</span> </span></span><span style="font-family: Calibri; font-size: small;">Print the pattern buffer to stdout.</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="color: #000000;">Printing Operation in Sed</span></span></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-family: Calibri; color: #000000; font-size: small;">Linux Sed command allows you to print only specific lines based on the line number or pattern matches. <strong style="mso-bidi-font-weight: normal;">“p” </strong>is a command for printing the data from the pattern buffer.</span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">Syntax:</span></em></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;"># sed -n &#8216;ADDRESS&#8217;p filename</span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt 0.5in;"><span style="color: #000000;"><em style="mso-bidi-font-style: normal;"><span style="line-height: 115%;"># sed -n &#8216;/PATTERN/p&#8217; filename</span></em></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-family: Calibri; color: #000000; font-size: small;">Create the txt file <strong style="mso-bidi-font-weight: normal;">sample.txt</strong> that will be used in all examples below.</span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;"># cat sample.txt</span></em></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">1. Linux &#8211; Sysadmin, Scripting etc.</span></em></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">2. Databases &#8211; Oracle, mySQL etc.</span></em></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">3. Hardware</span></em></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">4. Security (Firewall, Network, Online Security etc)</span></em></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">5. Storage</span></em></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">6. Cool gadgets and websites</span></em></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">7. Productivity (Too many technologies to explore)</span></em></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">8. Website Design</span></em></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">9. Software Development</span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="line-height: 115%;"><span style="color: #000000;">10.Windows- Sysadmin, reboot etc.</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="color: #000000;">Sed Address Format 1: NUMBER</span></span></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-family: Calibri; color: #000000; font-size: small;">This will only match Nth line in the input.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="color: #000000;">#sed –n ‘N’p filename</span></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-family: Calibri; color: #000000; font-size: small;">For example, 3p prints 3<sup>rd</sup> line of the input file sample.txt as below</span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;"># sed -n &#8216;3&#8217;p thegeekstuff.txt</span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt 0.5in;"><span style="color: #000000;"><em style="mso-bidi-font-style: normal;"><span style="line-height: 115%;">3. Hardware</span></em> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="color: #000000;">Sed Address Format 2: NUMBER1~NUMBER2</span></span></span></span></strong></p>
<p><span style="color: #000000;">M~N with “p” command prints every Nth line starting from line M.<br />
</span><strong><br />
<strong><span style="color: #000000;"># sed -n ‘M~N’p filename</span></strong></strong></p>
<p><span style="color: #000000;">For example, 3~2p prints every 2nd line starting from 3rd line as shown below.</span></p>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;"># sed -n '3~2'p thegeekstuff.txt</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">3. Hardware</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">5. Storage</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">7. Productivity (Too many technologies to explore)</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">9. Software Development</span></span></em></pre>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-outline-level: 3;"><strong><span style="text-decoration: underline;"><span style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="color: #000000;">Sed Address Format 3: START,END</span></span></span></span></span></strong></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-family: Calibri; color: #000000; font-size: small;">M,N with “p” command prints Mth line to Nth line.<br />
</span><strong><br />
<span style="font-family: Calibri; color: #000000; font-size: small;"># sed -n ‘M,N’p filename</span></strong></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 10pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><span style="mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="color: #000000;">For example, 4,8p prints from 4th line to 8th line from input file thegeekstuff.txt</span></span></span></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;"># sed -n &#8216;4,8&#8217;p thegeekstuff.txt</span></em></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">4. Security (Firewall, Network, Online Security etc)</span></em></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">5. Storage</span></em></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">6. Cool gadgets and websites</span></em></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">7. Productivity (Too many technologies to explore)</span></em></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">8. Website Design</span></em></p>
<h3 style="margin: auto 0in;"><span style="text-decoration: underline;"><span style="color: #000000;">Sed Address Format 4: ‘$’ Last Line</span></span></h3>
<p><span style="color: #000000;">$ with “p” command matches only the last line from the input.<br />
</span><strong><br />
<strong><span style="color: #000000;"># sed -n ‘$’p filename</span></strong></strong></p>
<p><span style="color: #000000;">For example, $p prints only the last line as shown below.</span></p>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;"># sed -n '$'p thegeekstuff.txt</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">10.Windows- Sysadmin, reboot etc.</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-family: Courier New; font-size: x-small;"> </span></em></pre>
<h3 style="margin: auto 0in;"><span style="text-decoration: underline;"><span style="color: #000000;">Sed Address Format 5: NUMBER,$</span></span></h3>
<p><span style="color: #000000;">N,$ with “p” command prints from Nth line to end of file.<br />
</span><strong><br />
<strong><span style="color: #000000;"># sed -n ‘N,$p’ filename</span></strong></strong></p>
<p><span style="color: #000000;">For example 4,$p prints from 4th line to end of file.</span></p>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;"># sed -n '4,$p' thegeekstuff.txt</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">4. Security (Firewall, Network, Online Security etc)</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">5. Storage</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">6. Cool gadgets and websites</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">7. Productivity (Too many technologies to explore)</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">8. Website Design</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">9. Software Development</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-family: Courier New; font-size: x-small;">10.Windows- Sysadmin, reboot etc.</span></em></pre>
<h3 style="margin: auto 0in;"><span style="text-decoration: underline;"><span style="color: #000000;">Sed Pattern Format 1: PATTERN</span></span></h3>
<p><span style="color: #000000;">PATTERN could be unix regular expression. The below command prints only the line which matches the given pattern.<br />
</span><strong><br />
<strong><span style="color: #000000;"># sed -n /PATTERN/p filename</span></strong></strong></p>
<p><span style="color: #000000;">For example, following prints the line only which matches the pattern “Sysadmin”.</span></p>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;"># sed -n /Sysadmin/p thegeekstuff.txt</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">1. Linux - Sysadmin, Scripting etc.</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-family: Courier New; font-size: x-small;">10.Windows- Sysadmin, reboot etc.</span></em></pre>
<h3 style="margin: auto 0in;"><span style="text-decoration: underline;"><span style="color: #000000;">Sed Pattern Format 2: /PATTERN/,ADDRESS</span></span></h3>
<p><span style="color: #000000;"><strong># sed -n ‘/PATTERN/,Np’ filename</strong></span></p>
<p><span style="color: #000000;">For example, following prints lines which matches the pattern to Nth line, from input. 3rd line matches the pattern “Hardware”, so it prints from 3rd line to 6th line.</span></p>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;"># sed -n '/Hardware/,6p' thegeekstuff.txt</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">3. Hardware</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">4. Security (Firewall, Network, Online Security etc)</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">5. Storage</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">6. Cool gadgets and websites</span></span></em></pre>
<h3 style="margin: auto 0in;"><span style="text-decoration: underline;"><span style="color: #000000;">Sed Pattern Format 3: ADDRESS,/PATTERN/</span></span></h3>
<p><span style="color: #000000;">It prints from the Nth line of the input, to the line which matches the pattern. If the pattern doesnt match, it prints upto end of the input.<br />
</span><strong><br />
<strong><span style="color: #000000;"># sed -n ‘N,/PATTERN/p’ filename</span></strong></strong></p>
<p><span style="color: #000000;">For example, 4th line matches the pattern “Security”, so it prints from 3rd line to 4th line.</span></p>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;"># sed -n '3,/Security/p' thegeekstuff.txt</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">3. Hardware</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-family: Courier New; font-size: x-small;">4. Security (Firewall, Network, Online Security etc)</span></em></pre>
<h3 style="margin: auto 0in;"><span style="text-decoration: underline;"><span style="color: #000000;">Sed Pattern Format 4: /PATTERN/,$</span></span></h3>
<p><span style="color: #000000;">It prints from the line matches the given pattern to end of file.<br />
</span><strong><br />
<strong><span style="color: #000000;"># sed -n ‘/PATTERN/,$p’ filename</span></strong></strong></p>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;"># sed -n '/Website/,$p' thegeekstuff.txt</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">8. Website Design</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">9. Software Development</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-family: Courier New; font-size: x-small;">10.Windows- Sysadmin, reboot etc.</span></em></pre>
<h3 style="margin: auto 0in;"><span style="text-decoration: underline;"><span style="color: #000000;">Sed Pattern Format 5: /PATTERN/,+N</span></span></h3>
<p><span style="color: #000000;">It prints the lines which matches the pattern and next N lines following the matched line.<br />
</span><strong><br />
<strong><span style="color: #000000;"># sed -n ‘/PATTERN/,+Np’ filename</span></strong></strong></p>
<p><span style="color: #000000;">For example, following prints the 5th line which matches the pattern /Storage/ and next two lines following /Storage/.</span></p>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;"># sed -n '/Storage/,+2p' thegeekstuff.txt</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">5. Storage</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">6. Cool gadgets and websites</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-family: Courier New; font-size: x-small;">7. Productivity (Too many technologies to explore)</span></em></pre>
<h3 style="margin: auto 0in;"><span style="text-decoration: underline;"><span style="color: #000000;">Sed Pattern Format 6: /PATTERN/,/PATTERN/</span></span></h3>
<p><span style="color: #000000;">Prints the section of file between two regular expression (including the matched line ).<br />
</span><strong><br />
<strong><span style="color: #000000;"># sed -n ‘/P1/,/P2/p’ filename</span></strong></strong></p>
<p><span style="color: #000000;">For example, 5th line matches “Storage” and 8th line matches “Design”, so it prints 5th to 8th.</span></p>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;"># sed -n '/Storage/,/Design/p' thegeekstuff.txt</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">5. Storage</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">6. Cool gadgets and websites</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-size: x-small;"><span style="font-family: Courier New;">7. Productivity (Too many technologies to explore)</span></span></em></pre>
<pre style="margin-left: 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="font-family: Courier New; font-size: x-small;">8. Website Design</span></em></pre>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="line-height: 115%; font-size: 12pt;"><span style="font-family: Calibri;"><span style="color: #000000;">Delete File Lines Using Address and pattern in Sed</span></span></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="line-height: 115%; font-size: 12pt;"><span style="font-family: Calibri;"><span style="color: #000000;">“p” command prints the buffer (Remember to use “-n” option with “p”)</span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="line-height: 115%; font-size: 12pt;"><span style="font-family: Calibri;"><span style="color: #000000;">“d” command is just opposite, it’s for deletion. “d” will delete the pattern space buffer and immediately starts the next cycle.</span></span></span></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;">Syntax:</span></em></p>
<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt 0.5in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><em style="mso-bidi-font-style: normal;"><span style="color: #000000;"># sed &#8216;ADDRESS&#8217;d filename</span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt 0.5in;"><em style="mso-bidi-font-style: normal;"><span style="line-height: 115%;"><span style="color: #000000;"># sed /PATTERN/d filename</span></span></em></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-family: Calibri;"><span style="font-size: small;"><span style="color: #000000;">Delete the Nth line.</span></span></span></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-family: Calibri;"><span style="font-size: small;"><span style="color: #000000;">“Nd” delete the Nth line and prints the other lines.</span></span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-family: Calibri;"><span style="font-size: small;"><span style="color: #000000;">For example, 3d deletes 3<sup>rd</sup> line and prints other lines.</span></span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-size: small;"><span style="color: #000000;"> <em style="mso-bidi-font-style: normal;">$sed 3d sample.txt</em></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-family: Calibri;"><span style="font-size: small;"><span style="color: #000000;">Delete Starting from 3<sup>rd</sup> line and every 2<sup>nd</sup> line from there.</span></span></span></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-size: small;"><span style="color: #000000;"> <em style="mso-bidi-font-style: normal;">$sed ‘3~2d’ sample.txt</em></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-family: Calibri;"><span style="font-size: small;"><span style="color: #000000;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Delete from 4ht to 8<sup>th</sup> line from file</span></span></strong></span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-size: small;"><span style="color: #000000;"> <em style="mso-bidi-font-style: normal;">$sed ‘4,8d’ sample.txt</em></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-family: Calibri;"><span style="font-size: small;"><span style="color: #000000;">Delete the last line from input</span></span></span></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-size: small;"><span style="color: #000000;"> <em style="mso-bidi-font-style: normal;">$sed ‘$d’ sample.txt</em></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-family: Calibri;"><span style="font-size: small;"><span style="color: #000000;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;">Delete the line which matches the given pattern from input</span></span></strong></span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-size: small;"><span style="color: #000000;"> <em style="mso-bidi-font-style: normal;">$sed /Sysadmin/d sample.txt </em></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-family: Calibri;"><span style="font-size: small;"><span style="color: #000000;">Delete the line from which matches the given pattern to end of the file</span></span></span></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-size: small;"><span style="color: #000000;"> <em style="mso-bidi-font-style: normal;">$sed ‘/Website/ ,$d’ sample.txt</em></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-family: Calibri;"><span style="font-size: small;"><span style="color: #000000;">Delete the line from which matches the given pattern and 2 lines next to that</span></span></span></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-size: small;"><span style="color: #000000;"> <em style="mso-bidi-font-style: normal;">$sed ‘Storage/ ,+2d’ sample.txt</em></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><strong style="mso-bidi-font-weight: normal;"><span style="text-decoration: underline;"><span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-family: Calibri;"><span style="font-size: small;"><span style="color: #000000;">Delete blank line from a file using sed.</span></span></span></span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><em style="mso-bidi-font-style: normal;"><span style="font-size: small;"><span style="color: #000000;"> $sed ‘/^$/d’ sample.txt</span></span></em></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/unix-sed-quick-reference/">Unix Sed Quick Reference</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/unix-sed-quick-reference/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Unix Command: Grep &#8211; Quick Reference &#8211; Pattern &#8211; Examples &#8211; Options</title>
		<link>https://www.scmgalaxy.com/tutorials/unix-command-grep/</link>
					<comments>https://www.scmgalaxy.com/tutorials/unix-command-grep/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 16 Apr 2010 08:52:59 +0000</pubDate>
				<category><![CDATA[Unix - Linux]]></category>
		<category><![CDATA[Basic grep commands]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[Grep]]></category>
		<category><![CDATA[Grep command line options]]></category>
		<category><![CDATA[Grep Unix Command Guide]]></category>
		<category><![CDATA[Grep Unix Command Introduction]]></category>
		<category><![CDATA[Grep Unix Command Overview]]></category>
		<category><![CDATA[Grep Unix Command Quick reference]]></category>
		<category><![CDATA[Grep Unix Commands With Examples]]></category>
		<category><![CDATA[How to Use Grep]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[Unix command grep examples]]></category>
		<category><![CDATA[Unix grep command match pattern]]></category>
		<category><![CDATA[Unix Grep Command Options]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/04/16/unix-command-grep/</guid>

					<description><![CDATA[<p>Grep scans its input for a pattern, and can display the selected pattern, the line numbers of the filenames where [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/unix-command-grep/">Unix Command: Grep &#8211; Quick Reference &#8211; Pattern &#8211; Examples &#8211; Options</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-4369" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/unix-command-grep.png" alt="unix-command-grep" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/unix-command-grep.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/04/unix-command-grep-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><span style="font-size: small;"><span style="font-family: verdana,geneva;"><b>Grep </b>scans its input for a pattern, and can display the selected pattern, the line numbers of the filenames where the pattern occurs, The command uses the following syntax<br />
<i></i></span></span></p>
<p><span style="font-size: small;"><u><span style="font-family: verdana,geneva;"><i>grep options pattern filesname(s)</i></span></u><span style="font-family: verdana,geneva;"><br />
</span></span></p>
<p><span style="font-size: small;"><span style="font-family: verdana,geneva;">grep searches for pattern in one or more filenames.<br />
</span></span></p>
<p><b><span style="font-size: small;"><span style="font-family: verdana,geneva;">Example for <u>Grep</u> command: </span></span></b></p>
<ol>
<li><span style="font-size: small;"><span style="font-family: verdana,geneva;">grep “sales” emp.lst</span></span></li>
<li><span style="font-size: small;"><span style="font-family: verdana,geneva;">grep “director” emp1.lst emp2.lst</span></span></li>
<li><span style="font-size: small;"><span style="font-family: verdana,geneva;">grep ‘jai sharma’ emp.lst</span></span></li>
<li><span style="font-size: small;"><span style="font-family: verdana,geneva;">grep “jai Sharma $var” emp.lst</span></span></li>
</ol>
<p><span style="font-size: small;"><span style="font-family: verdana,geneva;"><b>&#8212;&#8212;&#8212;&#8212;&#8212;-Grep options&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</b></span></span></p>
<p><span style="font-size: small;"><span style="font-family: verdana,geneva;"><b>Ignoring Case (i)</b> When you look for a name, but you are not sure of the case, grep offers the –i (ignore) option which ignores case for patteen matching.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: verdana,geneva;">&gt; Grep –i ‘agarwal’ emp.lst</span></span></p>
<p><span style="font-size: small;"><span style="font-family: verdana,geneva;"><b>Deleting Lines  or Inverse(-v):</b> -v (inverse) option selects all except lines containing the pattern. Thus, you can create a file other list containing all but director.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: verdana,geneva;">&gt; Grep –v “director” emp.lst &gt; other list</span></span></p>
<p><span style="font-size: small;"><span style="font-family: verdana,geneva;"><b>Displaying line Numbers (-n): </b>The –n(number) options displays the line numbers containing the pattern, along with the lines:</span></span></p>
<p><span style="font-size: small;"><span style="font-family: verdana,geneva;">&gt; grep –n ‘marketing’ emp.lst</span></span></p>
<p><span style="font-size: small;"><span style="font-family: verdana,geneva;"><b>Counting Line Containing patterns (-c):</b> The –c (count) option counts the number of lines containing the pattern ( which is not the same as number of occurrences).</span></span></p>
<ol>
<li><span style="font-size: small;"><span style="font-family: verdana,geneva;">grep –c director emp.lst</span></span></li>
<li><span style="font-size: small;"><span style="font-family: verdana,geneva;">grep –c director emp*.lst</span></span></li>
</ol>
<p><span style="font-size: small;"><span style="font-family: verdana,geneva;"><b>Displaying Filenames (-l):</b> The –l (list) option displays only the files names of files containing the pattern.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: verdana,geneva;">&gt; grep –l ‘manager’ *.lst</span></span></p>
<p><span style="font-size: small;"><span style="font-family: verdana,geneva;"><b>Matching Multiple Patterns(-e):</b> With the –e option, you can match the three agarwals by using grep like this:</span></span></p>
<p><span style="font-size: small;"><span style="font-family: verdana,geneva;">&gt; grep –e “Agarwal” –e “aggarwal” –e “agarwal” emp.lst</span></span></p>
<p><span style="font-size: small;"><span style="font-family: verdana,geneva;"><b>Taking patterns from a file (-f):</b> we can place all patterns in a separate file, one pattern per lin. Grep takes inputs from there with the –f option:</span></span></p>
<p><span style="font-size: small;"><span style="font-family: verdana,geneva;">&gt; grep –f pattern.lst emp.lst</span></span></p>
<p><span style="font-size: small;"><span style="font-family: verdana,geneva;"> </span></span></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/unix-command-grep/">Unix Command: Grep &#8211; Quick Reference &#8211; Pattern &#8211; Examples &#8211; Options</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/unix-command-grep/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SET UNIX HOME DIR PROPERTY using ANT</title>
		<link>https://www.scmgalaxy.com/tutorials/set-unix-home-dir-property-using-ant/</link>
					<comments>https://www.scmgalaxy.com/tutorials/set-unix-home-dir-property-using-ant/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 20 Jun 2009 05:18:26 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[Unix - Linux]]></category>
		<category><![CDATA[ANT]]></category>
		<category><![CDATA[Home directory]]></category>
		<category><![CDATA[HOMEDIR]]></category>
		<category><![CDATA[HOMEDIR in build.xml]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[properties]]></category>
		<category><![CDATA[Set]]></category>
		<category><![CDATA[Set Home directory properites in Unix]]></category>
		<category><![CDATA[Set properties]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[Unix HOME DIR PROPERTY setting by Ant]]></category>
		<category><![CDATA[Using]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2009/06/20/set-unix-home-dir-property-using-ant/</guid>

					<description><![CDATA[<p>Set properties HOMEDIR in build.xml which will be set through user logged in the current system.. Example: &#60;project name=&#8221;test&#8221; default=&#8221;myhome&#8221;&#62; [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/set-unix-home-dir-property-using-ant/">SET UNIX HOME DIR PROPERTY using ANT</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><!-- [if gte mso 9]><xml>  <w:WordDocument>   <w:View>Normal</w:View>   <w:Zoom>0</w:Zoom>   <w:TrackMoves/>   <w:TrackFormatting/>   <w:PunctuationKerning/>   <w:ValidateAgainstSchemas/>   <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>   <w:IgnoreMixedContent>false</w:IgnoreMixedContent>   <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>   <w:DoNotPromoteQF/>   <w:LidThemeOther>EN-US</w:LidThemeOther>   <w:LidThemeAsian>X-NONE</w:LidThemeAsian>   <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>   <w:Compatibility>    <w:BreakWrappedTables/>    <w:SnapToGridInCell/>    <w:WrapTextWithPunct/>    <w:UseAsianBreakRules/>    <w:DontGrowAutofit/>    <w:SplitPgBreakAndParaMark/>    <w:DontVertAlignCellWithSp/>    <w:DontBreakConstrainedForcedTables/>    <w:DontVertAlignInTxbx/>    <w:Word11KerningPairs/>    <w:CachedColBalance/>   </w:Compatibility>   <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>   <m:mathPr>    <m:mathFont m:val="Cambria Math"/>    <m:brkBin m:val="before"/>    <m:brkBinSub m:val="--"/>    <m:smallFrac m:val="off"/>    <m:dispDef/>    <m:lMargin m:val="0"/>    <m:rMargin m:val="0"/>    <m:defJc m:val="centerGroup"/>    <m:wrapIndent m:val="1440"/>    <m:intLim m:val="subSup"/>    <m:naryLim m:val="undOvr"/>   </m:mathPr></w:WordDocument> </xml><![endif]--><!-- [if gte mso 9]><xml>  <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true" DefSemiHidden="true" DefQFormat="false" DefPriority="99" LatentStyleCount="267">   <w:LsdException Locked="false" Priority="0" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Normal"/>   <w:LsdException Locked="false" Priority="9" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>   <w:LsdException Locked="false" Priority="39" Name="toc 1"/>   <w:LsdException Locked="false" Priority="39" Name="toc 2"/>   <w:LsdException Locked="false" Priority="39" Name="toc 3"/>   <w:LsdException Locked="false" Priority="39" Name="toc 4"/>   <w:LsdException Locked="false" Priority="39" Name="toc 5"/>   <w:LsdException Locked="false" Priority="39" Name="toc 6"/>   <w:LsdException Locked="false" Priority="39" Name="toc 7"/>   <w:LsdException Locked="false" Priority="39" Name="toc 8"/>   <w:LsdException Locked="false" Priority="39" Name="toc 9"/>   <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>   <w:LsdException Locked="false" Priority="10" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Title"/>   <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>   <w:LsdException Locked="false" Priority="11" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>   <w:LsdException Locked="false" Priority="22" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Strong"/>   <w:LsdException Locked="false" Priority="20" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>   <w:LsdException Locked="false" Priority="59" SemiHidden="false" UnhideWhenUsed="false" Name="Table Grid"/>   <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>   <w:LsdException Locked="false" Priority="1" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 1"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 1"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 1"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>   <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>   <w:LsdException Locked="false" Priority="34" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>   <w:LsdException Locked="false" Priority="29" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Quote"/>   <w:LsdException Locked="false" Priority="30" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 1"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 1"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 2"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 2"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 2"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 2"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 2"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 3"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 3"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 3"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 3"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 3"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 4"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 4"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 4"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 4"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 4"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 5"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 5"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 5"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 5"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 5"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 6"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 6"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 6"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 6"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 6"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>   <w:LsdException Locked="false" Priority="19" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>   <w:LsdException Locked="false" Priority="21" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>   <w:LsdException Locked="false" Priority="31" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>   <w:LsdException Locked="false" Priority="32" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>   <w:LsdException Locked="false" Priority="33" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>   <w:LsdException Locked="false" Priority="37" Name="Bibliography"/>   <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>  </w:LatentStyles> </xml><![endif]--> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face {font-family:Consolas; panose-1:2 11 6 9 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:modern; mso-font-pitch:fixed; mso-font-signature:-1610611985 1073750091 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman";} p.MsoPlainText, li.MsoPlainText, div.MsoPlainText {mso-style-noshow:yes; mso-style-priority:99; mso-style-link:"Plain Text Char"; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.5pt; font-family:Consolas; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman";} span.PlainTextChar {mso-style-name:"Plain Text Char"; mso-style-noshow:yes; mso-style-priority:99; mso-style-unhide:no; mso-style-locked:yes; mso-style-link:"Plain Text"; mso-ansi-font-size:10.5pt; mso-bidi-font-size:10.5pt; font-family:Consolas; mso-ascii-font-family:Consolas; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Consolas;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> <!-- [if gte mso 10]>



<style>  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman","serif";} </style>

 <![endif]--></p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-4091 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/06/set-unix-home-dir-property-.png" alt="set-unix-home-dir-property-using-ant" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/06/set-unix-home-dir-property-.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/06/set-unix-home-dir-property--300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p class="MsoPlainText">Set properties HOMEDIR in build.xml which will be set through user logged in the current system..</p>
<p class="MsoPlainText">
<p class="MsoPlainText">Example:</p>
<p class="MsoPlainText">&lt;project name=&#8221;test&#8221; default=&#8221;myhome&#8221;&gt;</p>
<p class="MsoPlainText">    &lt;property environment=&#8221;env&#8221;/&gt;</p>
<p class="MsoPlainText">
<p class="MsoPlainText">    &lt;target name=&#8221;myhome&#8221;&gt;</p>
<p class="MsoPlainText">        &lt;echo message=&#8221;My home is ${env.HOME}&#8221;/&gt;</p>
<p class="MsoPlainText">    &lt;/target&gt;</p>
<p class="MsoPlainText">&lt;/project&gt;</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/set-unix-home-dir-property-using-ant/">SET UNIX HOME DIR PROPERTY using ANT</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/set-unix-home-dir-property-using-ant/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Basic of Unix  &#8211; Presentation &#124; Unix Learning Reference &#8211; Guide</title>
		<link>https://www.scmgalaxy.com/tutorials/basic-of-unix-presentation/</link>
					<comments>https://www.scmgalaxy.com/tutorials/basic-of-unix-presentation/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 07 Mar 2009 17:24:43 +0000</pubDate>
				<category><![CDATA[Unix - Linux]]></category>
		<category><![CDATA[Basic Unix]]></category>
		<category><![CDATA[Basic Unix Concept]]></category>
		<category><![CDATA[Learn Unix]]></category>
		<category><![CDATA[Presentation]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[Unix Basics]]></category>
		<category><![CDATA[Unix Guide]]></category>
		<category><![CDATA[Unix Introduction]]></category>
		<category><![CDATA[Unix Learning Reference]]></category>
		<category><![CDATA[Unix PPT]]></category>
		<category><![CDATA[Unix Presentation]]></category>
		<category><![CDATA[Unix Tutorial]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2009/03/07/basic-of-unix-presentation/</guid>

					<description><![CDATA[<p>Basic of Unix Presentation Basic Unix from Rajesh Kumar &#160; Basic Unix View more presentations from rajeshatbuzz. (tags: basic of)</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/basic-of-unix-presentation/">Basic of Unix  &#8211; Presentation | Unix Learning Reference &#8211; Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h1><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4025 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/03/unix-presentation.png" alt="unix-presentation" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/03/unix-presentation.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/03/unix-presentation-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></h1>
<h1>Basic of Unix Presentation</h1>
<p><iframe loading="lazy" style="border: 1px solid #CCC; border-width: 1px; margin-bottom: 5px; max-width: 100%;" src="//www.slideshare.net/slideshow/embed_code/key/MR3QwXbr7fXTi1" width="595" height="485" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen="allowfullscreen"> </iframe></p>
<div style="margin-bottom: 5px;"><strong> <a title="Basic Unix" href="//www.slideshare.net/rajeshatbuzz/basic-unix" target="_blank" rel="noopener">Basic Unix</a> </strong> from <strong><a href="https://www.slideshare.net/rajeshatbuzz" target="_blank" rel="noopener">Rajesh Kumar</a></strong></div>
<p>&nbsp;</p>
<div id="__ss_1114787" style="width: 425px; text-align: left;">
<p><a title="Basic Unix" href="http://www.slideshare.net/rajeshatbuzz/basic-unix?type=powerpoint">Basic Unix</a></p>
<div style="font-size: 11px; padding-top: 2px; font-family: tahoma,arial; height: 26px;">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/rajeshatbuzz">rajeshatbuzz</a>. (tags: <a href="http://slideshare.net/tag/basic">basic</a> <a href="http://slideshare.net/tag/of">of</a>)</div>
</div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/basic-of-unix-presentation/">Basic of Unix  &#8211; Presentation | Unix Learning Reference &#8211; Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/basic-of-unix-presentation/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
