Linux-Noob Forums

Full Version: Your Top Ten Program List
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2

Quote:<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="2114" data-ipsquote-contentclass="forums_Topic"><div>Znx, 

we both forgot what maybe the most importage program ever for gentoo users....
 

isn't that

 

Quote:rm -rf /
lol ;) 

NOTE: noobs, do NOT do the above command it erases everything (which on a gentoo install might not be such a bad thing ;-))

</div></blockquote>
 

I was going to say "not unless they are root", but then again they might just be root if they are noobs :/[img]<___base_url___>/uploads/emoticons/default_ohmy.png[/img]o_O[img]<___base_url___>/uploads/emoticons/default_dry.png[/img]


currently most used of my top ten, in order of use:

<ol style="list-style-type:decimal;">[*]eterm

[*]gkrellm

[*]firefox

[*]pico

[*]kismet (warsitting is fun)

[*]ethereal (learning how to use it so i can set up a wardriving honeypot (warpot?))

</ol>less often used, but still loved, in no order:
  • ssh

  • xephem

  • irssi

  • xmms



Top Ten

 

(1) nmap

(2) openssh

(3) snort

(4) conky

(5) xmms

(6) gkrellm

(7) firefox

(8) .........

...........

.............

I'm a noob, my favourite programs include Xchat and Gaim! LAwl.

 

I want my GODDAMN ftp to work! Soon that will be at the top...File servers are good in time of need.


ls

w

cat

php

vi

vim

ps

cd

su

ssh

 

In that order according to how many times I've ran those programs.

 

for i in `cat ~/.bash_history|awk '{print $1}'|sort -u|xargs`; do echo `cat ~/.bash_history |grep $i |wc -l` $i; done | sort --numeric

will show you your most used programs


176 g

196 su

226 n

382 s

 

 

I know what su is, but anyone give me a clue about the other commands?


Quote:In that order according to how many times I've ran those programs. 

for i in `cat ~/.bash_history|awk '{print $1}'|sort -u|xargs`; do echo `cat ~/.bash_history |grep $i |wc -l` $i; done | sort --numeric

will show you your most used programs
 

Hrmm this doesn't look quite right.. maybe

 



Code:
for p in `awk '{print $1}' < .bash_history | sort -u`; do echo `grep -c $p ~/.bash_history` $p; done | sort -n | tail




 

Notice .. if you ever cat to a command a simple redirect will do. You don't need to cat to a grep and grep has count (-c) so no need for wc :)Also I am not quite sure what the xargs was for?

 

Anyhoo .. nice idea... :)


Im always root LOL

Makes me wanna try it...

Pages: 1 2