<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-1254806986033838907</atom:id><lastBuildDate>Sat, 13 Aug 2011 09:54:04 +0000</lastBuildDate><category>Common</category><category>gcc</category><category>editor</category><category>Files</category><category>vim</category><category>Delete</category><category>Bash</category><category>memory</category><category>General</category><title>Daily Linux Commands</title><description>Familiarize yourself with Linux Commands</description><link>http://dailylinuxcommands.blogspot.com/</link><managingEditor>noreply@blogger.com (Fasil)</managingEditor><generator>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/DailyLinuxCommands" /><feedburner:info uri="dailylinuxcommands" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>DailyLinuxCommands</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1254806986033838907.post-366090858468259812</guid><pubDate>Tue, 16 Nov 2010 02:19:00 +0000</pubDate><atom:updated>2010-11-16T07:49:27.530+05:30</atom:updated><title>Explore Linux /proc File System (/proc directories, /proc files)</title><description>&lt;ul&gt;&lt;li&gt; /proc/meminfo – Current utilization of primary memory on the system&lt;/li&gt;&lt;li&gt; /proc/misc – This file lists miscellaneous drivers registered on the miscellaneous major device, which is number 10&lt;/li&gt;&lt;li&gt; /proc/modules – Displays a list of all modules that have been loaded by the system&lt;/li&gt;&lt;li&gt; /proc/mounts – This file provides a quick list of all mounts in use by the system&lt;/li&gt;&lt;li&gt; /proc/partitions – Very detailed information on the various partitions currently available to the system&lt;/li&gt;&lt;li&gt; /proc/pci – Full listing of every PCI device on your system&lt;/li&gt;&lt;li&gt; /proc/stat – Keeps track of a variety of different statistics about the system since it was last restarted&lt;/li&gt;&lt;li&gt; /proc/swap – Measures swap space and its utilization&lt;/li&gt;&lt;li&gt; /proc/uptime – Contains information about uptime of the system&lt;/li&gt;&lt;li&gt; /proc/version – Version of the Linux kernel, gcc, name of the Linux flavor installed.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;a href="http://www.thegeekstuff.com/2010/11/linux-proc-file-system/"&gt;Explore Linux /proc File System (/proc directories, /proc files)&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1254806986033838907-366090858468259812?l=dailylinuxcommands.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=Qsf_T-Evcbo:Z7LgTSSId9k:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=Qsf_T-Evcbo:Z7LgTSSId9k:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=Qsf_T-Evcbo:Z7LgTSSId9k:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?i=Qsf_T-Evcbo:Z7LgTSSId9k:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=Qsf_T-Evcbo:Z7LgTSSId9k:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=Qsf_T-Evcbo:Z7LgTSSId9k:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?i=Qsf_T-Evcbo:Z7LgTSSId9k:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=Qsf_T-Evcbo:Z7LgTSSId9k:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=Qsf_T-Evcbo:Z7LgTSSId9k:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DailyLinuxCommands/~4/Qsf_T-Evcbo" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DailyLinuxCommands/~3/Qsf_T-Evcbo/explore-linux-proc-file-system-proc.html</link><author>noreply@blogger.com (Moh)</author><thr:total>0</thr:total><feedburner:origLink>http://dailylinuxcommands.blogspot.com/2010/11/explore-linux-proc-file-system-proc.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1254806986033838907.post-4422935572636009826</guid><pubDate>Wed, 20 Oct 2010 10:00:00 +0000</pubDate><atom:updated>2010-10-20T15:30:01.104+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">vim</category><category domain="http://www.blogger.com/atom/ns#">editor</category><title>Vim Tips: Go Previos View and Current View</title><description>&lt;span class="fullpost"&gt;Often in Vim Editor we will move from one place of the code to another part of the code especially when we search for a particular string and on the way of searching we might lose the Previous view or position of the file in view editor.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="fullpost"&gt;The following keyboard shortcut is very useful to navigate to the preview view and current view in Vim editor.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="fullpost"&gt;CTRL-G&amp;nbsp; displays your location in the file and the file status &lt;/span&gt;&lt;br /&gt;
&lt;span class="fullpost"&gt;CTRL-O takes you back to older positions or previous view,&lt;/span&gt;&lt;br /&gt;
&lt;span class="fullpost"&gt; CTRL-I&amp;nbsp; takes you to&amp;nbsp; newer positions or current view.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="fullpost"&gt;   &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1254806986033838907-4422935572636009826?l=dailylinuxcommands.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=DF6RR8g1k9A:T-FhZRAmWYo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=DF6RR8g1k9A:T-FhZRAmWYo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=DF6RR8g1k9A:T-FhZRAmWYo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?i=DF6RR8g1k9A:T-FhZRAmWYo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=DF6RR8g1k9A:T-FhZRAmWYo:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=DF6RR8g1k9A:T-FhZRAmWYo:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?i=DF6RR8g1k9A:T-FhZRAmWYo:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=DF6RR8g1k9A:T-FhZRAmWYo:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=DF6RR8g1k9A:T-FhZRAmWYo:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DailyLinuxCommands/~4/DF6RR8g1k9A" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DailyLinuxCommands/~3/DF6RR8g1k9A/vim-tips-go-previos-view-and-current.html</link><author>noreply@blogger.com (Moh)</author><thr:total>0</thr:total><feedburner:origLink>http://dailylinuxcommands.blogspot.com/2010/10/vim-tips-go-previos-view-and-current.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1254806986033838907.post-5609404504740918803</guid><pubDate>Wed, 20 Oct 2010 09:53:00 +0000</pubDate><atom:updated>2010-10-20T15:23:04.876+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">memory</category><title>Linux Command to Find RAM size</title><description>&lt;span class="fullpost"&gt;There are many commands to find RAM size using Linux and we will see all the commands in coming day. But for now we will see a command called Free&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style="background: url(&amp;quot;http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt; fasil@FASIL:~$ free   
        total    used    free   shared  buffers   cached  
 Mem:    1161960  1129788   32172     0   147160   705716  
 -/+ buffers/cache:   276912   885048  
 Swap:   1306616    5576  1301040  
 fasil@FASIL:~$ free -h  
 free: invalid option -- 'h'  
 usage: free [-b|-k|-m|-g] [-l] [-o] [-t] [-s delay] [-c count] [-V]  
  -b,-k,-m,-g show output in bytes, KB, MB, or GB  
  -l show detailed low and high memory statistics  
  -o use old format (no -/+buffers/cache line)  
  -t display total for RAM + swap  
  -s update every [delay] seconds  
  -c update [count] times  
  -V display version information and exit  
 fasil@FASIL:~$ free -m  
        total    used    free   shared  buffers   cached  
 Mem:     1134    1103     31     0    143    689  
 -/+ buffers/cache:    270   
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span class="fullpost"&gt;Free command is used to find the RAM size, Swap size and memory statistics&lt;br /&gt;
&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1254806986033838907-5609404504740918803?l=dailylinuxcommands.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=Q7E_QG-sTkk:mAUV60WQ-nA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=Q7E_QG-sTkk:mAUV60WQ-nA:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=Q7E_QG-sTkk:mAUV60WQ-nA:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?i=Q7E_QG-sTkk:mAUV60WQ-nA:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=Q7E_QG-sTkk:mAUV60WQ-nA:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=Q7E_QG-sTkk:mAUV60WQ-nA:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?i=Q7E_QG-sTkk:mAUV60WQ-nA:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=Q7E_QG-sTkk:mAUV60WQ-nA:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=Q7E_QG-sTkk:mAUV60WQ-nA:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DailyLinuxCommands/~4/Q7E_QG-sTkk" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DailyLinuxCommands/~3/Q7E_QG-sTkk/linux-command-to-find-ram-size.html</link><author>noreply@blogger.com (Moh)</author><thr:total>0</thr:total><feedburner:origLink>http://dailylinuxcommands.blogspot.com/2010/10/linux-command-to-find-ram-size.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1254806986033838907.post-6956777772532445344</guid><pubDate>Wed, 20 Oct 2010 08:03:00 +0000</pubDate><atom:updated>2010-10-20T13:33:36.395+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Delete</category><category domain="http://www.blogger.com/atom/ns#">Files</category><category domain="http://www.blogger.com/atom/ns#">Bash</category><title>Delete Folders Recursively in Linux</title><description>Command to delete a folder or file in linux is so simple, sometime there will be a situation where you need&amp;nbsp; to delete all files or folders like .o or sometimes there will be hidden folder like .svn and .gitignore present in the Linux . To delete that folders recursively here is the linux command&lt;br /&gt;
&lt;br /&gt;
To recursively delete subdirectories and all files, use the following syntax:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;rm -rf /path/to/directory&lt;/pre&gt;&lt;br /&gt;
You can also find all *.svn or *.gitignore or *.o&amp;nbsp; in many subdirectories and delete them:&lt;br /&gt;
&lt;br /&gt;
The -i option prompt before any removal and the -f option ignore nonexistent files, never prompt for anything. &lt;br /&gt;
&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 50px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;"&gt;find . -type f -name "*.svn" -exec rm -i '{}' \;
find . -type f -name "*.gitignore" -exec rm -f '{}' \;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1254806986033838907-6956777772532445344?l=dailylinuxcommands.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=SLgpHHz7_fo:M8YOOVfl6_g:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=SLgpHHz7_fo:M8YOOVfl6_g:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=SLgpHHz7_fo:M8YOOVfl6_g:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?i=SLgpHHz7_fo:M8YOOVfl6_g:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=SLgpHHz7_fo:M8YOOVfl6_g:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=SLgpHHz7_fo:M8YOOVfl6_g:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?i=SLgpHHz7_fo:M8YOOVfl6_g:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=SLgpHHz7_fo:M8YOOVfl6_g:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DailyLinuxCommands?a=SLgpHHz7_fo:M8YOOVfl6_g:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyLinuxCommands?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DailyLinuxCommands/~4/SLgpHHz7_fo" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DailyLinuxCommands/~3/SLgpHHz7_fo/delete-folders-recursively-in-linux.html</link><author>noreply@blogger.com (Moh)</author><thr:total>0</thr:total><feedburner:origLink>http://dailylinuxcommands.blogspot.com/2010/10/delete-folders-recursively-in-linux.html</feedburner:origLink></item><item><title>Links for 2010-04-21 [del.icio.us]</title><link>http://feedproxy.google.com/~r/DailyLinuxCommands/~3/z6pctjW0s8M/mfasil</link><pubDate>Thu, 22 Apr 2010 00:00:00 PDT</pubDate><guid isPermaLink="false">http://del.icio.us/mfasil#2010-04-21</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://fasil.posterous.com/saving-is-sin-and-spending-is-virtue-0"&gt;Saving is Sin, and Spending is Virtue&lt;/a&gt;&lt;br/&gt;
Interesting article written by an Indian Economist. Japanese save a lot. They do not spend much. Also Japan exports far more than it imports. Has an annual trade surplus of over 100 billions. Yet Ja ...&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/DailyLinuxCommands/~4/z6pctjW0s8M" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/mfasil#2010-04-21</feedburner:origLink></item><item><title>Links for 2010-03-25 [del.icio.us]</title><link>http://feedproxy.google.com/~r/DailyLinuxCommands/~3/uhiXCdqMyz4/mfasil</link><pubDate>Fri, 26 Mar 2010 00:00:00 PDT</pubDate><guid isPermaLink="false">http://del.icio.us/mfasil#2010-03-25</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://fasil.posterous.com/real-computer-addicts"&gt;Real Computer Addicts!&lt;/a&gt;&lt;br/&gt;
See and download the full gallery on posterous ...&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/DailyLinuxCommands/~4/uhiXCdqMyz4" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/mfasil#2010-03-25</feedburner:origLink></item><item><title>Links for 2010-03-13 [del.icio.us]</title><link>http://feedproxy.google.com/~r/DailyLinuxCommands/~3/YItO1Wr9A4A/mfasil</link><pubDate>Sun, 14 Mar 2010 00:00:00 PST</pubDate><guid isPermaLink="false">http://del.icio.us/mfasil#2010-03-13</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.dellgogreen.com/node/406"&gt;http://www.dellgogreen.com/node/406&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/DailyLinuxCommands/~4/YItO1Wr9A4A" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/mfasil#2010-03-13</feedburner:origLink></item><item><title>Links for 2010-02-12 [del.icio.us]</title><link>http://feedproxy.google.com/~r/DailyLinuxCommands/~3/7l3YV2ecQ_k/mfasil</link><pubDate>Sat, 13 Feb 2010 00:00:00 PST</pubDate><guid isPermaLink="false">http://del.icio.us/mfasil#2010-02-12</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://blog.fasil.in/interest-free-banking-dr-kvs-habeeb-muhammads"&gt;Interest Free Banking- Dr. K.V.S. Habeeb Muhammad's Interview&lt;/a&gt;&lt;br/&gt;
See and download the full gallery on posterous ...&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/DailyLinuxCommands/~4/7l3YV2ecQ_k" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/mfasil#2010-02-12</feedburner:origLink></item><item><title>Links for 2010-01-09 [del.icio.us]</title><link>http://feedproxy.google.com/~r/DailyLinuxCommands/~3/HNYbYmbVJ7I/mfasil</link><pubDate>Sun, 10 Jan 2010 00:00:00 PST</pubDate><guid isPermaLink="false">http://del.icio.us/mfasil#2010-01-09</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://blog.fasil.in/test-post-to-check-my-posterous-on-my-domain"&gt;Test post to check my Posterous on my domain&lt;/a&gt;&lt;br/&gt;
இது ஒரு சோதனை செய்தி . ...&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/DailyLinuxCommands/~4/HNYbYmbVJ7I" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/mfasil#2010-01-09</feedburner:origLink></item><item><title>Links for 2009-12-26 [del.icio.us]</title><link>http://feedproxy.google.com/~r/DailyLinuxCommands/~3/89z9Lu6tdRw/mfasil</link><pubDate>Sun, 27 Dec 2009 00:00:00 PST</pubDate><guid isPermaLink="false">http://del.icio.us/mfasil#2009-12-26</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://fasil.posterous.com/got-this-thumb-drive-from-digit-magazine-as-p"&gt;Got this Thumb Drive from Digit Magazine as part of Oct Techfest&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/DailyLinuxCommands/~4/89z9Lu6tdRw" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/mfasil#2009-12-26</feedburner:origLink></item><item><title>Links for 2009-12-08 [del.icio.us]</title><link>http://feedproxy.google.com/~r/DailyLinuxCommands/~3/cchHjmwSpGs/mfasil</link><pubDate>Wed, 09 Dec 2009 00:00:00 PST</pubDate><guid isPermaLink="false">http://del.icio.us/mfasil#2009-12-08</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://fasil.posterous.com/useful-tips-to-cure-back-pain-0"&gt;Useful Tips to cure Back Pain&lt;/a&gt;&lt;br/&gt;
See and download the full gallery on posterous ...&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/DailyLinuxCommands/~4/cchHjmwSpGs" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/mfasil#2009-12-08</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1254806986033838907.post-2185743094350803038</guid><pubDate>Mon, 03 Nov 2008 14:55:00 +0000</pubDate><atom:updated>2008-11-03T19:56:20.339+05:30</atom:updated><title>Commands to Retrieve Load, statistics and messages</title><description>&lt;font size="-1"&gt;&lt;font face="Arial"&gt;# top&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # display and update the top cpu processes&lt;br&gt; # mpstat 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # display processors related statistics&lt;br&gt; # vmstat 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # display virtual memory statistics&lt;br&gt; # iostat 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # display I/O statistics (2 s intervals)&lt;br&gt; # systat -vmstat 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # BSD summary of system statistics (1 s intervals)&lt;br&gt; # systat -tcp 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # BSD tcp connections (try also -ip)&lt;br&gt; # systat -netstat 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # BSD active network connections&lt;br&gt; # systat -ifstat 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # BSD network traffic through active interfaces&lt;br&gt; # systat -iostat 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # BSD CPU and and disk throughput&lt;br&gt; # tail -n 500 /var/log/messages&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Last 500 kernel/syslog messages&lt;br&gt; # tail /var/log/warn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # System warnings messages see syslog.conf&lt;/font&gt;&lt;/font&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1254806986033838907-2185743094350803038?l=dailylinuxcommands.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=sZ9qbCqI"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=S9AZ4CPT"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=Mii8PWWY"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?i=Mii8PWWY" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=CYDvwCZZ"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=52" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=1t70kL0U"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?i=1t70kL0U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=dYs1jUt4"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=54" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=VlOwQTl4"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DailyLinuxCommands/~4/RKGmgJualGw" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DailyLinuxCommands/~3/RKGmgJualGw/commands-to-retrieve-load-statistics.html</link><author>noreply@blogger.com (Fasil)</author><thr:total>0</thr:total><feedburner:origLink>http://dailylinuxcommands.blogspot.com/2008/11/commands-to-retrieve-load-statistics.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1254806986033838907.post-7062528857309612361</guid><pubDate>Mon, 03 Nov 2008 14:53:00 +0000</pubDate><atom:updated>2008-11-03T19:55:09.518+05:30</atom:updated><title>Hardware Information Accessing Commands</title><description>&lt;font size="-1"&gt;&lt;font face="Arial"&gt;# cat /proc/cpuinfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; # CPU model&lt;br&gt; # cat /proc/meminfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Hardware memory&lt;br&gt; # grep MemTotal /proc/meminfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # Display the physical memory&lt;br&gt; # watch -n1 'cat /proc/interrupts'&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; # Watch changeable interrupts continuously&lt;br&gt; # free -m&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; # Used and free memory (-m for MB)&lt;br&gt; # cat /proc/devices&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Configured devices&lt;br&gt; # lspci -tv&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Show PCI devices&lt;br&gt; # lsusb -tv&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; # Show USB devices&lt;br&gt; # lshal&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; # Show a list of all devices with their properties&lt;br&gt; # dmidecode&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; # Show DMI/SMBIOS: hw info from the BIOS&lt;/font&gt;&lt;/font&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1254806986033838907-7062528857309612361?l=dailylinuxcommands.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=jaID4O6y"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=OQmcGlCj"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=Hc6VC3vT"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?i=Hc6VC3vT" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=wlQQrrwJ"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=52" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=8n997BCN"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?i=8n997BCN" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=nMfgo1AO"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=54" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=oW6kMDDT"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DailyLinuxCommands/~4/K5zHiUgpj14" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DailyLinuxCommands/~3/K5zHiUgpj14/hardware-information-accessing-commands.html</link><author>noreply@blogger.com (Fasil)</author><thr:total>0</thr:total><feedburner:origLink>http://dailylinuxcommands.blogspot.com/2008/11/hardware-information-accessing-commands.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1254806986033838907.post-4713911421721564982</guid><pubDate>Sat, 01 Nov 2008 09:45:00 +0000</pubDate><atom:updated>2008-11-01T16:58:05.613+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">gcc</category><category domain="http://www.blogger.com/atom/ns#">Bash</category><title>GCC Tips</title><description>&lt;h3&gt;View Compilation Plan  &lt;/h3&gt;&lt;pre&gt;gcc -### &amp;lt;the rest of your command line goes here&amp;gt;
&lt;/pre&gt;&lt;p&gt;The GCC you run is a driver program for a bunch of other programs. With this parameter, gcc will produce (but not actually execute) the commands it would have used to accomplish the task you asked it to do. This way, you can see the gory details of what&amp;#39;s going on behind the scenes. What library is being used? What is -mcpu set to? It&amp;#39;s all there. &lt;/p&gt;&lt;p&gt;You can pipe this output to a file and execute that to compile a program, making it easy to experiment with tweaks to the linker or assembler. &lt;/p&gt;&lt;pre&gt;Reading specs from /opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/specs
Configured with: ../configure --prefix=/opt/timesys/toolchains/ppc7xx-linux --mandir=/opt/timesys/toolchains/ppc7xx-linux/share/man --infodir=/opt/timesys/toolchains/ppc7xx-linux/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++ --with-sysroot=/here/workdir/i386-x-ppc7xx/deleteme --disable-libgcj --build=i686-timesys-linux --host=i686-timesys-linux --target=powerpc-linux --program-prefix=ppc7xx-linux-
Thread model: posix
gcc version 3.4.1 20040714 (TimeSys 3.4.1-7)
/opt/timesys/toolchains/ppc7xx-linux/libexec/gcc/powerpc-linux/3.4.1/cc1 -quiet -v -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=linux -Asystem=unix -Asystem=posix -I/opt/timesys/toolchains/ppc7xx-linux/powerpc-linux/include/nptl file.c -quiet -dumpbase file.c -auxbase file -version -o /tmp/ccShiHn4.s
ignoring nonexistent directory &amp;quot;/here/workdir/i386-x-ppc7xx/deleteme/usr/local/include&amp;quot;
ignoring nonexistent directory &amp;quot;/here/workdir/i386-x-ppc7xx/deleteme/usr/include&amp;quot;
#include &amp;quot;...&amp;quot; search starts here:
#include &amp;lt;...&amp;gt; search starts here:
/opt/timesys/toolchains/ppc7xx-linux/powerpc-linux/include/nptl
/opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/include
/opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/../../../../powerpc-linux/include
End of search list.
GNU C version 3.4.1 20040714 (TimeSys 3.4.1-7) (powerpc-linux)
compiled by GNU C version 3.2.2 20030222 (Red Hat Linux 3.2.2-5).
GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32138
/opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/../../../../powerpc-linux/bin/as -mppc -many -V -Qy -o /tmp/ccWeV3a3.o /tmp/ccShiHn4.s
GNU assembler version 2.15.90.0.3 (powerpc-linux) using BFD version 2.15.90.0.3 20040415
/opt/timesys/toolchains/ppc7xx-linux/libexec/gcc/powerpc-linux/3.4.1/collect2 --eh-frame-hdr -V -Qy -L/opt/timesys/toolchains/ppc7xx-linux/powerpc-linux/lib/nptl --rpath-link /opt/timesys/toolchains/ppc7xx-linux/powerpc-linux/lib/tls -m elf32ppclinux -dynamic-linker /lib/ld.so.1 -o file /opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/../../../../powerpc-linux/lib/crt1.o /opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/../../../../powerpc-linux/lib/crti.o /opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/crtbegin.o -L/opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1 -L/opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/../../../../powerpc-linux/lib /tmp/ccWeV3a3.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/crtsavres.o /opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/crtend.o /opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/../../../../powerpc-linux/lib/crtn.o
GNU ld version 2.15.90.0.3 20040415
Supported emulations:
elf32ppclinux
elf32ppc
elf32ppcsim
&lt;/pre&gt;&lt;div class="editsection" style="float: right; margin-left: 5px;"&gt;[&lt;a rel="nofollow" target="_blank" href="http://my.jkn.com/go?e=4405506&amp;amp;p=INTDRLOHOMTAUTB&amp;amp;f=54768053&amp;amp;l=http%3a%2f%2felinux%2eorg%2findex%2ephp%3ftitle%3dGCC_Tips%26amp%3baction%3dedit%26amp%3bsection%3d4" title="Edit section: Pre-Process, Retain Comments"&gt;edit&lt;/a&gt;]&lt;/div&gt;&lt;a rel="nofollow" name="Pre-Process.2C_Retain_Comments" target="_blank" href="http://my.jkn.com/go?e=4405506&amp;amp;p=INTDRLOHOMTAUTB&amp;amp;f=54768053&amp;amp;l="&gt;&lt;/a&gt;&lt;h3&gt;Pre-Process, Retain Comments &lt;/h3&gt;&lt;pre&gt;gcc -C -E &amp;lt;file-name.c&amp;gt; -o file
&lt;/pre&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;
&lt;p&gt;Some engineers love to do coding in macros. The rest of us would like to break their fingers. This command will run the file through the pre-processor, expanding all macros, but retaining all comments. Stick a comment like &amp;quot;LOOK HERE&amp;quot; and search for that so you reduce the amount of time you spend looking for the offending code. &lt;/p&gt;&lt;div class="editsection" style="float: right; margin-left: 5px;"&gt;[&lt;a rel="nofollow" target="_blank" href="http://my.jkn.com/go?e=4405506&amp;amp;p=INTDRLOHOMTAUTB&amp;amp;f=54768053&amp;amp;l=http%3a%2f%2felinux%2eorg%2findex%2ephp%3ftitle%3dGCC_Tips%26amp%3baction%3dedit%26amp%3bsection%3d5" title="Edit section: See what Files the Linker is Using"&gt;edit&lt;/a&gt;]&lt;/div&gt;&lt;a rel="nofollow" name="See_what_Files_the_Linker_is_Using" target="_blank" href="http://my.jkn.com/go?e=4405506&amp;amp;p=INTDRLOHOMTAUTB&amp;amp;f=54768053&amp;amp;l="&gt;&lt;/a&gt;&lt;h3&gt;See what Files the Linker is Using &lt;/h3&gt;&lt;pre&gt;gcc -Wl,-t &amp;lt;parameters&amp;gt;
&lt;/pre&gt;&lt;p&gt;Displays what files the linker opens in what order. When looking in archive files, the archive file is displayed in para theses, followed by the file in the archive. Very handy when working through a legacy project that depends on files linking in a certain order that suddenly breaks because of a small (probably viewed as not noteworthy) change in a makefile somewhere. &lt;/p&gt;&lt;pre&gt;/usr/bin/ld: mode elf_i386
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/../../../crt1.o
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/../../../crti.o
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/crtbegin.o
/tmp/cc37FxnS.o
-lgcc_s (/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/libgcc_s.so)
/lib/libc.so.6
(/usr/lib/libc_nonshared.a)elf-init.oS
-lgcc_s (/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/libgcc_s.so)
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/crtend.o
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/../../../crtn.o
&lt;/pre&gt;&lt;div class="editsection" style="float: right; margin-left: 5px;"&gt;[&lt;a rel="nofollow" target="_blank" href="http://my.jkn.com/go?e=4405506&amp;amp;p=INTDRLOHOMTAUTB&amp;amp;f=54768053&amp;amp;l=http%3a%2f%2felinux%2eorg%2findex%2ephp%3ftitle%3dGCC_Tips%26amp%3baction%3dedit%26amp%3bsection%3d6" title="Edit section: Print Pre-defined Macros"&gt;edit&lt;/a&gt;]&lt;/div&gt;&lt;a rel="nofollow" name="Print_Pre-defined_Macros" target="_blank" href="http://my.jkn.com/go?e=4405506&amp;amp;p=INTDRLOHOMTAUTB&amp;amp;f=54768053&amp;amp;l="&gt;&lt;/a&gt;&lt;h3&gt;Print Pre-defined Macros &lt;/h3&gt;&lt;pre&gt;gcc -E -dM - &amp;lt; /dev/null | cut -c 9- | sort
&lt;/pre&gt;&lt;p&gt;Very handy when porting code. Lets you know if your target processor has some missing defines or if something is different (line __INT_MAX__) that can have interesting effects on your project. Diff the output from the old to the new compiler so you can easily see the differences, makes it easy to spot problems before getting started. &lt;/p&gt;&lt;p&gt;Sample output, from a compiler targeting an ARM processor. &lt;/p&gt;&lt;pre&gt;__APCS_32__ 1
__arm__ 1
__ARM_ARCH_4T__ 1
__ARMEL__ 1
__CHAR_BIT__ 8
__CHAR_UNSIGNED__ 1
__DBL_DENORM_MIN__ 4.9406564584124654e-324
__DBL_DIG__ 15
__DBL_EPSILON__ 2.2204460492503131e-16
__DBL_HAS_DENORM__ 1
__DBL_HAS_INFINITY__ 1
__DBL_HAS_QUIET_NAN__ 1
__DBL_MANT_DIG__ 53
__DBL_MAX_10_EXP__ 308
__DBL_MAX__ 1.7976931348623157e+308
__DBL_MAX_EXP__ 1024
&lt;/pre&gt;&lt;div class="editsection" style="float: right; margin-left: 5px;"&gt;[&lt;a rel="nofollow" target="_blank" href="http://my.jkn.com/go?e=4405506&amp;amp;p=INTDRLOHOMTAUTB&amp;amp;f=54768053&amp;amp;l=http%3a%2f%2felinux%2eorg%2findex%2ephp%3ftitle%3dGCC_Tips%26amp%3baction%3dedit%26amp%3bsection%3d7" title="Edit section: Mixed Assembler and Source Output"&gt;edit&lt;/a&gt;]&lt;/div&gt;&lt;a rel="nofollow" name="Mixed_Assembler_and_Source_Output" target="_blank" href="http://my.jkn.com/go?e=4405506&amp;amp;p=INTDRLOHOMTAUTB&amp;amp;f=54768053&amp;amp;l="&gt;&lt;/a&gt;&lt;h3&gt;Mixed Assembler and Source Output &lt;/h3&gt;&lt;pre&gt;gcc -g somefile.c -o somefile
objdump -S somefile 
&lt;/pre&gt;&lt;p&gt;Prints out each line in the program and the corresponding assembly code. Very handy when you&amp;#39;re trying to see that the processor is generating the correct code, with the instructions you&amp;#39;re expecting. You can also see the effects of optimization, but would recommend doing this for a small amount of code because when the optimization level is high, there&amp;#39;s a much lower relationship between line of code and generated assembler. &lt;/p&gt;&lt;p&gt;Here&amp;#39;s an example of what objdump produces for a few lines of code: &lt;/p&gt;&lt;pre&gt;gpvSharedMemory = shmat(hSharedMemory, NULL, 0);
10000958:       80 7f 00 10     lwz     r3,16(r31)
1000095c:       38 80 00 00     li      r4,0
10000960:       38 a0 00 00     li      r5,0
10000964:       48 01 09 31     bl      10011294 &amp;lt;shmat@plt&amp;gt;
10000968:       7c 60 1b 78     mr      r0,r3
1000096c:       3d 20 10 01     lis     r9,4097
10000970:       90 09 11 d0     stw     r0,4560(r9)
if (errno&amp;nbsp;!= 0) {
10000974:       48 01 08 d1     bl      10011244 &amp;lt;__errno_location@plt&amp;gt;
10000978:       7c 60 1b 78     mr      r0,r3
1000097c:       7c 09 03 78     mr      r9,r0
10000980:       80 09 00 00     lwz     r0,0(r9)
10000984:       2f 80 00 00     cmpwi   cr7,r0,0
10000988:       41 9e 00 50     beq-    cr7,100009d8 &amp;lt;main+0x10c&amp;gt;
&lt;/pre&gt;&lt;div class="editsection" style="float: right; margin-left: 5px;"&gt;[&lt;a rel="nofollow" target="_blank" href="http://my.jkn.com/go?e=4405506&amp;amp;p=INTDRLOHOMTAUTB&amp;amp;f=54768053&amp;amp;l=http%3a%2f%2felinux%2eorg%2findex%2ephp%3ftitle%3dGCC_Tips%26amp%3baction%3dedit%26amp%3bsection%3d8" title="Edit section: Specify Language"&gt;edit&lt;/a&gt;]&lt;/div&gt;&lt;a rel="nofollow" name="Specify_Language" target="_blank" href="http://my.jkn.com/go?e=4405506&amp;amp;p=INTDRLOHOMTAUTB&amp;amp;f=54768053&amp;amp;l="&gt;&lt;/a&gt;&lt;h3&gt;Specify Language &lt;/h3&gt;&lt;pre&gt;gcc -x c a-c-source-file.with-a-non-standard-extension -o test.out
&lt;/pre&gt;&lt;p&gt;Great for legacy projects where where the file extensions don&amp;#39;t match with GCC&amp;#39;s expectations, while less of a problem since many projects got their start with GCC, this still is an issue with long-running projects that years back, used some other compiler. This stays in effect for the following file on the command line. &lt;/p&gt;&lt;div class="editsection" style="float: right; margin-left: 5px;"&gt;[&lt;a rel="nofollow" target="_blank" href="http://my.jkn.com/go?e=4405506&amp;amp;p=INTDRLOHOMTAUTB&amp;amp;f=54768053&amp;amp;l=http%3a%2f%2felinux%2eorg%2findex%2ephp%3ftitle%3dGCC_Tips%26amp%3baction%3dedit%26amp%3bsection%3d9" title="Edit section: List Include File Dependencies"&gt;edit&lt;/a&gt;]&lt;/div&gt;&lt;a rel="nofollow" name="List_Include_File_Dependencies" target="_blank" href="http://my.jkn.com/go?e=4405506&amp;amp;p=INTDRLOHOMTAUTB&amp;amp;f=54768053&amp;amp;l="&gt;&lt;/a&gt;&lt;h3&gt;List Include File Dependencies &lt;/h3&gt;&lt;p&gt;There&amp;#39;s a whole family of things around -M. These produce a rule that could be used in a make file, with the included files as dependencies. &lt;/p&gt;&lt;pre&gt;gcc -M &amp;lt;file name&amp;gt;
&lt;/pre&gt;&lt;p&gt;This shows you all includes, even those on the system path. Useful if you&amp;#39;re doing porting work or validating if your compiler is working as expected and getting the files from the right place. You&amp;#39;ll see something like this for a basic hello world program &lt;/p&gt;&lt;pre&gt;hello.o: hello.c /usr/include/stdio.h /usr/include/features.h \
/usr/include/sys/cdefs.h /usr/include/gnu/stubs.h \
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/include/stddef.h \
/usr/include/bits/types.h /usr/include/bits/wordsize.h \
/usr/include/bits/typesizes.h /usr/include/libio.h \
/usr/include/_G_config.h /usr/include/wchar.h /usr/include/bits/wchar.h \
/usr/include/gconv.h \
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/include/stdarg.h \
/usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h
&lt;/pre&gt;&lt;pre&gt;gcc -MM &amp;lt;file name&amp;gt;  
&lt;/pre&gt;&lt;p&gt;Like -M, but no system files.  Great to see if your project is configured and working as expected.   &lt;/p&gt;&lt;pre&gt;gcc -M -MG &amp;lt;file name&amp;gt;  
&lt;/pre&gt;&lt;p&gt;The prior -M and -MM commands will stop if header files can be located. The parameter -MG will just produce the dependency list with the missing file. Engineers that have projects that generate header files as part of the build find -MM very handy. &lt;/p&gt;&lt;pre&gt;gcc -M -MT &amp;#39;&amp;lt;target&amp;gt;&amp;#39; &amp;lt;file name&amp;gt; 
&lt;/pre&gt;&lt;p&gt;By default, the target will be the &amp;lt;file name&amp;gt;.o  This command will make the default the value of &amp;lt;target&amp;gt;. &lt;/p&gt;&lt;p&gt;If the command was &lt;/p&gt;&lt;pre&gt;gcc -M -MT &amp;#39;$(target)&amp;#39; hello.c
&lt;/pre&gt;&lt;p&gt;You would see  &lt;/p&gt;&lt;pre&gt;$(target): hello.c 
&lt;/pre&gt;&lt;div class="editsection" style="float: right; margin-left: 5px;"&gt;[&lt;a rel="nofollow" target="_blank" href="http://my.jkn.com/go?e=4405506&amp;amp;p=INTDRLOHOMTAUTB&amp;amp;f=54768053&amp;amp;l=http%3a%2f%2felinux%2eorg%2findex%2ephp%3ftitle%3dGCC_Tips%26amp%3baction%3dedit%26amp%3bsection%3d10" title="Edit section: Symbol Trace"&gt;edit&lt;/a&gt;]&lt;/div&gt;&lt;a rel="nofollow" name="Symbol_Trace" target="_blank" href="http://my.jkn.com/go?e=4405506&amp;amp;p=INTDRLOHOMTAUTB&amp;amp;f=54768053&amp;amp;l="&gt;&lt;/a&gt;&lt;h3&gt;Symbol Trace &lt;/h3&gt;&lt;pre&gt;gcc -Wl,-y,printf hello.c
&lt;/pre&gt;&lt;p&gt;This is very handy when you want to understand the linker is finding a definition of a symbol. Some projects have name collisions or link order dependencies. This lets you see precisely what the linker is doing. &lt;/p&gt;&lt;p&gt;Given a hello world program, you would see output like  &lt;/p&gt;&lt;pre&gt;/tmp/ccwZx5UV.o: reference to printf
/lib/libc.so.6: definition of printf
&lt;/pre&gt;&lt;p&gt;The reference is in a temporary file created during the compilation process. If you were linking several object files together explicitly, you would see the name of the object file where printf was referenced. &lt;/p&gt;&lt;div class="editsection" style="float: right; margin-left: 5px;"&gt;[&lt;a rel="nofollow" target="_blank" href="http://my.jkn.com/go?e=4405506&amp;amp;p=INTDRLOHOMTAUTB&amp;amp;f=54768053&amp;amp;l=http%3a%2f%2felinux%2eorg%2findex%2ephp%3ftitle%3dGCC_Tips%26amp%3baction%3dedit%26amp%3bsection%3d11" title="Edit section: Saving temporary files"&gt;edit&lt;/a&gt;]&lt;/div&gt;&lt;a rel="nofollow" name="Saving_temporary_files" target="_blank" href="http://my.jkn.com/go?e=4405506&amp;amp;p=INTDRLOHOMTAUTB&amp;amp;f=54768053&amp;amp;l="&gt;&lt;/a&gt;&lt;h3&gt;Saving temporary files &lt;/h3&gt;&lt;pre&gt;gcc -save-temps hello.c
&lt;/pre&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1254806986033838907-4713911421721564982?l=dailylinuxcommands.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=YKaZHUoT"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=ySc6h3Bj"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=tdzlrNpz"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?i=tdzlrNpz" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=btokC7bh"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=52" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=rBhDXhd0"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?i=rBhDXhd0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=BQu8zp4m"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=54" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=LkRzfYRk"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DailyLinuxCommands/~4/9sYL5s-dt_w" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DailyLinuxCommands/~3/9sYL5s-dt_w/gcc-tips.html</link><author>noreply@blogger.com (Fasil)</author><thr:total>0</thr:total><feedburner:origLink>http://dailylinuxcommands.blogspot.com/2008/11/gcc-tips.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1254806986033838907.post-444690476407479013</guid><pubDate>Sat, 25 Oct 2008 09:31:00 +0000</pubDate><atom:updated>2008-10-25T15:05:10.640+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Common</category><category domain="http://www.blogger.com/atom/ns#">Bash</category><title>Change directory command - cd</title><description>cd&amp;nbsp; - Change Directory - change the current working    directory to a specific Folder.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Examples&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Move to the sybase folder&lt;br /&gt;
&lt;span class="telety"&gt;$ cd  /usr/local/sybase&lt;br /&gt;
$ pwd&lt;br /&gt;
/usr/local/sybase&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Change to another folder&lt;br /&gt;
&lt;span class="telety"&gt;$ cd /var/log&lt;br /&gt;
$ pwd&lt;br /&gt;
/var/log&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Quickly get back&lt;br /&gt;
&lt;span class="telety"&gt;$ cd –&lt;br /&gt;
$ pwd&lt;br /&gt;
/usr/local/sybase&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
move up one folder&lt;br /&gt;
&lt;span class="telety"&gt;$ cd ..&lt;br /&gt;
$ pwd&lt;br /&gt;
/usr/local/&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="telety"&gt;$ cd&lt;/span&gt;     ../../..&lt;br /&gt;
will move three levels backward&lt;br /&gt;
&lt;br /&gt;
&lt;span class="fullpost"&gt; &lt;br /&gt;
&lt;br /&gt;
Man Pages&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;Syntax 
      cd [&lt;i&gt;Options&lt;/i&gt;] [D&lt;em&gt;irectory&lt;/em&gt;]

Key
    -P    Do not follow symbolic links
    -L    Follow symbolic links (default)&lt;/pre&gt;If &lt;var&gt;directory&lt;/var&gt; is not given, the value of the &lt;code&gt;HOME&lt;/code&gt;  shell variable is used. &lt;br /&gt;
&lt;br /&gt;
If the shell variable &lt;code&gt;CDPATH&lt;/code&gt; exists, it is used as a search path.  &lt;br /&gt;
If &lt;var&gt;directory&lt;/var&gt; begins with a slash, &lt;code&gt;CDPATH&lt;/code&gt; is not used.  &lt;br /&gt;
&lt;br /&gt;
If &lt;var&gt;directory&lt;/var&gt; is &lt;samp&gt;`-'&lt;/samp&gt;, this will change to the previous  directory location (equivalent to &lt;code&gt;$OLDPWD&lt;/code&gt; ). &lt;br /&gt;
&lt;br /&gt;
The return status is zero if the directory is successfully changed, non-zero otherwise.  &lt;br /&gt;
&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1254806986033838907-444690476407479013?l=dailylinuxcommands.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=XNoRtQHe"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=Ht3xCyxC"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=9jL7WPS4"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?i=9jL7WPS4" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=esbY0XRE"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=52" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=ra6CRQXU"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?i=ra6CRQXU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=rZFpGPhI"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=54" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=lE1LJzdX"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DailyLinuxCommands/~4/swA2S6tylPw" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DailyLinuxCommands/~3/swA2S6tylPw/change-directory-command-cd.html</link><author>noreply@blogger.com (Fasil)</author><thr:total>0</thr:total><feedburner:origLink>http://dailylinuxcommands.blogspot.com/2008/10/change-directory-command-cd.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1254806986033838907.post-6143704921480448426</guid><pubDate>Sat, 25 Oct 2008 09:06:00 +0000</pubDate><atom:updated>2008-10-25T15:00:38.413+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Common</category><category domain="http://www.blogger.com/atom/ns#">Bash</category><title>cat - Display the contents of a file</title><description>cat (concatenate) is a command to display the contents of a file in bash itself. This commands is used to view the content of the file without using any editor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Examples&lt;/b&gt;: &lt;br /&gt;
&lt;br /&gt;
Display a file&lt;br /&gt;
$ cat myfile.txt &lt;br /&gt;
Concatenate two files: &lt;br /&gt;
$ cat file1.txt file2.txt &amp;gt; union.txt&lt;br /&gt;
If you need to combine two files but also eliminate duplicates, this can be done with sort unique: &lt;br /&gt;
$  sort -u file1.txt file2.txt &amp;gt; unique_union.txt&lt;br /&gt;
Put the contents of a file into a variable&lt;br /&gt;
$ my_variable=`cat $myfile.txt`&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="fullpost"&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Man Pages&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Display the contents of a file (concatenate)&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;Syntax
      cat [&lt;i&gt;Options&lt;/i&gt;] [&lt;i&gt;File&lt;/i&gt;]...

Concatenate &lt;i&gt;FILE&lt;/i&gt;(s), or standard input, to standard output.

  -A, --show-all           equivalent to -vET

  -b, --number-nonblank    number nonblank output lines

  -e                       equivalent to -vE

  -E, --show-ends          display $ at end of each line

  -n, --number             number all output lines

  -s, --squeeze-blank      never more than one single blank line

  -t                       equivalent to -vT

  -T, --show-tabs          display TAB characters as ^I

  -u                       (ignored)

  -v, --show-nonprinting   use ^ and M- notation, except for LFD and TAB

      --help               display this help and exit

      --version            output version information and exit

With no &lt;i&gt;FILE&lt;/i&gt;, or when &lt;i&gt;FILE&lt;/i&gt; is -, read standard input.&lt;/pre&gt;&lt;br /&gt;
&lt;span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1254806986033838907-6143704921480448426?l=dailylinuxcommands.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=KpahJCYY"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=LSFQXa85"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=LKwVbwyo"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?i=LKwVbwyo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=nZV96lHI"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=52" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=furw92Fh"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?i=furw92Fh" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=6AAjvU7N"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=54" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=PUHKSqs1"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DailyLinuxCommands/~4/ks7Ldv9VzRs" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DailyLinuxCommands/~3/ks7Ldv9VzRs/cat-display-contents-of-file.html</link><author>noreply@blogger.com (Fasil)</author><thr:total>0</thr:total><feedburner:origLink>http://dailylinuxcommands.blogspot.com/2008/10/cat-display-contents-of-file.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1254806986033838907.post-4064117669783242572</guid><pubDate>Sat, 25 Oct 2008 08:16:00 +0000</pubDate><atom:updated>2008-10-25T14:26:51.700+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Common</category><category domain="http://www.blogger.com/atom/ns#">General</category><category domain="http://www.blogger.com/atom/ns#">Bash</category><title>List Directories and files</title><description>&amp;nbsp;Ls is a command to list directories and files.This is similar to the dir command&amp;nbsp; in Dos.&lt;br /&gt;
&amp;nbsp; List information about file(s) and Directories&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;Few Example : &lt;br /&gt;
&lt;br /&gt;
&lt;/b&gt;$ ls&lt;br /&gt;
Cygwin.bat&amp;nbsp; bin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dev&amp;nbsp; home&amp;nbsp; proc&amp;nbsp; tmp&amp;nbsp; var&lt;br /&gt;
Cygwin.ico&amp;nbsp; cygdrive&amp;nbsp; etc&amp;nbsp; lib&amp;nbsp;&amp;nbsp; srv&amp;nbsp;&amp;nbsp; usr&lt;br /&gt;
&lt;br /&gt;
$ ls -lh&lt;br /&gt;
total 17K&lt;br /&gt;
-rwxr-xr-x&amp;nbsp; 1 FSK None&amp;nbsp;&amp;nbsp; 57 May 18 16:10 Cygwin.bat&lt;br /&gt;
-rw-r--r--&amp;nbsp; 1 FSK None 6.9K May 18 16:10 Cygwin.ico&lt;br /&gt;
drwxr-xr-x&amp;nbsp; 2 FSK None&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 May 18 15:18 bin&lt;br /&gt;
dr-xr-xr-x&amp;nbsp; 1&amp;nbsp;&amp;nbsp; 0 root&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 Jan&amp;nbsp; 1&amp;nbsp; 1970 cygdrive&lt;br /&gt;
drwxr-xr-x&amp;nbsp; 2 FSK None&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 May 18 15:56 dev&lt;br /&gt;
drwxr-xr-x 22 FSK None&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 May 18 15:16 etc&lt;br /&gt;
drwxr-xr-x&amp;nbsp; 3 FSK None&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 May 18 16:10 home&lt;br /&gt;
drwxr-xr-x 38 FSK None&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 May 18 15:18 lib&lt;br /&gt;
dr-xr-xr-x&amp;nbsp; 1 FSK None&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 Dec&amp;nbsp; 1&amp;nbsp; 2006 proc&lt;br /&gt;
drwxr-xr-x&amp;nbsp; 3 FSK None&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 May 18 15:59 srv&lt;br /&gt;
drwxr-xr-x&amp;nbsp; 2 FSK None&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 May 18 15:18 tmp&lt;br /&gt;
drwxr-xr-x 17 FSK None&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 May 18 15:18 usr&lt;br /&gt;
drwxr-xr-x&amp;nbsp; 9 FSK None&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 May 18 15:18 var&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="fullpost"&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Man Pages&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;refnamediv&gt; &lt;/refnamediv&gt;&lt;br /&gt;
&lt;h2&gt;ls&lt;/h2&gt;&lt;refsynopsisdiv&gt;  ls [&lt;i&gt;options&lt;/i&gt;]  [&lt;i&gt;names&lt;/i&gt;]  &lt;br /&gt;
List contents of directories. If no &lt;i&gt;names&lt;/i&gt; are given, list the files in the current directory. With one or more &lt;i&gt;names&lt;/i&gt;, list files contained in a directory &lt;i&gt;name&lt;/i&gt; or that match a file &lt;i&gt;name&lt;/i&gt;. &lt;i&gt;names&lt;/i&gt; can include filename metacharacters. The options let you display a variety of information in different formats. The most useful options include &lt;b&gt;-F&lt;/b&gt;, &lt;b&gt;-R&lt;/b&gt;, &lt;b&gt;-l&lt;/b&gt;, and &lt;b&gt;-s&lt;/b&gt;. Some options don't make sense together (e.g., &lt;b&gt;-u&lt;/b&gt; and &lt;b&gt;-c&lt;/b&gt;).&lt;br /&gt;
&lt;/refsynopsisdiv&gt; &lt;refsect1 id="linuxnut5-CHP-3-583"&gt; &lt;/refsect1&gt;&lt;br /&gt;
&lt;h3&gt;Options&lt;/h3&gt;&lt;variablelist&gt; &lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-1&lt;/b&gt;, &lt;b&gt;--format=single-column&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;/variablelist&gt;&lt;br /&gt;
&lt;blockquote&gt;Print one entry per line of output.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-a&lt;/b&gt;, &lt;b&gt;--all&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;List all files, including the normally hidden files whose names begin with a period.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-b&lt;/b&gt;, &lt;b&gt;--escape&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Display nonprinting characters in octal and alphabetic format.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-c&lt;/b&gt;, &lt;b&gt;--time-ctime&lt;/b&gt;, &lt;b&gt;--time=status&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;List files by status change time (not creation/modification time).&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;--color&lt;/b&gt; &lt;i&gt;=when&lt;/i&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Colorize the names of files depending on the type of file. Accepted values for &lt;i&gt;when&lt;/i&gt; are &lt;b&gt;never&lt;/b&gt;, &lt;b&gt;always&lt;/b&gt;, or &lt;b&gt;auto&lt;/b&gt;.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-d&lt;/b&gt;, &lt;b&gt;--directory&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Report only on the directory, not its contents.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-f&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Print directory contents in exactly the order in which they are stored, without attempting to sort them.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;--full-time&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;List times in full, rather than using the standard abbreviations.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-g&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Long listing like &lt;b&gt;-l&lt;/b&gt;, but don't show file owners.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-h&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Print sizes in kilobytes and megabytes.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;--help&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Print a help message and then exit.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-i&lt;/b&gt;, &lt;b&gt;--inode&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;List the inode for each file.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;--indicator-style=none&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Display filenames without the flags assigned by &lt;b&gt;-p&lt;/b&gt; or &lt;b&gt;-f&lt;/b&gt; (default).&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-k&lt;/b&gt;, &lt;b&gt;--kilobytes&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;If file sizes are being listed, print them in kilobytes. This option overrides the environment variable &lt;b&gt;POSIXLY_CORRECT&lt;/b&gt;.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-l&lt;/b&gt;, &lt;b&gt;--format=long&lt;/b&gt;, &lt;b&gt;--format=verbose&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Long format listing (includes permissions, owner, size, modification time, etc.).&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-m&lt;/b&gt;, &lt;b&gt;--format=commas&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Merge the list into a comma-separated series of names.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-n&lt;/b&gt;, &lt;b&gt;--numeric-uid-gid&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Like &lt;b&gt;-l&lt;/b&gt;, but use group ID and user ID numbers instead of owner and group names.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-o&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Long listing like &lt;b&gt;-l&lt;/b&gt;, but don't show group information.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-p&lt;/b&gt;, &lt;b&gt;--filetype&lt;/b&gt;, &lt;b&gt;--indicator-style=&lt;/b&gt;file-type&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Mark directories by appending &lt;b&gt;/&lt;/b&gt; to them.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-q&lt;/b&gt;, &lt;b&gt;--hide-control-chars&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Show nonprinting characters as &lt;b&gt;?&lt;/b&gt; (default for display to a terminal).&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-r&lt;/b&gt;, &lt;b&gt;--reverse&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;List files in reverse order (by name or by time).&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-s&lt;/b&gt;, &lt;b&gt;--size&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Print file size in blocks.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;--show-control-chars&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Show nonprinting characters verbatim (default for printing to a file).&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;--si&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Similar to &lt;b&gt;-h&lt;/b&gt;, but uses powers of 1,000 instead of 1,024.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-t&lt;/b&gt;, &lt;b&gt;--sort=time&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Sort files according to modification time (newest first).&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-u&lt;/b&gt;, &lt;b&gt;--time=atime&lt;/b&gt;, &lt;b&gt;--time=access&lt;/b&gt;, &lt;b&gt;--time=use&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Sort files according to file-access time.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;--version&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Print version information on standard output, then exit.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-x&lt;/b&gt;, &lt;b&gt;--format=across&lt;/b&gt;, &lt;b&gt;--format=horizontal&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;List files in rows going across the screen.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-v&lt;/b&gt;, &lt;b&gt;--sort=version&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Interpret the digits in names such as &lt;i&gt;file.6&lt;/i&gt; and &lt;i&gt;file.6.1&lt;/i&gt; as versions, and order filenames by version.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-w&lt;/b&gt;, &lt;b&gt;--width&lt;/b&gt;&lt;i&gt;=n&lt;/i&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Format output to fit &lt;i&gt;n&lt;/i&gt; columns.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-A&lt;/b&gt;, &lt;b&gt;--almost-all&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;List all files, including the normally hidden files whose names begin with a period. Does not include the . and .. directories.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-B&lt;/b&gt;, &lt;b&gt;--ignore-backups&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Do not list files ending in &lt;b&gt;~&lt;/b&gt; unless given as arguments.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-C&lt;/b&gt;, &lt;b&gt;--format=vertical&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;List files in columns (the default format).&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-D&lt;/b&gt;, &lt;b&gt;--dired&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;List in a format suitable for Emacs &lt;b&gt;dired&lt;/b&gt; mode.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-F&lt;/b&gt;, &lt;b&gt;--classify&lt;/b&gt;, &lt;b&gt;--indicator-style=classify&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Flag filenames by appending / to directories, * to executable files, @ to symbolic links, | to FIFOs, and = to sockets.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-G&lt;/b&gt;, &lt;b&gt;--no-group&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;In long format, do not display group name.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-H&lt;/b&gt;, &lt;b&gt;--dereference-command-line&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;When symbolic links are given on the command line, follow the link and list information from the actual file.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-I&lt;/b&gt;, &lt;b&gt;--ignore&lt;/b&gt; &lt;i&gt;pattern&lt;/i&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Do not list files whose names match the shell pattern &lt;i&gt;pattern&lt;/i&gt;, unless they are given on the command line.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-L&lt;/b&gt;, &lt;b&gt;--dereference&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;List the file or directory referenced by a symbolic link rather than the link itself.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-N&lt;/b&gt;, &lt;b&gt;--literal&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Display special graphic characters that appear in filenames.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-Q&lt;/b&gt;, &lt;b&gt;--quote-name&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Quote filenames with "; quote nongraphic characters.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-R&lt;/b&gt;, &lt;b&gt;--recursive&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;List directories and their contents recursively.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-R&lt;/b&gt;file, &lt;b&gt;--reload-state&lt;/b&gt; &lt;i&gt;file&lt;/i&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Load state from &lt;i&gt;file&lt;/i&gt; before starting execution.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-S&lt;/b&gt;, &lt;b&gt;--sort=size&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Sort by file size, largest to smallest.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-U, sort=none&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Do not sort files.&lt;/blockquote&gt;&lt;varlistentry&gt;&lt;term&gt;&lt;b&gt;-X, sort=extension&lt;/b&gt;&lt;/term&gt; &lt;/varlistentry&gt;&lt;br /&gt;
&lt;blockquote&gt;Sort by file extension, then by filename.&lt;/blockquote&gt;&lt;span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1254806986033838907-4064117669783242572?l=dailylinuxcommands.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=epQwKCYY"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=yJ16FmZ8"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=SQNcseRK"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?i=SQNcseRK" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=Eq3Yme96"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=52" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=whSjO92E"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?i=whSjO92E" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=oQePAZuG"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=54" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DailyLinuxCommands?a=n9i6aqnx"&gt;&lt;img src="http://feeds.feedburner.com/~f/DailyLinuxCommands?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DailyLinuxCommands/~4/hyFSUQhT-Cs" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DailyLinuxCommands/~3/hyFSUQhT-Cs/list-directories-and-files.html</link><author>noreply@blogger.com (Fasil)</author><thr:total>0</thr:total><feedburner:origLink>http://dailylinuxcommands.blogspot.com/2008/10/list-directories-and-files.html</feedburner:origLink></item></channel></rss>

