<?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>Saeid Zebardast&#039;s Blog &#187; Terminal</title> <atom:link href="http://zebardast.ir/en/tag/terminal/feed/" rel="self" type="application/rss+xml" /><link>http://zebardast.ir/en</link> <description></description> <lastBuildDate>Sun, 23 Oct 2011 18:18:07 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator><image><title>Saeid Zebardast&#039;s Blog</title> <url>http://0.gravatar.com/avatar/1518e6b905d65cbe0a03243a199e18fc.png?s=48</url><link>http://zebardast.ir/en</link> </image> <item><title>How to find hardware information from command line on Linux</title><link>http://zebardast.ir/en/find-and-show-hardware-information-from-command-line-on-linux/</link> <comments>http://zebardast.ir/en/find-and-show-hardware-information-from-command-line-on-linux/#comments</comments> <pubDate>Mon, 01 Mar 2010 14:25:26 +0000</pubDate> <dc:creator>Saeid Zebardast</dc:creator> <category><![CDATA[GNU/Linux]]></category> <category><![CDATA[howto]]></category> <category><![CDATA[Terminal]]></category> <category><![CDATA[cli]]></category> <category><![CDATA[hardware]]></category><guid isPermaLink="false">http://zebardast.ir/en/?p=94</guid> <description><![CDATA[— linux Hi In this post you can see some useful command to find and show hardware information on Linux. Default commands ALL devices dmesg dmesg will show you the kernel messages which can show you all the devices the kernel has found (hard disks,cdroms,etc) CPU # cat /proc/cpuinfo Memory # cat /proc/meminfo $ free [...] Related posts:<ol><li><a href='http://zebardast.ir/en/linux-and-unix-bash-shell-aliases/' rel='bookmark' title='Linux and UNIX bash shell aliases'>Linux and UNIX bash shell aliases</a></li><li><a href='http://zebardast.ir/en/how-to-posting-to-identica-from-the-cli/' rel='bookmark' title='How to posting to Identi.ca from the CLI'>How to posting to Identi.ca from the CLI</a></li><li><a href='http://zebardast.ir/en/how-to-get-special-lines-data-from-file-linux/' rel='bookmark' title='How to get special lines data from file (Linux)'>How to get special lines data from file (Linux)</a></li></ol>]]></description> <content:encoded><![CDATA[<div style="float:right"><div class="autocap " style="width: 48px;"><div><img class=" size-full wp-image-873" width="48" height="48" title="linux" alt="linux" src="http://zebardast.ir/wp-content/uploads/2009/11/linux48.gif"/><p class="autocap-text"><span class="hide">— </span>linux</p></div></div></div><p>Hi</p><p>In this post you can see some useful command to find and show hardware information on Linux.</p><h3>Default commands</h3><h4>ALL devices</h4><pre>dmesg</pre><p>dmesg will show you the kernel messages which can show you all the devices the kernel has found (hard disks,cdroms,etc)</p><h4>CPU</h4><pre># cat /proc/cpuinfo</pre><h4>Memory</h4><pre># cat /proc/meminfo
$ free
</pre><h4>PCI (including usb bridges,agp cards etc)</h4><pre>$ lspci</pre><h4>USB devices (mice,etc)</h4><pre>$ lsusb</pre><h4>Hard drives</h4><pre># fdisk -l
$ df -h
</pre><h3>Additional Command</h3><h4>lshw</h4><p>lshw is a Linux command which provides details of all the hardware in your PC. The details provided by the lshw command run the gamut of processors, memory, slots, onboard sound, video chipset and more.</p><h5>Install lshw</h5><p>Arch:</p><pre># pacman -S lshw</pre><p>Debain, Ubuntu or any of its derivatives:</p><pre>$ sudo aptitude install lshw</pre><p>Redhat, fedora, CentOS:</p><pre># yum install lshw</pre><p>Gentoo:</p><pre># emerge lshw</pre><h5>Run lshw</h5><pre># lshw
# lshw -short</pre><p>To get the output in HTML, you use the -html option as follows:</p><pre># lshw -html > hardware-info.html</pre><p>• See <a href="http://linuxandfriends.com/2009/02/23/lshw-command-list-hardware-information-in-linux/">lshw command – List hardware information in Linux </a></p><h4>dmidecode</h4><p>dmidecode command reads the system DMI table to display hardware and BIOS information of the server. Apart from getting current configuration of the system, you can also get information about maximum supported configuration of the system using dmidecode. For example, dmidecode gives both the current RAM on the system and the maximum RAM supported by the system.<br /> dmidecode is installed by default on many linux distribution like debain, ubuntu and fedora.<br /> • See <a href="http://www.thegeekstuff.com/2008/11/how-to-get-hardware-information-on-linux-using-dmidecode-command/">How To Get Hardware Information On Linux Using dmidecode Command</a></p><p>have a good time <img src='http://zebardast.ir/en/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><div class="wp-biographia-container-top" style="background-color:#FFEAA8;"><div class="wp-biographia-pic"><img alt='' src='http://1.gravatar.com/avatar/1518e6b905d65cbe0a03243a199e18fc?s=100&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D100&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-biographia-text"><h3>About <a href="http://zebardast.ir/en/author/admin/" title="Saeid Zebardast">Saeid Zebardast</a></h3><p>I'm Senior software engineer with 5+ years of professional experience includes cross-platform proficiency with considerable knowledge of programming languages especially Java and programming paradigms such as OO and development methodologies. Also I'm MySQL DBA since 2006.</p><small><a href="mailto:&#115;&#97;&#101;&#105;&#100;.zeb&#97;&#114;da&#115;&#116;&#64;g&#109;&#97;&#105;&#108;&#46;&#99;o&#109;" title="Send Saeid Zebardast Mail">Mail</a> | <a href="http://zebardast.ir/" title="Saeid Zebardast On The Web">Web</a> | <a href="https://twitter.com/#!/saeid" title="Saeid Zebardast On Twitter">Twitter</a> | <a href="https://www.facebook.com/saeid.zebardast" title="Saeid Zebardast On Facebook">Facebook</a> | <a href="http://www.linkedin.com/in/saeid" title="Saeid Zebardast On LinkedIn">LinkedIn</a> | <a href="https://plus.google.com/112638433061122581433" title="Saeid Zebardast On Google+">Google+</a> | <a href="http://zebardast.ir/en/author/admin/" title="More Posts By Saeid Zebardast">More Posts (31)</a></small></div></div><p><a class="a2a_button_google_plus" href="http://www.addtoany.com/add_to/google_plus?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Ffind-and-show-hardware-information-from-command-line-on-linux%2F&amp;linkname=How%20to%20find%20hardware%20information%20from%20command%20line%20on%20Linux" title="Google+" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google+"/></a><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Ffind-and-show-hardware-information-from-command-line-on-linux%2F&amp;linkname=How%20to%20find%20hardware%20information%20from%20command%20line%20on%20Linux" title="Facebook" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Ffind-and-show-hardware-information-from-command-line-on-linux%2F&amp;linkname=How%20to%20find%20hardware%20information%20from%20command%20line%20on%20Linux" title="Twitter" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fzebardast.ir%2Fen%2Ffind-and-show-hardware-information-from-command-line-on-linux%2F&amp;title=How%20to%20find%20hardware%20information%20from%20command%20line%20on%20Linux" id="wpa2a_2"><span style='display:none'>Share</span></a></p><p>Related posts:<ol><li><a href='http://zebardast.ir/en/linux-and-unix-bash-shell-aliases/' rel='bookmark' title='Linux and UNIX bash shell aliases'>Linux and UNIX bash shell aliases</a></li><li><a href='http://zebardast.ir/en/how-to-posting-to-identica-from-the-cli/' rel='bookmark' title='How to posting to Identi.ca from the CLI'>How to posting to Identi.ca from the CLI</a></li><li><a href='http://zebardast.ir/en/how-to-get-special-lines-data-from-file-linux/' rel='bookmark' title='How to get special lines data from file (Linux)'>How to get special lines data from file (Linux)</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://zebardast.ir/en/find-and-show-hardware-information-from-command-line-on-linux/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>What&#039;s dpkg-reconfigure</title><link>http://zebardast.ir/en/whats-dpkg-reconfigure/</link> <comments>http://zebardast.ir/en/whats-dpkg-reconfigure/#comments</comments> <pubDate>Thu, 31 Jan 2008 16:05:01 +0000</pubDate> <dc:creator>Saeid Zebardast</dc:creator> <category><![CDATA[GNU/Linux]]></category> <category><![CDATA[Tips]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Terminal]]></category><guid isPermaLink="false">http://zebardast.wordpress.com/?p=16</guid> <description><![CDATA[Reconfigure an already installed package like gdm. dpkg-reconfigure package_name For example you can reconfigure X Server: sudo dpkg-reconfigure xserver-xorg About Saeid ZebardastI'm Senior software engineer with 5+ years of professional experience includes cross-platform proficiency with considerable knowledge of programming languages especially Java and programming paradigms such as OO and development methodologies. Also I'm MySQL DBA [...] Related posts:<ol><li><a href='http://zebardast.ir/en/about/' rel='bookmark' title='About'>About</a></li></ol>]]></description> <content:encoded><![CDATA[<p>Reconfigure an already installed package like gdm.</p><pre>dpkg-reconfigure package_name</pre><p>For example you can reconfigure X Server:</p><pre>sudo dpkg-reconfigure xserver-xorg</pre><div class="wp-biographia-container-top" style="background-color:#FFEAA8;"><div class="wp-biographia-pic"><img alt='' src='http://1.gravatar.com/avatar/1518e6b905d65cbe0a03243a199e18fc?s=100&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D100&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-biographia-text"><h3>About <a href="http://zebardast.ir/en/author/admin/" title="Saeid Zebardast">Saeid Zebardast</a></h3><p>I'm Senior software engineer with 5+ years of professional experience includes cross-platform proficiency with considerable knowledge of programming languages especially Java and programming paradigms such as OO and development methodologies. Also I'm MySQL DBA since 2006.</p><small><a href="mailto:&#115;a&#101;i&#100;.z&#101;&#98;&#97;&#114;da&#115;t&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;" title="Send Saeid Zebardast Mail">Mail</a> | <a href="http://zebardast.ir/" title="Saeid Zebardast On The Web">Web</a> | <a href="https://twitter.com/#!/saeid" title="Saeid Zebardast On Twitter">Twitter</a> | <a href="https://www.facebook.com/saeid.zebardast" title="Saeid Zebardast On Facebook">Facebook</a> | <a href="http://www.linkedin.com/in/saeid" title="Saeid Zebardast On LinkedIn">LinkedIn</a> | <a href="https://plus.google.com/112638433061122581433" title="Saeid Zebardast On Google+">Google+</a> | <a href="http://zebardast.ir/en/author/admin/" title="More Posts By Saeid Zebardast">More Posts (31)</a></small></div></div><p><a class="a2a_button_google_plus" href="http://www.addtoany.com/add_to/google_plus?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fwhats-dpkg-reconfigure%2F&amp;linkname=What%26%23039%3Bs%20dpkg-reconfigure" title="Google+" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google+"/></a><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fwhats-dpkg-reconfigure%2F&amp;linkname=What%26%23039%3Bs%20dpkg-reconfigure" title="Facebook" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Fwhats-dpkg-reconfigure%2F&amp;linkname=What%26%23039%3Bs%20dpkg-reconfigure" title="Twitter" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fzebardast.ir%2Fen%2Fwhats-dpkg-reconfigure%2F&amp;title=What%26%23039%3Bs%20dpkg-reconfigure" id="wpa2a_4"><span style='display:none'>Share</span></a></p><p>Related posts:<ol><li><a href='http://zebardast.ir/en/about/' rel='bookmark' title='About'>About</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://zebardast.ir/en/whats-dpkg-reconfigure/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Root Terminal in Ubuntu</title><link>http://zebardast.ir/en/root-terminal-in-ubuntu/</link> <comments>http://zebardast.ir/en/root-terminal-in-ubuntu/#comments</comments> <pubDate>Tue, 18 Dec 2007 08:38:07 +0000</pubDate> <dc:creator>Saeid Zebardast</dc:creator> <category><![CDATA[Terminal]]></category> <category><![CDATA[Tips]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[root]]></category> <category><![CDATA[sudo]]></category><guid isPermaLink="false">http://zebardast.wordpress.com/2007/12/18/root-terminal-in-ubuntu/</guid> <description><![CDATA[Hi Ubuntu has the root account disabled. You use sudo to run commands as root. if you need root access for some work: To start a root shell, but keep the current shell&#8217;s environment, use: sudo -s To start a root shell (i.e. a command window where you can run root commands), starting root&#8217;s environment [...] No related posts.]]></description> <content:encoded><![CDATA[<p><img src='http://zebardast.files.wordpress.com/2007/12/terminal_icon_48_48.jpg' alt='terminal_icon_48_48.jpg' align='right' /><br /> Hi<br /> Ubuntu <a href="https://help.ubuntu.com/community/RootSudo">has the root account disabled</a>.<br /> You use sudo to run commands as root. if you need root access for some work:</p><ul><li>To start a root shell, but keep the current shell&#8217;s environment, use:<pre>sudo -s</pre></li><li>To start a root shell (i.e. a command window where you can run root commands), starting root&#8217;s environment and login scripts, use:<pre>sudo -i</pre></li></ul><p>There is also a root terminal that is in the Applications menu. You have to right-click to edit the menu’s and add a check to the root terminal in System Tools items.</p><p>Don’t forget to type &#8216;exit&#8217; (or press Ctrl+D) to switch back to your normal user when you are done.</p><p>• <a href="https://help.ubuntu.com/community/RootSudo">More information about sudo in Ubuntu wiki</a></p><div class="wp-biographia-container-top" style="background-color:#FFEAA8;"><div class="wp-biographia-pic"><img alt='' src='http://1.gravatar.com/avatar/1518e6b905d65cbe0a03243a199e18fc?s=100&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D100&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-biographia-text"><h3>About <a href="http://zebardast.ir/en/author/admin/" title="Saeid Zebardast">Saeid Zebardast</a></h3><p>I'm Senior software engineer with 5+ years of professional experience includes cross-platform proficiency with considerable knowledge of programming languages especially Java and programming paradigms such as OO and development methodologies. Also I'm MySQL DBA since 2006.</p><small><a href="mailto:&#115;a&#101;&#105;d&#46;ze&#98;a&#114;&#100;as&#116;&#64;&#103;mai&#108;&#46;&#99;&#111;&#109;" title="Send Saeid Zebardast Mail">Mail</a> | <a href="http://zebardast.ir/" title="Saeid Zebardast On The Web">Web</a> | <a href="https://twitter.com/#!/saeid" title="Saeid Zebardast On Twitter">Twitter</a> | <a href="https://www.facebook.com/saeid.zebardast" title="Saeid Zebardast On Facebook">Facebook</a> | <a href="http://www.linkedin.com/in/saeid" title="Saeid Zebardast On LinkedIn">LinkedIn</a> | <a href="https://plus.google.com/112638433061122581433" title="Saeid Zebardast On Google+">Google+</a> | <a href="http://zebardast.ir/en/author/admin/" title="More Posts By Saeid Zebardast">More Posts (31)</a></small></div></div><p><a class="a2a_button_google_plus" href="http://www.addtoany.com/add_to/google_plus?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Froot-terminal-in-ubuntu%2F&amp;linkname=Root%20Terminal%20in%20Ubuntu" title="Google+" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google+"/></a><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Froot-terminal-in-ubuntu%2F&amp;linkname=Root%20Terminal%20in%20Ubuntu" title="Facebook" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fzebardast.ir%2Fen%2Froot-terminal-in-ubuntu%2F&amp;linkname=Root%20Terminal%20in%20Ubuntu" title="Twitter" rel="nofollow" target="_blank"><img src="http://zebardast.ir/en/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fzebardast.ir%2Fen%2Froot-terminal-in-ubuntu%2F&amp;title=Root%20Terminal%20in%20Ubuntu" id="wpa2a_6"><span style='display:none'>Share</span></a></p><p>No related posts.</p>]]></content:encoded> <wfw:commentRss>http://zebardast.ir/en/root-terminal-in-ubuntu/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 12/53 queries in 2.465 seconds using disk: basic
Object Caching 1524/1598 objects using disk: basic

Served from: zebardast.ir @ 2012-02-10 10:52:08 -->
