Where is Home Directory? Where is My Computer?

Post LogoI heard from many people who regularly use Linux/Mac naturally hating Windows and I find a similar response from first time Linux/Mac OS X users. Even though there are many other factors to this love/hate relationship, Here I would like to consider the most basic use case i.e., accessing files/folders in your new OS. For a newcomer to Windows the only gateway into their computer is My Computer (or the renamed “This PC”) which unfortunately does not quite resemble his/her Home Directory in the Linux/OS X Finder. This happens the other side as well. A newcomer to Linux/Mac will be surprised to see the Home Directory for the first time and finds his My Computer missing. But trust me the dissimilarities here are skin deep.
Read on →

How to find the total number of lines in a text file using notepad?

These days most of us use much better text editors than Notepad. But yesterday I found a neat little trick to find the current line number and eventually the total number of lines in a text file using notepad from my colleague Nandan Prabhu. Generally when you press Ctrl+G notepad will pop up the Go to Line dialog. Inside this dialog is the (hidden) current line number information pre-filled by Notepad. So we can use this pre-filled info to find the total number of lines in the opened text file by going to the end of the file and pressing Ctrl+G ;). This may not be an earth shattering discovery! But may be useful if you don’t have access to any other tools other than Notepad.
Read on →