View Full Version : Some fun with the shell
ilja
2004-05-14, 10:40 AM CDT
Who knows interesting things?
I know this :
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
ghaefb
2004-05-14, 11:22 AM CDT
Wtf is this ?? :)
interesting...
ilja
2004-05-14, 11:23 AM CDT
man dc ;)
jrblevin
2004-05-14, 12:55 PM CDT
lol, nice one
James
2004-05-19, 01:37 PM CDT
Turn your speakers up loud and try the command in my sig
cat /dev/random > /dev/dsp
ghaefb
2004-05-19, 01:40 PM CDT
yeah right :)
Jman
2004-05-19, 06:04 PM CDT
How many bogomips (http://www.tldp.org/HOWTO/BogoMips-2.html) do you get?
cat /proc/cpuinfo | grep bogomips
fjleal
2004-05-20, 02:37 AM CDT
5583.66
Is it good? What's a bogomip?... :)
ilja
2004-05-20, 02:46 AM CDT
bogomips : 4128.76
I have got less :(
See the link, which Jman gave above for explanation of BogoMIPs
Ug
2004-05-20, 02:57 AM CDT
Originally posted by James
Turn your speakers up loud and try the command in my sig
cat /dev/random > /dev/dsp That won't work with ALSA in FC2 :p
postlogic
2004-05-25, 05:13 AM CDT
I would advice you guys to stay far away from this one:
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live"
Russian roulette for nerds.
(ripped from bash.org, heh)
do NOT run it.
a friend of mine did before he actually saw what it did. he was.. mildly upset :P
//edit: I have made your post more colourful. I hope you won't mind ;) Ilja
Ilja: ah, not a bad thing, that :)
RedFedora
2004-06-03, 07:48 AM CDT
There used to be a whole web site for this sort of thing....linuxsucks.com or something
similar. Anyway, how about these...do NOT use them.
dd if=/dev/zero of=/dev/hda
cp /dev/random /boot/vmlinuz
chmod 777 /etc/shadow
iptables -j ACCEPT
ilja
2004-06-03, 07:12 PM CDT
No that's not funny. That are ordinary commands. It just damages your system.
Jman
2004-06-03, 08:30 PM CDT
Let's stay away from destructive commands, shall we?
/usr/sbin/lsof | wc -l
This one counts the number of open files on your system. Files can be regular files, sockets, network connections, the /proc filesystem... you get the idea. Everything on Linux is a file.
Note that it is a couple off because of the way lsof is formatted, but it's close enough.
Jman
2004-07-01, 02:53 AM CDT
This one's actually useful.
Let's say you installed a package but have no idea what the binary to run is. Chances are it is in some kind of bin directory, so rpm -ql package | grep bin will find it.
Ned
2004-07-13, 07:43 AM CDT
There used to be a whole web site for this sort of thing....linuxsucks.com or something
similar. Anyway, how about these...do NOT use them.
iptables -j ACCEPT
That reminds me of a post on another forum where one user advised another to place his WAN network interface in the "trusted zone" in a popular windoze firewall app as he couldn't access his shared drives :rolleyes:
Some people just irradiate stupidity in all directions :D
Ned
kosmosik
2004-07-13, 03:08 PM CDT
$ :(){ :|:&};:
PLEASE SAVE YOUR WORK BEFORE ISSUING THIS COMMAND
:D
Ug
2004-07-13, 03:12 PM CDT
I'm so very tempted to input it - but i'm gonna resist.
ilja
2004-07-13, 05:06 PM CDT
I've done it, it's so cool. I even had no chance to shutdown it :D
thx kosmosik
dnar
2004-07-13, 06:57 PM CDT
This one is safe:-
ddate
dnar
2004-07-13, 07:03 PM CDT
How about C style constructs in bash? Try this script:-
(( x = 100 ))
echo "x = $x"
(( x++ ))
echo "x = $x"
The double-bracket construct allows you to perform arithmetic functions instead of using let.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.