<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8651458735881455420</id><updated>2014-03-19T01:01:40.208-07:00</updated><category term="Linux"/><category term="Ubuntu"/><category term="Command"/><category term="Unix"/><category term="apps"/><category term="Networking"/><category term="GIT commands"/><category term="Gnome"/><category term="Notification"/><category term="Services"/><category term="Vim"/><title type='text'>Linuxicle</title><subtitle type='html'>A Linux Blog</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linuxicle.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default'/><link rel='alternate' type='text/html' href='http://linuxicle.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Atul Makwana</name><uri>https://plus.google.com/111888245882837550633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-P5vZrhAXMuY/AAAAAAAAAAI/AAAAAAAAASw/7wcJkU4IQis/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8651458735881455420.post-8607528323048403642</id><published>2013-10-13T10:45:00.001-07:00</published><updated>2013-10-13T10:45:32.030-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apps"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Install GenyMotion in Linux/ubuntu 13.04</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://www.genymotion.com/&quot; style=&quot;color: #1155cc;&quot; target=&quot;_blank&quot;&gt;Genymotion&lt;/a&gt;, is the next generation of the AndroVM open source project, it is&amp;nbsp;  a fast, cross-platform Android emulator that comes with pre-configured  Android in it. It’s so easy use and has lots more functionalities that normal android emulator doesn&#39;t. &lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://www.genymotion.com/assets/genymotion-fits-in-your-developping-environment-.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://www.genymotion.com/assets/genymotion-fits-in-your-developping-environment-.png&quot; height=&quot;162&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to install Genymotion in linux:&lt;/h3&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&amp;nbsp;&lt;a href=&quot;https://cloud.genymotion.com/page/customer/login/&quot; target=&quot;_blank&quot;&gt;Sign up&lt;/a&gt; for the genymotion account.&lt;/li&gt;&lt;li&gt;After logging in download genymotion for linux from &lt;a href=&quot;https://cloud.genymotion.com/page/launchpad/download/&quot; target=&quot;_blank&quot;&gt;this link.&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Download and install virtualbox for linux from the &lt;a href=&quot;https://www.virtualbox.org/wiki/Downloads&quot; target=&quot;_blank&quot;&gt;this link&lt;/a&gt;.&lt;/li&gt;&lt;/ol&gt;Now nevigate the genymotion from the terminal.&lt;br /&gt;Then enter the following commands in the terminal&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;style type=&quot;text/css&quot;&gt;  .code { border: 1px solid #ccc; list-style-type: decimal-leading-zero; padding: 5px; margin: 0; }   .code code { display: block; padding: 3px; margin-bottom: 0; }   .code li { background: #ddd; border: 1px solid #ccc; margin: 0 0 2px 2.2em; } &lt;/style&gt; &lt;br /&gt;&lt;ol class=&quot;code&quot;&gt;&lt;li&gt;&lt;code&gt;chmod +x genymotion-1.1.0_x64.bin&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code&gt;./genymotion-1.1.0_x64.bin&lt;/code&gt;&lt;/li&gt;&lt;/ol&gt;It will ask for the installation like below screen shot. &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-TpJxS9wguKo/UlrWpGThWoI/AAAAAAAAArY/6sUaT1Xt5Kg/s1600/Screenshot+from+2013-07-22+17:05:29.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-TpJxS9wguKo/UlrWpGThWoI/AAAAAAAAArY/6sUaT1Xt5Kg/s1600/Screenshot+from+2013-07-22+17:05:29.png&quot; height=&quot;118&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;After the process Genymotion it is ready to be used. to open it write below command&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;  .code { border: 1px solid #ccc; list-style-type: decimal-leading-zero; padding: 5px; margin: 0; }   .code code { display: block; padding: 3px; margin-bottom: 0; }   .code li { background: #ddd; border: 1px solid #ccc; margin: 0 0 2px 2.2em; } &lt;/style&gt; &lt;ol class=&quot;code&quot;&gt;&lt;li&gt;&lt;code&gt;./genymotion&lt;/code&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Using GenyMotion: &lt;/h3&gt;Now login with your Genymotion username and password. Click add from the Genymotion home screen. and Select a virtual device from the Genymotion cloud and click Add. &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-cmc2NcaMsqU/UlrXr4cRnWI/AAAAAAAAArg/gmUyYrxX7-Q/s1600/rsz_screenshot_from_2013-07-21_212215.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-cmc2NcaMsqU/UlrXr4cRnWI/AAAAAAAAArg/gmUyYrxX7-Q/s1600/rsz_screenshot_from_2013-07-21_212215.png&quot; height=&quot;542&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Now you can see the screen like below, click next to begin the download of virtual device. &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-qlHWV4mMcFE/UlrYgDm-V4I/AAAAAAAAAro/hhxSO_oyx9U/s1600/rsz_screenshot_from_2013-07-21_212215.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-qlHWV4mMcFE/UlrYgDm-V4I/AAAAAAAAAro/hhxSO_oyx9U/s1600/rsz_screenshot_from_2013-07-21_212215.png&quot; height=&quot;636&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;The successful installation will display you the below screen.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-MXPLpdFnGu8/UlrY2MgSumI/AAAAAAAAArw/0_-rfMlJ5xM/s1600/rsz_screenshot_from_2013-07-22_172938.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-MXPLpdFnGu8/UlrY2MgSumI/AAAAAAAAArw/0_-rfMlJ5xM/s1600/rsz_screenshot_from_2013-07-22_172938.png&quot; height=&quot;640&quot; width=&quot;634&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Then you will be asked to enter a name for the downloaded Genymotion  virtual device. Enter a name and select create and the click finish.&lt;br /&gt;&lt;br /&gt;It will list the created virtual device in “Your virtual devices” in the home screen Then select play to start your virtual device.For the first time it asks  to configure sdk path for using ADB , select the sdk path and you will  be booted to Android home screen like.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-8GUa7E1Ud4c/Ue0hJj5bc1I/AAAAAAAAArM/W4OFpMXYhoE/s1600/Screenshot+from+2013-07-21+21%253A38%253A45.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-8GUa7E1Ud4c/Ue0hJj5bc1I/AAAAAAAAArM/W4OFpMXYhoE/s1600/Screenshot+from+2013-07-21+21%253A38%253A45.png&quot; height=&quot;358&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Here are plugins&lt;br /&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Eclipse : &lt;a href=&quot;http://plugins.genymotion.com/eclipse&quot;&gt;http://plugins.genymotion.com/eclipse&lt;/a&gt;&lt;br /&gt;Android studio : &lt;a href=&quot;http://plugins.genymotion.com/plugins/idea/1.0.1/genymotion-idea-plugin-20130716.jar&quot;&gt;http://plugins.genymotion.com/plugins/idea/1.0.1/genymotion-idea-plugin-20130716.jar&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;code&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Happy Droiding with Linux!&lt;/span&gt;&lt;/span&gt; &lt;/code&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxicle.blogspot.com/feeds/8607528323048403642/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8651458735881455420&amp;postID=8607528323048403642&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/8607528323048403642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/8607528323048403642'/><link rel='alternate' type='text/html' href='http://linuxicle.blogspot.com/2013/10/install-genymotion-in-linuxubuntu-1304.html' title='Install GenyMotion in Linux/ubuntu 13.04'/><author><name>Atul Makwana</name><uri>https://plus.google.com/111888245882837550633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-P5vZrhAXMuY/AAAAAAAAAAI/AAAAAAAAASw/7wcJkU4IQis/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-TpJxS9wguKo/UlrWpGThWoI/AAAAAAAAArY/6sUaT1Xt5Kg/s72-c/Screenshot+from+2013-07-22+17:05:29.png" height="72" width="72"/><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-8651458735881455420.post-8694077496548731437</id><published>2013-09-18T11:45:00.000-07:00</published><updated>2013-10-08T10:36:58.853-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Command"/><category scheme="http://www.blogger.com/atom/ns#" term="GIT commands"/><title type='text'>A beginner&#39;s Guide to GIT command in Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://git-scm.com/images/logos/downloads/Git-Logo-2Color.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;133&quot; src=&quot;http://git-scm.com/images/logos/downloads/Git-Logo-2Color.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;GIT is a version control system, which maintains the versions of your code,(if you are a developer!) This Guide will help you to install git in linux, and commit your code in &lt;a href=&quot;http://github.com/&quot; target=&quot;_blank&quot;&gt;github&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;How to install Git in linux&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;To install git in Linux, you need to run the below command in the terminal, open your terminal,&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;sudo apt-get install git&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;This command will install git in your linux machine.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Basic git command&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After installing the git you need to setup the enviroment for git, for that you need to configure the git,&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;git config&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;Sets configuration values for your user name, email, gpg key, preferred diff algorithm, file formats and more. Example:&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;git config --global user.name &quot;iGyan&quot; &lt;br /&gt;&lt;br /&gt;git config --global user.email &quot;iGyan.Org@Gmail.com&quot; &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;After configuring the git you need to make a branch tree for your code, for thet go to your code directory in terminal using and cd command and write.&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;git init&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;it Initializes a git repository and creates the initial ‘.git’ directory in a new or in an existing project.&lt;br /&gt;now if you see the status of your branch using&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;git status &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;to add the file in the branch you need to run add command like&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;git add&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;After adding the files you need to commit the code in your local system using&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;git commit -m ‘Added Some code’&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;here -m stands for the message, and in quoted string is your message.&lt;br /&gt;And then you need to push the code to the repository of GIT like&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;git push https://github.com/iGyanCode/iGyan.git&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;after push you need to give a branch path which usually ends with *.git&lt;br /&gt;&lt;br /&gt;I am Still Updating this one!&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;Have a Happy Linux!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxicle.blogspot.com/feeds/8694077496548731437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8651458735881455420&amp;postID=8694077496548731437&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/8694077496548731437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/8694077496548731437'/><link rel='alternate' type='text/html' href='http://linuxicle.blogspot.com/2013/09/a-beginners-guide-to-git-command-in.html' title='A beginner&#39;s Guide to GIT command in Linux'/><author><name>Atul Makwana</name><uri>https://plus.google.com/111888245882837550633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-P5vZrhAXMuY/AAAAAAAAAAI/AAAAAAAAASw/7wcJkU4IQis/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-8651458735881455420.post-8557433581270520378</id><published>2013-09-03T11:54:00.003-07:00</published><updated>2013-09-03T11:56:55.383-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Command"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Unix"/><title type='text'>Create Useful and handy commands with alias</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://www.asetalias.in/media/images/alias_head.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Linux Alias&quot; border=&quot;0&quot; src=&quot;http://www.asetalias.in/media/images/alias_head.png&quot; height=&quot;241&quot; title=&quot;Linux Alias&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;An &lt;i&gt;alias&lt;/i&gt; is command line shortcuts. creating alias means that you will spend less time on typing the complex commands, you can create alias in linux that give meaningful names to obscure commands,&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Viewing your aliases&lt;/span&gt;&lt;br /&gt;Bash is often configured with a few predefined aliases, To view the alias in your shell, just type alias and press enter,&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;$ alias&lt;br /&gt;alias l.=’ls -d .* --color=tty’&lt;br /&gt;alias ll=’ls -l --color=tty’&lt;br /&gt;alias ls=’ls --color=tty’&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;Some useful alias as your useful handy commands like,&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;alias up=”cd ..”&lt;br /&gt;alias unpack=”tar -zxvf “&lt;br /&gt;alias netcon=”netstat -p | grep -v’^unix’”&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;The find command is a great candidate for an alias or two because it’s such a complex command&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;alias f=’find . -name’&lt;br /&gt;alias fi=’find . -iname’&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;After defining these aliases, you can search for a file (by name) like this:&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;$ f myfile.sh&lt;br /&gt;./tmp/myfile.sh&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;to search for a filename without regard to letter case:&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;$ fi myfile.sh&lt;br /&gt;./tmp/myfile.sh&lt;br /&gt;./work/MyFile.sh&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;The gf alias combines find and grep to search for specific text in all the files in a directory tree. You can use the alias like this:&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;$ gf Martini&lt;br /&gt;./recipes/igyan_tutes.txt:200: the perfect&lt;br /&gt;Martini&lt;br /&gt;./blog/surficle.html:22: I prefer my&lt;br /&gt;Martinis shaken, not stirred&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;To save your aliases, use your favorite editor to&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;add them to the ~/.bashrc file. This way, each time you log in, your aliases are there when you need them. To add system-wide aliases,&lt;/blockquote&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxicle.blogspot.com/feeds/8557433581270520378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8651458735881455420&amp;postID=8557433581270520378&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/8557433581270520378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/8557433581270520378'/><link rel='alternate' type='text/html' href='http://linuxicle.blogspot.com/2013/09/create-useful-and-handy-commands-with.html' title='Create Useful and handy commands with alias'/><author><name>Atul Makwana</name><uri>https://plus.google.com/111888245882837550633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-P5vZrhAXMuY/AAAAAAAAAAI/AAAAAAAAASw/7wcJkU4IQis/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-8651458735881455420.post-263521319081666621</id><published>2013-08-22T12:32:00.002-07:00</published><updated>2013-09-02T04:38:48.639-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Services"/><category scheme="http://www.blogger.com/atom/ns#" term="Unix"/><title type='text'>List open ports and listening services</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;O&lt;/span&gt;ne of the first things you should do after a fresh operating system install is see what services are running &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;and remove any unneeded services from the system startup process. You could use a port scanner &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;and run it against the host, but if one didn’t come with the operating system install, you’ll&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;likely have to connect your fresh (and possibly insecure) machine to the network to download one.&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;a href=&quot;http://www.thereliabilityblog.com/wp-content/uploads/2012/05/listening-ear1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://www.thereliabilityblog.com/wp-content/uploads/2012/05/listening-ear1.jpg&quot; height=&quot;426&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;To get a list of listening ports and their owning processes under Linux, run this command:&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;netstat -luntp&lt;br /&gt;Active Internet connections (only servers)&lt;br /&gt;Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name&lt;br /&gt;tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1679/sshd&lt;br /&gt;udp 0 0 0.0.0.0:68 0.0.0.0:* 1766/dhclient&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;To get a list of listening ports under FreeBSD, run this command:&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;#netstat -a -n | egrep &#39;Proto|LISTEN&#39;&lt;br /&gt;Proto Recv-Q Send-Q Local Address Foreign Address (state)&lt;br /&gt;tcp4 0 0 *.587 *.* LISTEN&lt;br /&gt;tcp4 0 0 *.25 *.* LISTEN&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Manually grep the &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;/etc/services&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt; file:&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;grep -w 993 /etc/services&lt;br /&gt;imaps 993/udp # imap4 protocol over TLS/SSL&lt;br /&gt;imaps 993/tcp # imap4 protocol over TLS/SSL&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;/etc/services&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt; file should only be used as a guide. If a process is listening &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;on a port listed in the file, it doesn’t necessarily mean that the service listed &lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;in &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;/etc/services&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt; is what it is providing.&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;To get a list of listening ports and their owning processes with &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;sockstat&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;, run this command:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;sockstat -4 -l&lt;br /&gt;USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS&lt;br /&gt;root sendmail 1141 4 tcp4 *:25 *:*&lt;br /&gt;root sendmail 1141 5 tcp4 *:587 *:*&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;To get a list of listening ports and the processes that own them using &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;lsof&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;, run this command:&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;lsof -i -n | egrep &#39;COMMAND|LISTEN&#39;&lt;br /&gt;COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME&lt;br /&gt;named 1127 named 20u IPv4 0xeb401dc0 0t0 TCP *:domain (LISTEN)&lt;br /&gt;inetd 1133 root 4u IPv4 0xeb401ba0 0t0 TCP *:imap (LISTEN)&lt;/span&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxicle.blogspot.com/feeds/263521319081666621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8651458735881455420&amp;postID=263521319081666621&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/263521319081666621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/263521319081666621'/><link rel='alternate' type='text/html' href='http://linuxicle.blogspot.com/2013/08/check-for-listening-services-in-linux.html' title='List open ports and listening services'/><author><name>Atul Makwana</name><uri>https://plus.google.com/111888245882837550633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-P5vZrhAXMuY/AAAAAAAAAAI/AAAAAAAAASw/7wcJkU4IQis/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-8651458735881455420.post-1121503410783186405</id><published>2013-08-14T09:40:00.001-07:00</published><updated>2013-08-14T09:42:44.784-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Networking"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Monitor Network Bandwidth Usage With Vnstat</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://humdi.net/vnstat/&quot; target=&quot;_blank&quot;&gt;Vnstat&lt;/a&gt;&amp;nbsp;is the tool to check the the internet bandwidth usage, finding the bandwidth usage over an hour, day, week can be tricky. to install vnstat in linux you need to run the following command.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-NSLpCCfW8BM/UguyYdxOyZI/AAAAAAAAAiY/0aZLzoPdbdU/s1600/NetworkUsageIcon.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-NSLpCCfW8BM/UguyYdxOyZI/AAAAAAAAAiY/0aZLzoPdbdU/s1600/NetworkUsageIcon.png&quot; height=&quot;400&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;sudo apt-get install vnstat&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After installing the vnstate you need to run the below command to check your network bandwidth usage,&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;vnstat&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;To check hourly network usage you need to run&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;vnstat -h&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;to check the network per day&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt; vnstat -d&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;for weekly network usage&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt; vnstat -w&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;for monthly network usage&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt; vnstat -m&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Find highest network of top 10 days using the below command&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt; vnstat -t&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;vnstat -dvnStat is a useful little tool to get a good overview of how much bandwidth you use on a hourly/daily/weekly/monthly basis and requires almost no resources to do so.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxicle.blogspot.com/feeds/1121503410783186405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8651458735881455420&amp;postID=1121503410783186405&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/1121503410783186405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/1121503410783186405'/><link rel='alternate' type='text/html' href='http://linuxicle.blogspot.com/2013/08/monitor-network-bandwidth-usage-with.html' title='Monitor Network Bandwidth Usage With Vnstat'/><author><name>Atul Makwana</name><uri>https://plus.google.com/111888245882837550633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-P5vZrhAXMuY/AAAAAAAAAAI/AAAAAAAAASw/7wcJkU4IQis/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-NSLpCCfW8BM/UguyYdxOyZI/AAAAAAAAAiY/0aZLzoPdbdU/s72-c/NetworkUsageIcon.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Coimbatore, Tamil Nadu, India</georss:featurename><georss:point>11.0168445 76.955832099999952</georss:point><georss:box>10.767472 76.633108599999957 11.266217 77.278555599999947</georss:box><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-8651458735881455420.post-5151740183794570110</id><published>2013-08-07T22:35:00.001-07:00</published><updated>2013-08-07T22:35:55.463-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apps"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Use Gmail in terminal with vmail</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Vmail provides a interface to send email from terminal.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;To install vmail you need Ruby 1.9.0` or higher with SSL support in your linux.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Here is the step to install vmail in the terminal.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://danielchoi.com/software/images-vmail/attach.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://danielchoi.com/software/images-vmail/attach.png&quot; height=&quot;360&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Step 1&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;: installing the vmail using gem.&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;sudo gem install vmail&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Step 2&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;: Creating yaml file to set up gmail account.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;To run Vmail, create a yaml file called .vmailrc and save it either in ~/.vmail/default/ or in your home directory. If you do the latter, Vmail will move the file to ~/.vmail/default/ when it starts up.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Step 3&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;: Content in the &amp;nbsp;.vmailrc yaml file.&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;username: surficle@gmail.com &lt;br /&gt;password: password &lt;br /&gt;name: atul arvind signature: |&lt;br /&gt;  -- &lt;br /&gt;  Sent from Vmail. http://surficle.com&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;This file should be formatted in &lt;/span&gt;&lt;a href=&quot;http://www.yaml.org/spec/1.2/spec.html&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;YAML&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; syntax. If you have any unsual characters in a string value, try putting quotes around that value.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Starting vmail in Terminal:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Once you&#39;ve created the configuration file and (optionally) the contacts file, you can start Vmail with&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;vmail&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;This opens the Vmail/Vim interface and shows you the last 100 messages in your Gmail inbox.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;You can have Vmail show messages from any other mailbox (a.k.a. label) on startup by passing in the mailbox name as an argument:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxicle.blogspot.com/feeds/5151740183794570110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8651458735881455420&amp;postID=5151740183794570110&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/5151740183794570110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/5151740183794570110'/><link rel='alternate' type='text/html' href='http://linuxicle.blogspot.com/2013/08/use-gmail-in-terminal-with-vmail.html' title='Use Gmail in terminal with vmail'/><author><name>Atul Makwana</name><uri>https://plus.google.com/111888245882837550633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-P5vZrhAXMuY/AAAAAAAAAAI/AAAAAAAAASw/7wcJkU4IQis/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-8651458735881455420.post-8909021902120686207</id><published>2013-07-14T12:26:00.001-07:00</published><updated>2013-07-14T12:26:07.851-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Command"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Unix"/><title type='text'>Most Useful and handy Linux / Unix commands</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div&gt;  &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-QW80toXLWk0/UeL5iKE2SUI/AAAAAAAAAV4/5Jp0hFYEPtA/s1600/Linux+useful+handy+command.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/-QW80toXLWk0/UeL5iKE2SUI/AAAAAAAAAV4/5Jp0hFYEPtA/s640/Linux+useful+handy+command.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;pwd&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;It Prints the working directory, i.e., display the name of my current directory on the screen.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;hostname&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;It Prints the name of the local host (the machine on which I am working). Use &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; line-height: 115%; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;netconf &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;(as root) to change the name of the machine.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;whoami&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Print my login name.&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;id &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;username&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Print user id (uid) and his/her group id (gid), effective id (if different than the real id) and the supplementary groups.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;date&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Print the operating system current date, time and timezone. For an ISO standard format,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;time&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Determine the amount of time that it takes for a process to complete + other process accounting. Don&#39;t confuse it with the &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;date&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;command (see previous entry). E.g. I can find out how long it takes to display a directory content using: &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;time ls&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;. Or I can test the&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;time function with &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; line-height: 115%; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;time sleep 10.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; line-height: 115%; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;clock&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;hwclock&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;(two commands, use either). Obtain date/time from the computer hardware (real time, battery−powered) clock. You can also use one&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;of this commands to set the hardware clock, but &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;setclock &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;may be simplier (see 2 commands above). Example: &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;hwclock&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; line-height: 115%; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;−−systohc −−utc &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;sets the hardware clock (in UTC) from the system clock.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;who&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Determine the users logged on the machine.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;w&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Determine who is logged on the system, find out what they are doing, their processor ussage, etc. Handy security command.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;rwho −a&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;(=remote who) Determine users logged on other computers on your network. The rwho service must be enabled for this command to&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;run. If it isn&#39;t, run &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; line-height: 115%; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;setup &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;(RedHat specific) as root to enable &quot;rwho&quot;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;finger &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;user_name&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;System info about a user. Try: &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;finger root &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;. One can use &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;finger &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;with any networked computer that exposes the finger service&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;to the world, e.g., I can do (try): &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; line-height: 115%; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;finger @finger.kernel.org&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; line-height: 115%; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;last&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Show listing of users last logged−in on your system. Really good idea to check it from time to time as a security measure on your&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;system.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;lastb&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;(&quot;=last bad&quot;) Show the last bad (unsuccessful) login attempts on my system. It did not work on my system, so got it started with:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;history | more&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Show the last (1000 or so) commands executed from the command line on the current account. The &quot;| more&quot; causes the display to stop&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;after each screenful. To see what another user was doing on your system, login as &quot;root&quot; and inspect his/her &quot;history&quot;. The history is&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;kept in the file &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; line-height: 115%; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;.bash_history &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;in the user home directory (so yes, it can be modified or erased).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;uptime&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Show the amount of time since the last reboot.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;ps&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;(=&quot;print status&quot; or &quot;process status&quot;) List the processes currently run by the current user.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;ps axu | more&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;List all the processes currently running, even those without the controlling terminal, together with the name of the user that owns each&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;process.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;top&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Keep listing the currently running processes on my computer, sorted by cpu usage (top processes first). Press &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; line-height: 115%; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Ctrl+c &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;when done.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;gtop&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;ktop&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;(in X terminal) Two GUI choices for top. My favourite is &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;gtop &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;(comes with gnome). In KDE, ktop is also available from the&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&quot;K&quot;menu under &quot;System&quot;−&quot;Task Manager&quot;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;uname −a&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;(= &quot;Unix name&quot; with option &quot;all&quot;) Info on your (local) server. I can also use &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;guname &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;(in X−window terminal) to display the info more&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;nicely.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;free&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Memory info (in kilobytes). &quot;Shared&quot; memory is the memory that can be shared between processes (e.g., executable code is &quot;shared&quot;).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&quot;Buffered&quot; and &quot;cashed&quot; memory is the part that keeps parts of recently accessed files−−it can be shrunk if more memory is needed by&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;processes.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;cat /etc/issue&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Check what distribution you are using. You can put your own message in this text file−−it&#39;s displayed on login. It is more common to&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;put your site−specific login message to the file &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; line-height: 115%; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;/etc/motd &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;(&quot;motd&quot;=&quot;message of the day&quot;).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;df −h&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;(=disk free) Print disk info about all the filesystems (in human−readable form).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;du / −bh | more&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;(=disk usage) Print detailed disk usage for each subdirectory starting at the &quot;/&quot; (root) directory (in human legible form).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;cat /proc/cpuinfo&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Cpu info−−it shows the content of the file &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;cpuinfo&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;. Note that the files in the &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;/proc &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;directory are not real files−−they are hooks to&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;look at information available to the kernel.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;cat /proc/interrupts&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;List the interrupts in use. You May need to find out before setting up new hardware.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;cat /proc/version&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Linux version and other info.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;cat /proc/filesystems&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Show the types of filesystems currently in use.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;cat /etc/printcap |more&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Show the setup of printers.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;lsmod&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;(= &quot;list modules&quot;. As root. Use &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;/sbin/lsmod &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;to execute this command when you are a non−root user.) Show the kernel modules&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;currently loaded.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;set|more&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Show the current user environment (in full). Normally too much to bother.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;echo $PATH&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Show the content of the environment variable &quot;PATH&quot;. This command can be used to show other environment variables as well. Use&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; line-height: 115%; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;set &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;to see the full environment (see the previous command).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;dmesg | less&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Print kernel messages (the content of the so−called kernel ring buffer). Press &quot;q&quot; to quit &quot;less&quot;. Use &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;less /var/log/dmesg &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;to see&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;what &quot;dmesg&quot; dumped into this file right after the last system bootup.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;chage −l my_login_name&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;See my password expiry information.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;quota&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;See my disk quota (the limits of disk usage).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;strong&gt;sar&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;View information extracted the system activity log file (/var/log/sarxx where xx is the current day number). &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier; font-size: 14.0pt; mso-bidi-font-family: Courier;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;sar &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;can extract many&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;kinds of system statistics including CPU load averages, i/o statistics, and network trafic statistics for the current day and (usually)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;several days backs.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; &lt;/span&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 14.0pt; line-height: 115%;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxicle.blogspot.com/feeds/8909021902120686207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8651458735881455420&amp;postID=8909021902120686207&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/8909021902120686207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/8909021902120686207'/><link rel='alternate' type='text/html' href='http://linuxicle.blogspot.com/2013/07/most-useful-handy-linux-unix-command.html' title='Most Useful and handy Linux / Unix commands'/><author><name>Atul Makwana</name><uri>https://plus.google.com/111888245882837550633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-P5vZrhAXMuY/AAAAAAAAAAI/AAAAAAAAASw/7wcJkU4IQis/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-QW80toXLWk0/UeL5iKE2SUI/AAAAAAAAAV4/5Jp0hFYEPtA/s72-c/Linux+useful+handy+command.jpg" height="72" width="72"/><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-8651458735881455420.post-8379625760966020916</id><published>2013-07-13T09:03:00.001-07:00</published><updated>2013-07-13T09:06:18.539-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Make linux terminal shortcodes</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-YkKIqxGF89k/UeF5BzQJO3I/AAAAAAAAAVU/zcDTtKiLCyU/s1600/gnome-mime-application-x-ms-shortcut.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;http://4.bp.blogspot.com/-YkKIqxGF89k/UeF5BzQJO3I/AAAAAAAAAVU/zcDTtKiLCyU/s200/gnome-mime-application-x-ms-shortcut.png&quot; width=&quot;143&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;I&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;n Linux terminal Alias helps you to create shortcuts command, suppose if i need to display a list of directory with it&#39;s permission and group, that time i enter the command ll instead of &lt;span style=&quot;background-color: #eeeeee;&quot;&gt;ls -l&lt;/span&gt;, which will list the directory, &lt;span style=&quot;background-color: #eeeeee;&quot;&gt;ll&lt;/span&gt; is not a command in the Linux terminal but it&#39;s a alias defined in the system,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;How to make Alias(Linux terminal shortcuts)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;to define Alias you need to modify the &lt;span style=&quot;background-color: #f3f3f3;&quot;&gt;bashrc&lt;/span&gt; file, to modify the file&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border-bottom-color: rgb(153, 153, 153); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: dashed; border-top-width: 1px; color: black; font-family: &amp;quot;Andale Mono&amp;quot;, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Monaco&amp;quot;, &amp;quot;fixed&amp;quot;, monospace; line-height: 14px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: 100%;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;sudo nano ~/.bashrc&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;it will open a editor in the terminal, (you can use gedit or &lt;a href=&quot;http://linuxicle.blogspot.com/2013/05/vi-vim-graphical-cheat-sheet.html&quot; target=&quot;_blank&quot;&gt;vim&lt;/a&gt; editor ), now define your own alias here like&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border-bottom-color: rgb(153, 153, 153); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(153, 153, 153); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(153, 153, 153); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(153, 153, 153); border-top-style: dashed; border-top-width: 1px; color: black; font-family: &amp;quot;Andale Mono&amp;quot;, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Monaco&amp;quot;, &amp;quot;fixed&amp;quot;, monospace; line-height: 14px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; width: 100%;&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;alias ll=&#39;ls -l&#39;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;press &lt;span style=&quot;background-color: #eeeeee;&quot;&gt;ctrl+x&lt;/span&gt; to save the file, after that when you enter ll it will execute ls -l&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Have a Happy Linux, Help us to improve the blog,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxicle.blogspot.com/feeds/8379625760966020916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8651458735881455420&amp;postID=8379625760966020916&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/8379625760966020916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/8379625760966020916'/><link rel='alternate' type='text/html' href='http://linuxicle.blogspot.com/2013/07/make-linux-terminal-shortcodes.html' title='Make linux terminal shortcodes'/><author><name>Atul Makwana</name><uri>https://plus.google.com/111888245882837550633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-P5vZrhAXMuY/AAAAAAAAAAI/AAAAAAAAASw/7wcJkU4IQis/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-YkKIqxGF89k/UeF5BzQJO3I/AAAAAAAAAVU/zcDTtKiLCyU/s72-c/gnome-mime-application-x-ms-shortcut.png" height="72" width="72"/><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-8651458735881455420.post-6497308045929432557</id><published>2013-07-08T09:26:00.000-07:00</published><updated>2013-07-09T22:02:34.958-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Notification"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Enable skype notification icon/indicator in Ubuntu 12.04/13.04</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;After installing Skype on ubuntu 12.04 or 13.04, unity unable to Display the notification icon. &lt;a href=&quot;http://www.skype.com/en/download-skype/skype-for-linux/&quot; target=&quot;_blank&quot;&gt;(Download Skype for Linux&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-NNgdQI61eEI/UdrnMfRNBxI/AAAAAAAAAU0/q7N1vjAZq3w/s1600/skype40-2+(1).png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-NNgdQI61eEI/UdrnMfRNBxI/AAAAAAAAAU0/q7N1vjAZq3w/s640/skype40-2+(1).png&quot; height=&quot;457&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;To fix this issue you need to install or run the command like&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;background-attachment: scroll; background-clip: border-box; background-color: #f0f0f0; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: dashed; border-top-width: 1px; color: black; font-family: &amp;quot;arial&amp;quot;; height: auto; line-height: 20px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; gsettings get com.canonical.Unity.Panel systray-whitelist  &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;After running this command it will display a list like, it is just example, it may be different in your system.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;background-attachment: scroll; background-clip: border-box; background-color: #f0f0f0; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: dashed; border-top-width: 1px; color: black; font-family: &amp;quot;arial&amp;quot;; height: auto; line-height: 20px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; [&#39;JavaEmbeddedFrame&#39;, &#39;Wine&#39;, &#39;Update-notifier&#39;]  &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;If it does not have the skype, it means skype is not listed to show notification. thus it is not allowed to display the icon on the tray, we need to append &#39;skype&#39; in the list to display like,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;background-attachment: scroll; background-clip: border-box; background-color: #f0f0f0; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: dashed; border-top-width: 1px; color: black; font-family: &amp;quot;arial&amp;quot;; height: auto; line-height: 20px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; [&#39;JavaEmbeddedFrame&#39;, &#39;Wine&#39;, &#39;Update-notifier&#39;, &#39;Skype&#39;]  &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Now we need to set gsettings using below command by appneding the following list. like,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;background-attachment: scroll; background-clip: border-box; background-color: #f0f0f0; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(204, 204, 204); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(204, 204, 204); border-top-style: dashed; border-top-width: 1px; color: black; font-family: &amp;quot;arial&amp;quot;; height: auto; line-height: 20px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt; gsettings set com.canonical.Unity.Panel systray-whitelist &quot;[&#39;JavaEmbeddedFrame&#39;, &#39;Wine&#39;, &#39;Update-notifier&#39;, &#39;Skype&#39;]&quot;  &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;It will display skype icon on ubuntu system notification tray after rebooting the system&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Have a Happy Linux!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxicle.blogspot.com/feeds/6497308045929432557/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8651458735881455420&amp;postID=6497308045929432557&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/6497308045929432557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/6497308045929432557'/><link rel='alternate' type='text/html' href='http://linuxicle.blogspot.com/2013/07/enable-skype-notification-icon-in.html' title='Enable skype notification icon/indicator in Ubuntu 12.04/13.04'/><author><name>Atul Makwana</name><uri>https://plus.google.com/111888245882837550633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-P5vZrhAXMuY/AAAAAAAAAAI/AAAAAAAAASw/7wcJkU4IQis/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-NNgdQI61eEI/UdrnMfRNBxI/AAAAAAAAAU0/q7N1vjAZq3w/s72-c/skype40-2+(1).png" height="72" width="72"/><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-8651458735881455420.post-6513998443936059628</id><published>2013-06-27T18:31:00.000-07:00</published><updated>2013-06-27T18:31:04.214-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apps"/><category scheme="http://www.blogger.com/atom/ns#" term="Command"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Easy package manager for Ubuntu/Debian</title><content type='html'>Synaptic is a graphical package management program for apt. It   provides the same features as the apt-get command line utility with a   GUI front-end based on Gtk+.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-nQZpNwycGNk/Uczm-bmPb4I/AAAAAAAAAUI/5JzMM0WqVOs/s927/Screenshot+from+2013-06-28+06:44:01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-nQZpNwycGNk/Uczm-bmPb4I/AAAAAAAAAUI/5JzMM0WqVOs/s927/Screenshot+from+2013-06-28+06:44:01.png&quot; height=&quot;179&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;How to install Synaptic packege manager:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; sudo apt-get install synaptic  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Features of &lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Synaptic package manager&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-3aQ7m4bIkOs/UczmO_lXs-I/AAAAAAAAAUA/qOMIhtFArwc/s1215/Screenshot+from+2013-06-28+06:55:45.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-3aQ7m4bIkOs/UczmO_lXs-I/AAAAAAAAAUA/qOMIhtFArwc/s1215/Screenshot+from+2013-06-28+06:55:45.png&quot; height=&quot;204&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;li&gt;Install, remove, upgrade and downgrade single and multiple packages.&lt;/li&gt;&lt;li&gt;Upgrade your whole system. &lt;/li&gt;&lt;li&gt;Manage package repositories (sources.list). &lt;/li&gt;&lt;li&gt;Find packages by name, description and several other attributes. &lt;/li&gt;&lt;li&gt;Select packages by status, section, name or a custom filter. &lt;/li&gt;&lt;li&gt;Sort packages by name, status, size or version. &lt;/li&gt;&lt;li&gt;Browse all available online documentation related to a package. &lt;/li&gt;&lt;li&gt;Download the latest changelog of a package. &lt;/li&gt;&lt;li&gt;Lock packages to the current version. &lt;/li&gt;&lt;li&gt;Force the installation of a specifc package version. &lt;/li&gt;&lt;li&gt;Undo/Redo of selections.&lt;/li&gt;&lt;li&gt;Built-in terminal emulator for the package manager.&lt;/li&gt;&lt;li&gt;Debian/Ubuntu only: Configure packages through the debconf system.&lt;/li&gt;&lt;li&gt;Debian/Ubuntu only: Xapain based fast search (thanks to Enrico Zini)&lt;/li&gt;&lt;li&gt;Debian/Ubuntu only: Get screenshots from screenshots.debian.net&lt;/li&gt;&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxicle.blogspot.com/feeds/6513998443936059628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8651458735881455420&amp;postID=6513998443936059628&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/6513998443936059628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/6513998443936059628'/><link rel='alternate' type='text/html' href='http://linuxicle.blogspot.com/2013/06/easy-package-manager-for-ubuntudebian.html' title='Easy package manager for Ubuntu/Debian'/><author><name>Atul Makwana</name><uri>https://plus.google.com/111888245882837550633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-P5vZrhAXMuY/AAAAAAAAAAI/AAAAAAAAASw/7wcJkU4IQis/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-nQZpNwycGNk/Uczm-bmPb4I/AAAAAAAAAUI/5JzMM0WqVOs/s72-c/Screenshot+from+2013-06-28+06:44:01.png" height="72" width="72"/><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-8651458735881455420.post-8434656199674678963</id><published>2013-05-14T21:47:00.002-07:00</published><updated>2013-05-14T21:49:22.249-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Gnome"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Randomize Your GNOME Wallpaper</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-W7RGM9vk2Qo/UZMTRUlni2I/AAAAAAAAAR8/ZLo0oYDDzxY/s1600/gnome_dark_wallpaper_by_malkowitch-d49jblz.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-W7RGM9vk2Qo/UZMTRUlni2I/AAAAAAAAAR8/ZLo0oYDDzxY/s1600/gnome_dark_wallpaper_by_malkowitch-d49jblz.jpg&quot; height=&quot;360&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;With a small bash script, it is possible to randomly select an image from a&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;directory and change the current GNOME wallpaper to that image. It&#39;s easy to&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;forget just how powerful bash can be; more than just a simple command shell,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;bash has a whole host of features that make it well-suited for even complex&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;programming tasks.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;To begin this hack, you need to have a directory full of wallpapers somewhere.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;Assume this directory is located at /home/foo/Images/Wallpapers/. This script&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;will take an image from that directory and set it as the current wallpaper.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;Here&#39;s the first part of the script:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;export DIR=&#39;/home/foo/Images/Wallpapers/&#39;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;export NUMBER=$RANDOM&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;export TOTAL=0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;The first line is a standard piece of code that says which program should be&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;used to run the script (in this case bash). After this line is the&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;location of the directory containing your images, stored in the $DIR&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;variable for future use. Next, you store a random number, which is generated by&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;the built-in variable named $RANDOM. You also set $TOTAL to&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;0 to begin with; this variable stores the total number of images in the&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;directory.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;After this initial code, you need to create a loop that counts the number of images&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;in the directory using the output of the ls command. Because this script doesn&#39;t&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;check file types, it is important that you store only images in this directory.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;Here is the loop:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;for f in `ls $DIR`&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; let &quot;TOTAL += 1&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;done&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;let &quot;NUMBER %= TOTAL&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;The line let &quot;NUMBER %= TOTAL&quot; is the part that actually selects which image will be&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;used. This line divides the randomly generated number by the number of images in the&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;directory and stores the remainder of this division in the $NUMBER variable. If&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;you&#39;re wondering how this works, the remainder must be between 0 and 1, minus the&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;number of images, and because in the next part the script starts counting from 0, it&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;is possible for any image to be selected with this method.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;The final part of the script simply counts through each image to see if it is the&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;one that was selected. When it finds the correct image, it modifies the GConf setting&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;that stores the filename of the wallpaper using the gconftool command (this might be&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;gconftool-2 on some systems). Nautilus notices this change immediately and updates&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;the wallpaper. So, here&#39;s the final script:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;&amp;nbsp;#!/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;export DIR=&#39;/home/adam/Images/Wallpapers/&#39;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;export NUMBER=$RANDOM&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;export TOTAL=0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;for f in `ls $DIR`&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; let &quot;TOTAL += 1&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;done&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;let &quot;NUMBER %= TOTAL&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;export CURRENT=0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;for f in `ls $DIR`&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; if [ $CURRENT = $NUMBER ]&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; then&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /usr/bin/gconftool-2 -t string -s /desktop/gnome/background/picture_filename&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;$DIR/$f&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; fi&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; let &quot;CURRENT += 1&quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;done&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;Save the script somewhere convenient such as &amp;nbsp;/home/foo/setbg.sh. Also make it executable&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;by running the following in a terminal:&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;foo@bar:~$ &amp;nbsp;chmod +x setbg.sh&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: large;&quot;&gt;Now when you run this script your wallpaper will be changed.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxicle.blogspot.com/feeds/8434656199674678963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8651458735881455420&amp;postID=8434656199674678963&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/8434656199674678963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/8434656199674678963'/><link rel='alternate' type='text/html' href='http://linuxicle.blogspot.com/2013/05/randomize-your-gnome-wallpaper.html' title='Randomize Your GNOME Wallpaper'/><author><name>Atul Makwana</name><uri>https://plus.google.com/111888245882837550633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-P5vZrhAXMuY/AAAAAAAAAAI/AAAAAAAAASw/7wcJkU4IQis/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-W7RGM9vk2Qo/UZMTRUlni2I/AAAAAAAAAR8/ZLo0oYDDzxY/s72-c/gnome_dark_wallpaper_by_malkowitch-d49jblz.jpg" height="72" width="72"/><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-8651458735881455420.post-7002286291851067164</id><published>2013-05-14T02:40:00.002-07:00</published><updated>2013-10-23T10:23:04.266-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apps"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>How to install Whatsapp in Ubuntu/Linux?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://blog.phoneslimited.co.uk/files/2012/12/WhatsApp-Logo-580x338.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;372&quot; src=&quot;http://blog.phoneslimited.co.uk/files/2012/12/WhatsApp-Logo-580x338.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;Most of Android phone have &quot;Whatsapp&quot; application installed and running. this post is for PC freak&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;who need to install the whatsapp mobile app on the ubuntu &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif; font-size: small;&quot;&gt;So here is the video that describes &quot;how to run whatsapp from Ubuntu desktop PC with same account?&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Install Whats app in Ubuntu:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You will need to install the android emulator to run the whats app, there are two option to install android emulator&lt;br /&gt;1. &lt;a href=&quot;http://linuxicle.blogspot.com/2013/10/install-genymotion-in-linuxubuntu-1304.html&quot; target=&quot;_blank&quot;&gt;&lt;span class=&quot;current&quot;&gt;Install Genymotion Android Emulator in linux/ubuntu13.04&lt;/span&gt;&lt;/a&gt; &lt;br /&gt;2. &lt;a href=&quot;http://linuxicle.blogspot.com/2013/06/how-to-run-android-emulator-on-ubuntu.html&quot; target=&quot;_blank&quot;&gt;Install Normal android emulator for ubuntu 13.04/ debian.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif; font-size: small;&quot;&gt;You may also like &lt;a href=&quot;http://surficle.com/tag/whatsapp/&quot; target=&quot;_blank&quot;&gt;Easy way to install whats app on windows/Mac OSX&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then open Browser in android emulator, And in google search &quot;Whats app for Android&quot; it will display like&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-5rXRD8lP8GY/UjN1S-MC3cI/AAAAAAAAAoI/OvIpo6xVdLc/s1600/Screenshot+from+2013-09-14+01:56:32.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;388&quot; src=&quot;http://2.bp.blogspot.com/-5rXRD8lP8GY/UjN1S-MC3cI/AAAAAAAAAoI/OvIpo6xVdLc/s1600/Screenshot+from+2013-09-14+01:56:32.png&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;click on Download now and it will download the apk file in your downloads folder of emulator, click on the whatsapp.apk file and install the whats app.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-_llItXWTd2c/UjN2lP9kQxI/AAAAAAAAAoU/ffdmpDzQQuo/s1600/Screenshot+from+2013-09-14+02:02:29.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-_llItXWTd2c/UjN2lP9kQxI/AAAAAAAAAoU/ffdmpDzQQuo/s1600/Screenshot+from+2013-09-14+02:02:29.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Accept terms and condition, and now verify your mobile number,&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-6wagHGa7XKE/UjN3Gtj6YaI/AAAAAAAAAoc/3pylNcbI4q0/s1600/Screenshot+from+2013-09-14+02:04:41.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-6wagHGa7XKE/UjN3Gtj6YaI/AAAAAAAAAoc/3pylNcbI4q0/s1600/Screenshot+from+2013-09-14+02:04:41.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Click on Ok, and it will open a next page asking your personal information, like name, Photo,&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-NuV6NpT_OE8/UjN3_1dmQNI/AAAAAAAAAoo/RKhPJlENNjA/s1600/Screenshot+from+2013-09-14+02:08:33.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-NuV6NpT_OE8/UjN3_1dmQNI/AAAAAAAAAoo/RKhPJlENNjA/s1600/Screenshot+from+2013-09-14+02:08:33.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Click on next to complete the process of whatsapp.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Here is the video Tutorial, you may get more clear idea about the whats app installation in ubuntu. &lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;center&gt;&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;360&quot; src=&quot;http://www.youtube.com/embed/9o4L-jHw56k&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;&lt;/center&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #f3f3f3;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;background-color: #fafafa; line-height: 17px;&quot;&gt;Whatsapp service requires you to verify the mobile phone number via text messaging (SMS). This is not possible in an emulator without a SIM card and mobile network radio.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;&lt;a href=&quot;http://feedburner.google.com/fb/a/mailverify?uri=Linuxicle&amp;amp;loc=en_US&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Subscribe to us by Email&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/blockquote&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://linuxicle.blogspot.com/2013/07/most-useful-handy-linux-unix-command.html&quot; target=&quot;_blank&quot;&gt;&lt;br /&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-tyB6ByeKXH8/UfMUKnrQrMI/AAAAAAAAAWo/9P9LiFYZ1d4/s1600/banner.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;&lt;script&gt;(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = &quot;//connect.facebook.net/en_US/all.js#xfbml=1&quot;; fjs.parentNode.insertBefore(js, fjs); }(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));&lt;/script&gt; &lt;br /&gt;&lt;div class=&quot;fb-post&quot; data-href=&quot;https://www.facebook.com/surficle/posts/610321545685661&quot; data-width=&quot;550&quot;&gt;&lt;div class=&quot;fb-xfbml-parse-ignore&quot;&gt;&lt;a href=&quot;https://www.facebook.com/surficle/posts/610321545685661&quot;&gt;Post&lt;/a&gt; by &lt;a href=&quot;https://www.facebook.com/surficle&quot;&gt;Surficle&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxicle.blogspot.com/feeds/7002286291851067164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8651458735881455420&amp;postID=7002286291851067164&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/7002286291851067164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/7002286291851067164'/><link rel='alternate' type='text/html' href='http://linuxicle.blogspot.com/2013/05/how-to-use-whatsapp-mobile-application.html' title='How to install Whatsapp in Ubuntu/Linux?'/><author><name>Atul Makwana</name><uri>https://plus.google.com/111888245882837550633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-P5vZrhAXMuY/AAAAAAAAAAI/AAAAAAAAASw/7wcJkU4IQis/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-5rXRD8lP8GY/UjN1S-MC3cI/AAAAAAAAAoI/OvIpo6xVdLc/s72-c/Screenshot+from+2013-09-14+01:56:32.png" height="72" width="72"/><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-8651458735881455420.post-3115171302848912940</id><published>2013-05-13T18:51:00.000-07:00</published><updated>2013-06-27T18:55:36.916-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>How to install/run Android emulator on Ubuntu or Debian</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Here is guide on how to run Android emulator on Ubuntu or Debian.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Android emulator comes with Android SDK, and therefore you need to install Android SDK. Follow the steps below to install Android SDK on Linux.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-8xCvKiKm1kI/UczrzfJN09I/AAAAAAAAAUY/lDkkFpJADA0/s791/android-ubuntu-emulator1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-8xCvKiKm1kI/UczrzfJN09I/AAAAAAAAAUY/lDkkFpJADA0/s791/android-ubuntu-emulator1.png&quot; height=&quot;452&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Android SDK requires Java JDK. Therefore install Java JDK first.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;To install Java JDK on Ubuntu or Debian:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; sudo apt-get install openjdk-7-jdk  &lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;To install Java JDK on CentOS, Fedora or RHEL, first set up Repoforge repository on your system, and then run the following.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; sudo yum install java-1.7.0-openjdk-devel  &lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Now download Android SDK ADT bundle from Android official site. Unzip the downloaded ADT bundle, and copy the sdk directory to your preferred location. Here I assume that the installation directory of Android SDK is ~/android-sdks.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;For 64-bit Linux user: you must install another prerequisite called ia32-libs since Android emulator is 32-bit software. The ia32-libs package contains a set of runtime libraries for the ia32/i386 architecture, configured for use on a 64-bit kernel. On 64-bit Linux, the mksdcard utility which creates SD cards will fail without this package.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; sudo apt-get install ia32-libs  &lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;While using ia32-libs, if you encounter any error with 32-bit libGL.so, do the following:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1.2.0 /usr/lib/libGL.so  &lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;In order to run Android emulator, you first need to create a new AVD (Android Virtual Device) which is an emulator configuration for the Android device to be emulated. To create a new AVD, first launch Android SDK Manager by running the following.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; ~/android-sdks/tools/android  &lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Go to “Tools” &amp;gt; “Manage AVDs” on Android SDK Manager’s menu. It will open up AVD Manager.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Click on “Add” button to create a new AVD. An example configuration of a new AVD is shown below.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;a href=&quot;http://farm9.staticflickr.com/8085/8463051475_f66eba76cd_o.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://farm9.staticflickr.com/8085/8463051475_f66eba76cd_o.png&quot; height=&quot;400&quot; width=&quot;276&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;If an AVD has been successfully created, you will see the following confirmation.&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;a href=&quot;http://farm9.staticflickr.com/8522/8463051457_850201613b.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://farm9.staticflickr.com/8522/8463051457_850201613b.jpg&quot; height=&quot;358&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;You can check the list of available AVDs as follows.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; ~/android-sdk/android list avds   &lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; Available Android Virtual Devices:  &lt;br /&gt;   Name: my_avd  &lt;br /&gt;   Path: /home/xmodulo/.android/avd/my_avd.avd  &lt;br /&gt;  Target: Android 4.2 (API level 17)  &lt;br /&gt;    ABI: armeabi-v7a  &lt;br /&gt;   Skin: 800x1280  &lt;br /&gt;  Sdcard: 1G  &lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;To launch Android emulator with the AVD that you have created, highlight  the AVD on AVD Manager, and click on “Start” button on the right  sidebar.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;a href=&quot;http://farm9.staticflickr.com/8509/8464150938_694af1344a.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://farm9.staticflickr.com/8509/8464150938_694af1344a.jpg&quot; height=&quot;286&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Alternatively, you can start Android emulator directly from command line  as follows.  In this case, specify “@[your_avd_name]” as an argument to  the emulator.&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; emulator @my_avd   &lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Booting up Android emulator may be slow (even taking minutes) depending  on your hardware. Once Android emulator is successfully launched, you  will see an running instance of Android device.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;a href=&quot;http://farm9.staticflickr.com/8373/8456023919_20f13a9061_o.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://farm9.staticflickr.com/8373/8456023919_20f13a9061_o.png&quot; height=&quot;426&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Have a Happy Droiding!&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Derived from : &lt;a href=&quot;http://xmodulo.com/&quot; target=&quot;_blank&quot;&gt;xmodulo&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxicle.blogspot.com/feeds/3115171302848912940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8651458735881455420&amp;postID=3115171302848912940&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/3115171302848912940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/3115171302848912940'/><link rel='alternate' type='text/html' href='http://linuxicle.blogspot.com/2013/06/how-to-run-android-emulator-on-ubuntu.html' title='How to install/run Android emulator on Ubuntu or Debian'/><author><name>Atul Makwana</name><uri>https://plus.google.com/111888245882837550633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-P5vZrhAXMuY/AAAAAAAAAAI/AAAAAAAAASw/7wcJkU4IQis/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-8xCvKiKm1kI/UczrzfJN09I/AAAAAAAAAUY/lDkkFpJADA0/s72-c/android-ubuntu-emulator1.png" height="72" width="72"/><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-8651458735881455420.post-462594770163872128</id><published>2013-05-13T12:13:00.001-07:00</published><updated>2013-05-13T12:24:50.043-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Networking"/><category scheme="http://www.blogger.com/atom/ns#" term="Unix"/><title type='text'>Secure Mount Points in Unix</title><content type='html'>&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The primary way of interacting with a Unix machine is through its filesystem.&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Thus, when an intruder has gained access to a system, it is desirable to&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;limit what he can do with the files available to him. One way to accomplish&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;this is with the use of restrictive mount options.&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;A mount option is a flag that controls how the file system may be accessed. It&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;is passed to the operating system kernel’s code when the file system is&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;brought online. Mount options can be used to prevent files from being interpreted&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;as device nodes, to disallow binaries from being executed, and to disallow the&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SUID bit from taking effect (by using the nodev, noexec, and nosuid&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;flags). Files ystems can also be mounted read-only with the ro option.&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;These options are specified from the command line by running mount with&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;the -o flag. For example, if you have a separate partition for /tmp that is on&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;the third partition of your first IDE hard disk, you can mount with the&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;nodev, noexec, and nosuid flags, which are enabled by running the following&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;command:&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;# mount -o nodev,noexec,nosuid /dev/hda3 /tmp&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;An equivalent entry in your /etc/fstab would look something like this:&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;/dev/hda3 /tmp ext3 defaults,nodev,noexec,nosuid 1 2&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;By carefully considering your requirements and dividing up your storage&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;into multiple file systems, you can utilize these mount options to increase the&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;work that an attacker will have to do in order to further compromise your&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;system. A quick way to do this is to first categorize your directory tree into&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;areas that need write access for the system to function and those that don’t.&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;You should consider using the read-only flag on any part of the filesystem&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;where the contents do not change regularly. A good candidate for this might&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;be /usr, depending on how often updates are made to system software.&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Obviously, many directories (such as /home) will need to be mounted as&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;read/write. However, it is unlikely that users on an average multiuser system&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;will need to run SUID binaries or create device files within their home&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;directories. Therefore, a separate filesystem, mounted with the nodev and&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;nosuid options, could be created to house the users’ home directories. If&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;you’ve determined that your users will not need to execute programs stored&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;in their home directories, you can use the noexec mount option as well. A&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;similar solution could be used for /tmp and /var, where it is highly unlikely&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;that any process will legitimately need to execute SUID or non-SUID&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;binaries or access device files. This strategy would help prevent the possibility&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;of an attacker leaving a Trojan horse in a common directory such as /tmp&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;or a user’s home directory. The attacker may be able to install the program,&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;but it will not be able to run, with or without the proper chmod bits.&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;binaries or access device files. This strategy would help prevent the possibility&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;of an attacker leaving a Trojan horse in a common directory such as /tmp&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;or a user’s home directory. The attacker may be able to install the program,&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;but it will not be able to run, with or without the proper chmod bits.&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;There are a number of ways that an attacker can circumvent these mount&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;restrictions. For example, the noexec option on Linux can be bypassed by&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;using /lib/ld-linux.so to execute binaries residing on a file system mounted&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;with this option. At first glance, you’d think that this problem could be remedied&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;by making ld-linux.so nonexecutable, but this would render all&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;dynamically linked binaries nonexecutable.&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;So, unless all of the programs you rely on are statically linked (they’re probably&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;not), the noexec option is of little use in Linux. In addition, an attacker&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;who has already gained root privileges will not be significantly hampered by&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;file systems mounted with special options, since these can often be&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;remounted with the -o remount option. But by using mount flags, you can&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;easily limit the possible attacks available to a hostile user before he gains&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;root privileges.&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxicle.blogspot.com/feeds/462594770163872128/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8651458735881455420&amp;postID=462594770163872128&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/462594770163872128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/462594770163872128'/><link rel='alternate' type='text/html' href='http://linuxicle.blogspot.com/2013/05/secure-mount-points-in-unix.html' title='Secure Mount Points in Unix'/><author><name>Atul Makwana</name><uri>https://plus.google.com/111888245882837550633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-P5vZrhAXMuY/AAAAAAAAAAI/AAAAAAAAASw/7wcJkU4IQis/s512-c/photo.jpg'/></author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry><entry><id>tag:blogger.com,1999:blog-8651458735881455420.post-2120224851292595943</id><published>2012-02-29T13:15:00.000-08:00</published><updated>2013-10-14T05:43:25.561-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Command"/><category scheme="http://www.blogger.com/atom/ns#" term="Vim"/><title type='text'>Vim Command Tips</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-9DyPifNu-SI/UlW5N_8sHPI/AAAAAAAAArA/I-KE9oyvoA4/s1600/url.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-9DyPifNu-SI/UlW5N_8sHPI/AAAAAAAAArA/I-KE9oyvoA4/s320/url.png&quot; height=&quot;201&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Save and quit&lt;/span&gt;&lt;/h2&gt;:w =&amp;gt; Save [:w filename writes the content to the specified file from current file]&lt;br /&gt;&lt;br /&gt;:q =&amp;gt; Exit as long as there have been no changes&lt;br /&gt;&lt;br /&gt;:q! =&amp;gt; Exit and ignore any changes&lt;br /&gt;&lt;br /&gt;:wq =&amp;gt; Save and Exit.&lt;br /&gt;&lt;br /&gt;:x =&amp;gt; Exit, saving changes&lt;br /&gt;&lt;br /&gt;ZZ =&amp;gt; Exit and save changes if any have been made&lt;br /&gt;&lt;br /&gt;:10,20w filename =&amp;gt; writes the line from 10th line to 20th line in given file name&lt;br /&gt;_____________________________________________________________________________________&lt;br /&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Moving the Cursor&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;h : Move left&lt;br /&gt;&lt;br /&gt;i : Move right&lt;br /&gt;&lt;br /&gt;j : Move down&lt;br /&gt;&lt;br /&gt;k : Move up&lt;br /&gt;&lt;br /&gt;+ : act as j in command mode&lt;br /&gt;&lt;br /&gt;- : act as k in command mode&lt;br /&gt;&lt;br /&gt;w : Move to next word&lt;br /&gt;&lt;br /&gt;W : Move to next blank delimited word&lt;br /&gt;&lt;br /&gt;b : Move to the beginning of the word&lt;br /&gt;&lt;br /&gt;B : Move to the beginning of blank delimiter word&lt;br /&gt;&lt;br /&gt;e : Move to the end of the word&lt;br /&gt;&lt;br /&gt;E : Move to the end of Blank delimited word&lt;br /&gt;&lt;br /&gt;ge : jump to previous word-ending&lt;br /&gt;&lt;br /&gt;gE : jump to previous word-ending, ignore punctuation&lt;br /&gt;&lt;br /&gt;g_ : jump to last non-blank character of the line&lt;br /&gt;&lt;br /&gt;( : Move a sentence back&lt;br /&gt;&lt;br /&gt;) :Move a sentence forward&lt;br /&gt;&lt;br /&gt;{ : Move a paragraph back&lt;br /&gt;&lt;br /&gt;} : Move a paragraph forward&lt;br /&gt;&lt;br /&gt;0 : Move to the beginning of the line [ 0 and | acts as a Home key it goes to beginning of a line ]&lt;br /&gt;&lt;br /&gt;$ : Move to the end of the line, acts as a End key&lt;br /&gt;&lt;br /&gt;:1 : Move to the first line of the file&lt;br /&gt;&lt;br /&gt;G : Move to the last line of the file&lt;br /&gt;&lt;br /&gt;nG : Move to nth line of the file&lt;br /&gt;&lt;br /&gt;:n : Move to nth line of the file&lt;br /&gt;&lt;br /&gt;fc :Move forward to c (c= character)&lt;br /&gt;&lt;br /&gt;Fc : Move back to c&lt;br /&gt;&lt;br /&gt;H :Move to top of screen&lt;br /&gt;&lt;br /&gt;M :Move to middle of screen&lt;br /&gt;&lt;br /&gt;L : Move to bottom of screen&lt;br /&gt;_____________________________________________________________________________________&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Inserting Text&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;i : Insert before cursor&lt;br /&gt;&lt;br /&gt;I : Insert before line&lt;br /&gt;&lt;br /&gt;a : Append after cursor&lt;br /&gt;&lt;br /&gt;A : Append after line&lt;br /&gt;&lt;br /&gt;o : Open a new line after current line&lt;br /&gt;&lt;br /&gt;O : Open a new line before current line&lt;br /&gt;&lt;br /&gt;r : Replace one character&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;_____________________________________________________________________________________&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Delete/Cut and Paste&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;d^ : Deletes from current cursor position to the beginning of the line.&lt;br /&gt;&lt;br /&gt;d$ : Deletes from current cursor position to the end of the line.&lt;br /&gt;&lt;br /&gt;dw : Deletes from current cursor position to the end of the word.&lt;br /&gt;&lt;br /&gt;dd : Deletes three lines from current cursor position downwards.(also :d)&lt;br /&gt;&lt;br /&gt;yy : Yank the current line (also :y)&lt;br /&gt;&lt;br /&gt;x : Delete a character next to the cursor&lt;br /&gt;&lt;br /&gt;X : Delete character to the left of cursor&lt;br /&gt;&lt;br /&gt;P : Paste line before the cursor&lt;br /&gt;&lt;br /&gt;p : Paste line after the cursor&lt;br /&gt;&lt;br /&gt;. : Repeat last edit command&lt;br /&gt;&lt;br /&gt;u : Undo last edit (Ctrl+r redo)&lt;br /&gt;&lt;br /&gt;U : Undo changes to current line&lt;br /&gt;&lt;br /&gt;J : Join two lines&lt;br /&gt;&lt;br /&gt;In Escape mode: C is delete the line from under the cursor to end of the line.&lt;br /&gt;&lt;br /&gt;_____________________________________________________________________________________&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;External commands:&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;In Vim it&#39;s easy to include the output of external commands in to file.&lt;br /&gt;&lt;br /&gt;!command, the output will be shown in prompt.&lt;br /&gt;&lt;br /&gt;To insert the output of the external command in the current file&lt;br /&gt;type :r!command for example&lt;br /&gt;&lt;br /&gt;Code:&lt;br /&gt;&amp;nbsp;:r!date&lt;br /&gt;&lt;br /&gt;_____________________________________________________________________________________&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Completion&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;In insert mode.&lt;br /&gt;&lt;br /&gt;Ctrl+p word completion .&lt;br /&gt;&lt;br /&gt;Ctrl+x Ctrl+l whole line completion.&lt;br /&gt;&lt;br /&gt;Ctrl+x Ctrl+k to do a dictionary lookup for the already typed characters.&lt;br /&gt;&lt;br /&gt;Ctrl+x Ctrl+f to print the filename is vim.&lt;br /&gt;&lt;br /&gt;_____________________________________________________________________________________&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Search/Replace&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;/pattern : search for pattern&lt;br /&gt;&lt;br /&gt;?pattern : search backward for pattern&lt;br /&gt;&lt;br /&gt;n :repeat search in same direction&lt;br /&gt;&lt;br /&gt;N : repeat search in opposite direction&lt;br /&gt;&lt;br /&gt;:%s/old/new/g : replace all old with new throughout file&lt;br /&gt;&lt;br /&gt;:%s/old/new/gc : replace all old with new throughout file with confirmations&lt;br /&gt;&lt;br /&gt;We can change the substitution delimiter instead of &quot;/&quot; to % or # or @ or !.&lt;br /&gt;&lt;br /&gt;Refer the Following Link.&lt;br /&gt;&lt;br /&gt;http://www.unix.com/unix-dummies-questions-answers/131585-changing-vi.html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;:/pattern/= =&amp;gt; Print the line number of the first line that matches pattern.&lt;br /&gt;&lt;br /&gt;:g/pattern =&amp;gt; Finds (moves to) the last occurrence of pattern in the file.&lt;br /&gt;&lt;br /&gt;:g/pattern/p =&amp;gt; Finds and displays all lines in the file containing pattern.&lt;br /&gt;&lt;br /&gt;:g!/pattern/nu =&amp;gt; Finds and displays all lines in the file that don&#39;t contain pattern;&lt;br /&gt;also displays the line number for each line found.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;:60,124g/pattern/p =&amp;gt; Finds and displays any lines between lines 60 and 124 containing pattern&lt;br /&gt;&lt;br /&gt;_____________________________________________________________________________________&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Inverting Case (Upper to Lower / Lower to Upper)&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;~ :changes the lower case to upper case of current character&lt;br /&gt;&lt;br /&gt;~guu :change current line from upper to lower.&lt;br /&gt;&lt;br /&gt;~gUU :Change current LINE from lower to upper.&lt;br /&gt;&lt;br /&gt;~guw :Change current WORD from upper to lower.&lt;br /&gt;&lt;br /&gt;~gUw :Change current WORD from lower to upper.&lt;br /&gt;&lt;br /&gt;g~~ :Invert case to entire line&lt;br /&gt;&lt;br /&gt;_____________________________________________________________________________________&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Opening Man page from VIM&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;K (Shift+k) will diplays the man page of current word under the cursor&lt;br /&gt;&lt;br /&gt;_____________________________________________________________________________________&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Splitting Windows&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;:sp will split the window&lt;br /&gt;&lt;br /&gt;:q to quit from current split window&lt;br /&gt;&lt;br /&gt;Crtl+ww navigate through another file&lt;br /&gt;&lt;br /&gt;:bnext (or :bn) go to next buffer&lt;br /&gt;&lt;br /&gt;:bprev (or :bp) go to previous buffer&lt;br /&gt;&lt;br /&gt;:bd delete a buffer (close a file)&lt;br /&gt;&lt;br /&gt;Ctrl+ws Split windows&lt;br /&gt;&lt;br /&gt;Ctrl+ww Switch between windows&lt;br /&gt;&lt;br /&gt;Ctrl+wq Quit a window&lt;br /&gt;&lt;br /&gt;Ctrl+wv Split windows vertically.&lt;br /&gt;&lt;br /&gt;_____________________________________________________________________________________&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Set Options&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;:set showmode - will show the current mode&lt;br /&gt;&lt;br /&gt;:set autowrite - will write into file when we are toggling between two files with in editor.&lt;br /&gt;&lt;br /&gt;:set autoindent - it is used for intendation the code.&lt;br /&gt;&lt;br /&gt;Displaying Line Numbers&lt;br /&gt;&lt;br /&gt;From Command Mode&lt;br /&gt;&lt;br /&gt;:set nu [OR] :set number Display line numbers It will not save in file after closing the file.&lt;br /&gt;&lt;br /&gt;:set nonu [OR] :set nonumber Hide line numbers&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;:set nomagic - will special character meaning, like * as some meaning when searching&lt;br /&gt;&lt;br /&gt;:set tabstop - will set the spaces of tab key default it will 8 spaces&lt;br /&gt;&lt;br /&gt;:set showmatch - will show the match of that brace default it will be setted.&lt;br /&gt;&lt;br /&gt;:set spell will set the spell checking and high light wrong spell words.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;_____________________________________________________________________________________&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Folding&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;If we want to folding some few lines in vim file:&lt;br /&gt;&lt;br /&gt;First select the lines after type :fold&lt;br /&gt;&lt;br /&gt;The selected line is folded.&lt;br /&gt;&lt;br /&gt;If we want to open the folded lines use &quot;zo&quot;.&lt;br /&gt;&lt;br /&gt;If we want to close the folding lines use zc&quot;.&lt;br /&gt;&lt;br /&gt;zR Unfold all folded lines in file.&lt;br /&gt;&lt;br /&gt;za Open/close (toggle) a folded group of lines.&lt;br /&gt;&lt;br /&gt;zA Open a closed fold or close an open fold recursively.&lt;br /&gt;&lt;br /&gt;zc Close a folded group of lines.&lt;br /&gt;&lt;br /&gt;zC Close all folded lines recursively.&lt;br /&gt;&lt;br /&gt;zd Delete a folded line.&lt;br /&gt;&lt;br /&gt;zD Delete all folded lines recursively.&lt;br /&gt;&lt;br /&gt;zE Eliminate all folded lines in file.&lt;br /&gt;&lt;br /&gt;zF Create &quot;N&quot; folded lines.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;_____________________________________________________________________________________&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Recording&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Insert mode type 1.&lt;br /&gt;Escape mode.&lt;br /&gt;q a press q buffer name&lt;br /&gt;copy and paste.&lt;br /&gt;Ctrl+a increments the number in current cursor&lt;br /&gt;Ctrl+x decrements the number in current cursor&lt;br /&gt;q to quit from recording&lt;br /&gt;to execute the recording buffer:&lt;br /&gt;10 @ buffername(a)&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------&lt;br /&gt;Ctrl + a =&amp;gt; increase a number under the cursor.&lt;br /&gt;Ctrl + x =&amp;gt; decrease a number under the cursor.&lt;br /&gt;------------------------------------------------------------------- &lt;br /&gt;&lt;br /&gt;_____________________________________________________________________________________&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Mapping a key&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;In vim editor we can map the key for our requirement for that we use map command&lt;br /&gt;&lt;br /&gt;Syntax: :map keyname work&lt;br /&gt;Eg: :map &amp;lt;F2&amp;gt; :w - will save the file when F2 key pressed in command mode.&lt;br /&gt;&lt;br /&gt;The key can be unmapped by unmap command&lt;br /&gt;Syntax: :unmap&lt;br /&gt;&lt;br /&gt;This mapping key is useful for compiling and executing a program&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Abbreviation&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Abbreviation is used in this vim editor&lt;br /&gt;Syntax: :ab abbreviatedword explanation&lt;br /&gt;Eg: :ab w work&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;_____________________________________________________________________________________&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ctrl+f forward scroll screen&lt;br /&gt;&lt;br /&gt;Ctrl+b backward scroll screen&lt;br /&gt;&lt;br /&gt;Ctrl-d Scroll down one half of a page&lt;br /&gt;&lt;br /&gt;Ctrl-u Scroll up one half of a page&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;. will execute the last command in execution mode&lt;br /&gt;&lt;br /&gt;In split window N goes backward to navigate&lt;br /&gt;&lt;br /&gt;^w+ resizing the current split window to larging&lt;br /&gt;&lt;br /&gt;^w- To decreasing the size of current split window&lt;br /&gt;&lt;br /&gt;p put after current cursor&lt;br /&gt;&lt;br /&gt;P put before the current cursor&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In Insert mode Ctrl+w is used to cut the current word.&lt;br /&gt;&lt;br /&gt;we can open multiple file at same time by passing all filename in vim command in single line.&lt;br /&gt;:next is used to go to next file.&lt;br /&gt;&lt;br /&gt;J concatenates the line by deleting the end of line&lt;br /&gt;&lt;br /&gt;:set aw this command ensures that file saved automatically before switching.&lt;br /&gt;&lt;br /&gt;: on removes all other windows in split window and current window will become the full screen.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Buffer can be used in this file to create buffer &quot;buffername commands output command is stored in buffername.&lt;br /&gt;Eg: &quot;a3yy - copy the 3 lines and stored in a buffer&lt;br /&gt;&lt;br /&gt;We can replace the particular word in particular range of line &lt;br /&gt;Syntax: %10s/new/old/g - global&lt;br /&gt;&lt;br /&gt;: pwd Print the current directory name.&lt;br /&gt;&lt;br /&gt;_____________________________________________________________________________________&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;p and P differs on entire line and part of line deleted or yanked.&lt;br /&gt;&lt;br /&gt;P places it left when word is deleted or cutted or yanked.&lt;br /&gt;&lt;br /&gt;p places it right when word is deleted or cutted or yanked.&lt;br /&gt;&lt;br /&gt;P places it above when entire line is deleted or yanked.&lt;br /&gt;&lt;br /&gt;p places it below when entire line is deleted or yanked.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;_____________________________________________________________________________________&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;In Insert Mode&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;^t give tab in beggining of a line&lt;br /&gt;&lt;br /&gt;^y copies above character and paste&lt;br /&gt;&lt;br /&gt;^u undo the operation&lt;br /&gt;&lt;br /&gt;^i gives tab in current position&lt;br /&gt;&lt;br /&gt;^o goes to command mode and accept only one command and return back to insert mode&lt;br /&gt;&lt;br /&gt;^a place the buffer which has inserted text after opening the file.&lt;br /&gt;&lt;br /&gt;^j and ^m acts as a enter key&lt;br /&gt;&lt;br /&gt;^k insert before the current position&lt;br /&gt;&lt;br /&gt;^c goes to command mode&lt;br /&gt;&lt;br /&gt;In execution shift&amp;gt;&amp;gt; acts as tab instead of tab character&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;_____________________________________________________________________________________&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;B,W,E navigate between words but they ignore punctuations.&lt;br /&gt;&lt;br /&gt;:.!tr &#39;[a-z]&#39; &#39;[A-Z]&#39; - will convert case lower to upper in current line&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;:map r :w^V^M will save the file when press r in command mode&lt;br /&gt;&lt;br /&gt;^M is set to be enter key in mapping&lt;br /&gt;&lt;br /&gt;Visual mode.&lt;br /&gt;&lt;br /&gt;Shift+v is to select a line&lt;br /&gt;Ctrl+v is to select a block of text.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;gv is used to reselect the last selection part in visual mode.&lt;br /&gt;&lt;br /&gt;If you select some lines in visual mode using Ctrl+v or Shift+v. &lt;br /&gt;later you want to select last selection in lines use gv.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxicle.blogspot.com/feeds/2120224851292595943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8651458735881455420&amp;postID=2120224851292595943&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/2120224851292595943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8651458735881455420/posts/default/2120224851292595943'/><link rel='alternate' type='text/html' href='http://linuxicle.blogspot.com/2012/02/vim-command-tips.html' title='Vim Command Tips'/><author><name>Atul Makwana</name><uri>https://plus.google.com/111888245882837550633</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-P5vZrhAXMuY/AAAAAAAAAAI/AAAAAAAAASw/7wcJkU4IQis/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-9DyPifNu-SI/UlW5N_8sHPI/AAAAAAAAArA/I-KE9oyvoA4/s72-c/url.png" height="72" width="72"/><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1"/><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD"/></entry></feed>