Category: Mini How-Tos


How to Sort Files By Modification Time in ls

To sort files by modification time when using ls, use the -t option. For example, to sort in descending order:

[me@mycomputer usr]$ ls -lt
total 224
drwxr-xr-x   88 root root 65536 Sep  1 17:39 lib
drwxr-xr-x   14 root root  4096 Sep  1 16:00 local
drwxr-xr-x    2 root root 12288 Jul 26 04:04 sbin
drwxr-xr-x  174 root root  4096 Jul 25 19:01 share
drwxr-xr-x    2 root root 40960 Jan 25  2006 bin
drwxr-xr-x    7 root root  4096 Jan 16  2006 libexec
drwxr-xr-x    3 root root  4096 Oct 16  2005 java
drwxr-xr-x   61 root root 12288 Mar 13  2005 include
drwxr-xr-x    4 root root  4096 Mar 13  2005 src
lrwxrwxrwx    1 root root    10 Mar 13  2005 tmp -> ../var/tmp
drwxr-xr-x    6 root root  4096 Feb 27  2005 kerberos
drwxr-xr-x    2 root root  4096 Feb 22  2005 etc
drwxr-xr-x    2 root root  4096 Feb 22  2005 games
drwxr-xr-x    7 root root  4096 Feb 21  2005 X11R6

To sort in descending order, add the -r option:

[me@mycomputer usr]$ ls -ltr
total 224
drwxr-xr-x    7 root root  4096 Feb 21  2005 X11R6
drwxr-xr-x    2 root root  4096 Feb 22  2005 games
drwxr-xr-x    2 root root  4096 Feb 22  2005 etc
drwxr-xr-x    6 root root  4096 Feb 27  2005 kerberos
lrwxrwxrwx    1 root root    10 Mar 13  2005 tmp -> ../var/tmp
drwxr-xr-x    4 root root  4096 Mar 13  2005 src
drwxr-xr-x   61 root root 12288 Mar 13  2005 include
drwxr-xr-x    3 root root  4096 Oct 16  2005 java
drwxr-xr-x    7 root root  4096 Jan 16  2006 libexec
drwxr-xr-x    2 root root 40960 Jan 25  2006 bin
drwxr-xr-x  174 root root  4096 Jul 25 19:01 share
drwxr-xr-x    2 root root 12288 Jul 26 04:04 sbin
drwxr-xr-x   14 root root  4096 Sep  1 16:00 local
drwxr-xr-x   88 root root 65536 Sep  1 17:39 lib

How to Add a User to a Group in Linux

Today I had to add an existing user to an existing group in Linux. It’s been so long since the last time I did it that I had actually forgotten how to do it. Well, good ol’ man pages to the rescue. Here’s how to do it:

adduser user group

If you want to verify that it worked, use grep:

grep group /etc/group

In grep’s output, you should see the user’s name. For example:

group:!:50:tom,dick,harry,user

Enjoy!

QuickBooks Help – Page Cannot Be Displayed

I installed QuickBooks Pro 2006 yesterday. When I tried to access the help files, I got the error: “Page Cannot Be Displayed”.

I found lots of suggested solutions in Google. I tried many of them one-by-one and they did not work. Then I started trying them in combination. Finally, it worked. However, I’m not sure which combination did the trick. If you are having the same problem, please try the various tips on the page CHM help files error: The page cannot be displayed.

I think this tip is important:

regsvr32 hhctrl.ocx

But you might have to create the MaxAllowedZone registry key first (see above link).

Again, I’m not sure exactly which combination did the trick. Just keep trying all of the suggestions on that page (perhaps in various orders) until it is fixed. Then post a comment back here, describing what worked for you.

BTW, Intuit’s knowledge base sucks shit! It should have the solution for this problem, which seems to be a common one, judging from the number of posts about it in the QuickBooks forums.

QuickBooks Pro 2006 – Shitty Out of Box Experience

I just installed QuickBooks Pro 2006. The installation went okay but when I tried to start QuickBooks for the first time, I ran into problems. The splash screen came on for about a half a second and then the program closed. I tried it again and then same thing happened.

I figured if Intuit was a typical software company, they would have put some error message into a log file. Sure enough, I found a log file at “C:\Program Files\Intuit\QuickBooks Pro\QBWIN.log”. Inside the log I found several “missing module” messages: Continue reading » QuickBooks Pro 2006 – Shitty Out of Box Experience

Page 7 of 9« First...«56789»