Useless Linux Terminal Commands

2010-03-21 1 min read Bash Linux

Useless Linux Terminal Commands Not long ago, I have listed here some useful Linux terminal commands and those that I described as deadly. This time, I decided to gather some commands that I think have no practical use. I know it sounds interesting but you may disagree with me on some of the commands that I’ll list here as you may find a few of them useful. We can however agree to disagree as long as you explain to us why or how you find them handy.

Continue reading

Cool OpenOffice.org Easter Eggs

2010-03-21 0 min read Linux
\"OpenOffice.\"
Image via Wikipedia

Since it&#8217;s almost <a class="zem_slink freebase/en/easter" title="Easter" rel="wikipedia" href="http://en.wikipedia.org/wiki/Easter">Easter Sunday, I will be sharing with you several cool <a href="http://en.wikipedia.org/wiki/Easter_egg_%28media%29">virtual Easter eggs hidden inside some of our favorite <a class="zem_slink freebase/en/application_software" title="Application software" rel="wikipedia" href="http://en.wikipedia.org/wiki/Application_software">software applications. Today, we will take a look at some Easter eggs inside <a href="http://www.junauza.com/2009/05/8-essential-openoffice-extensions.html">OpenOffice.org so get ready to have fun or be amused.

Continue reading

Quick tip to change parameters in different files

2010-03-16 1 min read Linux
for i in *.cfg; do mv $i $i.bak;sed \’s/a/b/\’ $i.bak > $i; done

The above command is very useful to change certain regular expressions in couple of files in one directory. This can be used in variety of ways to achieve a lot of things which would normally take some time to do manually.

Linux find command – Find file and directories faster and easier

2010-03-16 1 min read Linux

 

This command is very powerfull when used with combination of filters and pipes and RE.

I will give some example:

find . -type f –» List all files
find . -type f -exec rm {} <a class=“zem_slink” title=“Path (computing)” href=“http://en.wikipedia.org/wiki/Path_%28computing%29" rel=“wikipedia”>\; –» Delete all files
find . -type d -exec rm {} \; –» Will through some common errors 🙂
find . -name "name"  –> find files containing name in the filename
find . -atime 12 –> Find files accessed 12 days ago

Continue reading

Edit a File When You Are Viewing It Using more / less Command

2010-03-16 2 min read Linux

<a href="http://www.cyberciti.biz/faq/edit-file-when-youre-viewing-withmore-less/">Aritcle here.

<a title="Permanent Link to Edit a File When You Are Viewing It Using more / less Command" rel="bookmark" href="http://www.cyberciti.biz/faq/edit-file-when-youre-viewing-withmore-less/">Edit a File When You Are Viewing It Using more / less Command<div style="color: #888888;">Posted by Vivek Gite [Last updated: November 1, 2008]

<div id="EchoTopic"> <div style="float: left; margin-top: 0px; margin-right: 5px;">
<div style="float: right; margin-top: 0px; margin-left: 5px;"><a title="See all Bash/Shell scripting related FAQ" href="http://www.cyberciti.biz/faq/category/bash-shell/"><img src="http://blog.amit-agarwal.com/wp-content/uploads/figs.cyberciti.biz/3rdparty/terminal.png" border="0" alt="" />

<span style="color: #ff0000;">Question: I can use <a href="http://www.cyberciti.biz/tips/less-is-more-the-hidden-treasure-of-less-command.html">less or more pagers to view a file. How do I start an editor (such as vi or other text editor) to edit the current file without leaving the less or more pager command?

Continue reading
Older posts Newer posts