Wednesday, December 28, 2011

Find all files ending with ".inc" in current folder

Recently I had to do a code review of a particular project. I had to check whether they had exported all the views into code. So I had find for the views export files. So here are the few steps I followed.

To check whether the default_views folder exists or not.

1. Opened my terminal

2. man find

3. Didn't understand much. But enough to write these following commands.






find . -type d -name 'default_views'

find                                =  The command to find files in the linux folder structure
.                                     =  The location to search for. '.' means current folder.
-type d                           =   Search for only directories
-name 'defatult_views'   =  Having name 'default_views'

Then I did a search for all the folders within modules whose name consists of 'views'
find . -type d -name '*views*'

If got no results. So I did a search for all the files that end with inc

find . -type f -name '*.inc'

Monday, December 5, 2011

Which linux flavor to use?

If you are still asking this question then you must be using ubuntu. There are various flavors of linux like Debian, Fedora, OpenSuse, Red Hat Linux and Ubuntu. There are so many sites out there are which are diplomatic and wouldn't suggest a particular flavor of Linux. If you are new to Linux go ahead with Ubuntu. Once you are familiar with Linux in general then you can make a more informed choice.

Remember Ubuntu is Linux for humans.


Open terminal in Ubuntu

Most of the book and tutorials assume that everybody knows it. But I had a tough time finding it initially.


  1. Go to Applications.
  2. Select Accessories.
  3. Scroll down to terminal and click it.

You should see a screen like this.



Adding notifications (Wifi scanner) in ubuntu

You might be familiar with the top right hand panel of Ubuntu. What if you disabled the icons there by mistake. What if you are not able to get your Wifi scanner back?

What if it looks like this





  1. Right click on the Top Right Panel.
  2. Click on Add to Panel
  3. Search for Notification area and select it. You are done now.


And you screen will look like this


When your laptop finds a new network, it is a notification. Hence it is in the notification area. So are the remaining icon in the set. :)