DEV Community

Discussion on: What are your five most used terminal commands?

Collapse
 
goodevilgenius profile image
Dan Jones

Does not appear to work for BASH 5, as I just get a list of dates. I wonder if the author is on macOS, and is using the pre-installed BASH 3.

Changing the $2 to $4 fixed it for me.

     1  100  10%   git
     2  76   7.6%  ls
     3  41   4.1%  cd
     4  37   3.7%  list.sh
     5  37   3.7%  emacsclient

list.sh is a script I wrote to quickly search my calibre library for books in a particular series. e.g., list.sh Justice League shows me all the "Justice League" comics I currently have.


Also, if sudo is in your top 5, then I think there's something wrong with the way you're working. Nobody should need sudo that much.

Collapse
 
riscie profile image
riscie

My tests were on zsh here.
I think you are right about the usage of sudo. I made some sudoers changes after I saw sudo in my own top list. I think for me it was there, because I used it a lot for package updating / installing.