[Discuss] Reviewing history command output for productivity

Daniel M. German dmgerman at uvic.ca
Tue Sep 26 23:58:55 PDT 2006



 noel> You guys and your wacky multiple terminal windows.  Kiss the Gnu, live
 noel> in Emacs.  I run bash in an Emacs buffer.  I rarely need more than one
 noel> bash buffer, since you can open mutiple buffers for files and man pages.
 noel> Since cutting and pasting is so easy in Emacs, if I need to reuse a long
 noel> shell command I save it from the shell to a notes file, then I can paste
 noel> it back in my shell buffer later.  Yes, I know you can open multiple files
 noel> in vim too, but having an umlimited buffer by running your shell in your editor
 noel> makes things like this much easier.

ALthough I literary live inside emacs I have never gotten used to its
bash buffer. I prefer to use xterms.

Ok, I run the following command to check what I run the most:

 history | cut -c 8- | cut -d ' ' -f 1 | sort | uniq -c | more | sort -n  -r

These are my top 10 commands, out of 500 entries in the history file
(biased because I was running out of space and had to remove some
files)

 111 mail
  89 f
  50 ls
  46 cd
  33 df
  18 mailq
  14 sendmail
  13 du
  12 history
   9 find


f is an alias for fetchmail, which I prefer to run by hand. Sendmail
is because I have to flush the queue by hand when I reconnect.

In another window:

  74 mail
  68 open
  60 ~/hacking/libpano/tools/PTmender
  43 f
  32 ls
  30 mv
  28 \rm
  20 sshmail
  16 ~/hacking/libpano/tools/PTblender

open is a script that will run the associated program given the
extension (MacOS). Very handy and a great way to avoid using the mouse
in the slow OS X GUI.

and this is another one:

 178 mail
  41 f
  34 sshmail
  29 cd
  27 ssh
  27 mailq
  26 clear
  25 ls
  13 sendmail

So I guess mail is the most common application I run from the command
line :)


--
Daniel M. German                  "The only bad press is an obituary."
                                    Dennis Rodman
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .

 


More information about the Discuss mailing list