GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   linux geeks, post your favourite console commands (https://gfy.com/showthread.php?t=1016036)

fris 03-28-2011 05:57 AM

linux geeks, post your favourite console commands
 
here are 7 of mine

print sorted list of installed packages

Code:

perl -m'AptPkg::Cache' -le '$c=AptPkg::Cache->new; for (keys %$c){ push @a, $_ if $c->{$_}->{'CurrentState'} eq 'Installed';} print for sort @a;'
google text to speach in mp3 format

Code:

wget -q -U Mozilla -O output.mp3 "http://translate.google.com/translate_tts?tl=en&q=hello+world"
print trending topics on twitter

Code:

curl --silent search.twitter.com | sed -n '/div id=\"hot\"/,/div/p' | awk -F\> '{print $2}' | awk -F\< '{print $1}' | sed '/^$/d'
show number of twitter followers

Code:

curl -s http://twitter.com/users/show.xml?screen_name=username | sed -n 's/\<followers_count\>//p' | sed 's/<[^>]*>//g;/</N;//b'
scan lan for unauthorized ips

Code:

diff <(nmap -sP 192.168.1.0/24 | grep ^Host | sed 's/.appears to be up.//g' | sed 's/Host //g') auth.hosts | sed 's/[0-9][a-z,A-Z][0-9]$//' | sed 's/</UNAUTHORIZED IP -/g'
temp based on location

Code:

curl -s www.google.com/ig/api?weather=$(curl -s api.hostip.info/get_html.php?ip=$(curl -s icanhazip.com) | sed -e'1d;3d' -e's/C.*: \(.*\)/\1/' -e's/ /%20/g' -e"s/'/%27/g") | sed 's|.*<t.*f data="\([^"]*\)"/>.*|\1\n|'
list unread msgs from your gmail account

Code:

curl -u username:password --silent "https://mail.google.com/mail/feed/atom" | tr -d '\n' | awk -F '<entry>' '{for (i=2; i<=NF; i++) {print $i}}' | sed -n "s/<title>\(.*\)<\/title.*name>\(.*\)<\/name>.*/\2 - \1/p"

DamianJ 03-28-2011 06:00 AM

cal is pretty l33t

Juicy D. Links 03-28-2011 07:15 AM

pussy lips

AdultKing 03-28-2011 07:43 AM

rm -rf /

:D

nation-x 03-28-2011 09:52 AM

ls
cd
whereis

fuzebox 03-28-2011 10:18 AM

I mostly compose long shell lines using sed, awk, sort and uniq.

seeandsee 03-28-2011 10:35 AM

linux /best +bj

Klen 03-28-2011 10:42 AM

Damn you are more lt33t then me :)

ContentPimp 03-28-2011 11:52 AM

n3rdz rule

cooldude7 03-28-2011 12:02 PM

the most i like is whoami lol, it makes me feel i m king.,okie., other than that.

top
grep
curl
my special command i used to use for my old project

grep "Arial, Helvetica, sans-serif" a.html | cut -d">" -f3 | cut -d" " -f1 | grep -v font | cut -d"," -f1 | grep -v "<" | grep -v style | grep -v text | sort -u >> a.txt


dont laugh, i m still noob.


All times are GMT -7. The time now is 12:46 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123