Thursday, February 22, 2007

Irritating or kewl feature? Recently used files

First of all, apologies for skipping 2 weeks. I was a bit under the weather.
I am back on track with some kewl tips.

Windows:
Whenever you install a new program in Windows XP, a very irritating balloon pops up next to the "START" button and in the “All Programs” menu, the new programs are highlighted. If you find this useful, cool but if, like me, this annoys you, you can disable it.
1. Right-click the “Start” button.
2. Select “Properties”.
3. Click the “Customize” button.
4. Choose the “Advanced” tab.
5. Under “Start Menu Settings”, uncheck the “Highlight newly installed programs” checkbox.
6. Press the “OK” button and then click the “OK” button again.
If you want to re-enable this, follow the instructions and check the “Highlight newly installed programs” checkbox in step 5.

Linux: (There is a nice bonus hint at the bottom)

Do you want to find the most recently changed files in a folder with lots of files and subdirectories?
One way is to use the “ls” command and combine it with a few flags. In addition, you can pipe it into “head” to see the 10 most recently modified files. The -t flag sorts the entries by the date they were last modified.
For example:
ls -lFt ¦head (The -F flag distinguishes different types of files and directories by adding extra characters (such as '/' for directories, '*' for executables, etc.)
There are many more flags to be used with “ls” so see the man pages – “man ls”.
To find all files which were modified within the last twenty-four hours, try the following: find / -mtime 1 or in a specific folder find . –mtime 1
If you want to find all files modified since midnight: find / -daystart -mtime 0

Bonus tip: (Supplied by the one and only Brian Hatch). http://www.ifokr.org/bri/
Do you use /usr/bin/less as your pager? Do you find yourself on machines where the screen clears when you exit it, for example when you're looking at a man page? Try setting your LESS variable to export LESS=MQieX
and that man page won't disappear, thwarting your attempts to reference the arguments you just looked up.