PDA

View Full Version : List the commands


ashvala
October 14th, 2007, 09:19 AM
A thread game where you have to just write a bash command

Ill start: ls

Lord Illidan
October 14th, 2007, 09:22 AM
echo hello
EDIT : If someone feels the urge to write a dangerous command like rm, please do say that it's dangerous beforehand...not after someone wrecks his/her system.

Tyche
October 14th, 2007, 09:24 AM
man [just about every name I can think of, and many I can't] :-)

yabbadabbadont
October 14th, 2007, 06:55 PM
NextPage=$(cat $NextPage.html |\
grep "page[1-9]" |\
grep '/">next' |\
sed "s:^.*/$Category/$Name/::" |\
sed 's:/">.*$::')

From a bash script of mine. ;)

FuturePilot
October 15th, 2007, 01:34 AM
while true; do sleep $(($RANDOM/5000)) && beep -f $((RANDOM/10)) -l $(($RANDOM/100)) ; done
If you have the program beep installed this will make your computer randomly beep in different tones.:lolflag:
(press Ctrl+C to stop the madness :lol:)

yabbadabbadont
October 15th, 2007, 01:46 AM
while true; do sleep $(($RANDOM/5000)) && beep -f $((RANDOM/10)) -l $(($RANDOM/100)) ; done
If you have the program beep installed this will make your computer randomly beep in different tones.:lolflag:
(press Ctrl+C to stop the madness :lol:)

I used to do something similar to other users of a Unix system on which I was root. :twisted:

(their text used to randomly change colors too :lol:)

santiagoward2000
October 15th, 2007, 01:48 AM
cd /ubuntuforums/communitycafegames

FuturePilot
October 15th, 2007, 01:49 AM
I used to do something similar to other users of a Unix system on which I was root. :twisted:

(their text used to randomly change colors too :lol:)

Hahaha, lol:lolflag:

xyz
October 15th, 2007, 09:55 AM
I found these H E R E (http://frankmash.blogspot.com/2006/03/linux-commands-funny-linux-commands.html)

but they don't work for me. If someone can tell me why...Maybe they will for you.


% cat "food in cans"
cat: can't open food in cans

% nice man woman
No manual entry for woman.

% "How would you rate Quayle's incompetence?
Unmatched ".

% Unmatched ".
Unmatched ".

% [Where is Jimmy Hoffa?
Missing ].

% ^How did the sex change operation go?^
Modifier failed.

% If I had a ( for every $ the Congress spent, what would I have?
Too many ('s.

% make love
Make: Don't know how to make love. Stop.

% sleep with me
bad character

% got a light?
No match.

% man: why did you get a divorce?
man:: Too many arguments.

% !:say, what is saccharine?
Bad substitute.

% %blow
%blow: No such job.

% \(-
(-: Command not found.

$ PATH=pretending! /usr/ucb/which sense
no sense in pretending!

$ drink matter
matter: cannot create

FuturePilot
October 15th, 2007, 12:38 PM
They don't work for me either. :confused:

Here's my command
cat

yabbadabbadont
October 15th, 2007, 07:40 PM
@xyz & FuturePilot: I think that you have to be using the C shell (csh) in order to get that output.

find /media/music -type f \( -name "*mp3" -o -name "*ogg" \) -print0 | xargs -0 mv -t /media/removable/music/lossy

-grubby
October 15th, 2007, 07:44 PM
dir

FranMichaels
October 17th, 2007, 05:59 PM
I use this one all the time


history


Lists your previous entered commands, with a number on the left.
Let's say this came up


414 cd audacious-plugins.hg/


To execute that again
type

!414


Will I get in trouble if I mention another command :razz:

grep

try this


history | grep cd


It will return every line with 'cd' in it.

I use these two commands all the time, saves on typing!

:KS

init1
October 18th, 2007, 05:24 PM
kill :twisted:

lespaul_rentals
October 19th, 2007, 01:43 PM
killall <name of application>

Kills the application and eliminates it from memory.

yabbadabbadont
October 19th, 2007, 05:26 PM
export LESSHISTFILE="-"
unset HISTFILE

Stops the less utility (first line) and the bash shell (second) from saving any command history files. I have those lines in my ~/.bashrc file.

Overbyte
October 20th, 2007, 10:22 AM
Of course, everyone's favorite exercise!
$ cat>fibonacci
# Overbyte is really geeky, don't date him
echo Enter a number:
read num
x=0
cur=1
prev=0
temp=0

while [ x -le num ]
do
echo -n prev
temp=cur
let cur=cur+prev
prev=temp
done
echo

<Press Enter then CTRL-D>

$chmod +x fibonacci
$fibonacci
Enter a number: 5
0 1 1 2 3

$

To get the % jokes you need to go to the C shell :)
$ csh
% make love
make: Don't know how to make love. Stop.
% exit
$ echo Now back to bash
Now back to bash
$


Don't know if that script works, made it up quickly in Notepad, but you get the idea :D
Just my 2 cents :popcorn:

runemaste644
October 20th, 2007, 11:38 AM
xkill
Gives you a skull and crossbones cursor and allows you to kill a window

rocknrolf77
October 20th, 2007, 11:59 AM
while true; do sleep $(($RANDOM/5000)) && beep -f $((RANDOM/10)) -l $(($RANDOM/100)) ; done
If you have the program beep installed this will make your computer randomly beep in different tones.:lolflag:
(press Ctrl+C to stop the madness :lol:)

Why do I get the feeling I'm playing an old sierra game :)


sudo fdisk -l

For viewing you partitions

koenn
October 20th, 2007, 07:49 PM
I used to do something similar to other users of a Unix system on which I was root. :twisted:

(their text used to randomly change colors too :lol:)
sysadmins from hell !

----
sudo -i
become root, get rid of the endless sudo's when you need to run multiple commands as root

xyz
October 21st, 2007, 07:38 AM
shred -fuzv file_whatever
...when you really want to delete something.

yabbadabbadont
October 21st, 2007, 08:58 PM
shred -fuzv file_whatever
...when you really want to delete something.

Not really. Read the warnings on the author's website for shred, wipe, and similar utilities. With the advent of journaling filesystems and hard drives that do automatic sector relocation, short of physical destruction of the media, there really isn't any way to eliminate all traces from a determined attacker. However, since you probably don't want to destroy your drive, a reasonably secure way of using shred (and other similar utilities) is to use it on the device containing the filesystem in order to wipe the entire filesystem. (/dev/hda1 for example)

-grubby
October 21st, 2007, 09:02 PM
while true; do sleep $(($RANDOM/5000)) && beep -f $((RANDOM/10)) -l $(($RANDOM/100)) ; done
If you have the program beep installed this will make your computer randomly beep in different tones.:lolflag:
(press Ctrl+C to stop the madness :lol:)

I didn't know my system good make this kind of noise

xyz
October 22nd, 2007, 10:16 AM
Not really. Read the warnings on the author's website for shred, wipe, and similar utilities. With the advent of journaling filesystems and hard drives that do automatic sector relocation, short of physical destruction of the media, there really isn't any way to eliminate all traces from a determined attacker. However, since you probably don't want to destroy your drive, a reasonably secure way of using shred (and other similar utilities) is to use it on the device containing the filesystem in order to wipe the entire filesystem. (/dev/hda1 for example)

You're right.
I don't use shred to wipe drives. Only as a 'delete' tool.

Christmas
October 22nd, 2007, 10:39 PM
echo -en "Viva\f"; sleep 1; echo -en "Pink\f"; sleep 1; echo -en "Floyd\f"; sleep 1; echo -en ":)\n"

FuturePilot
October 22nd, 2007, 11:34 PM
echo -en "Viva\f"; sleep 1; echo -en "Pink\f"; sleep 1; echo -en "Floyd\f"; sleep 1; echo -en ":)\n"

What does this do?

yabbadabbadont
October 23rd, 2007, 12:51 AM
What does this do?

/home/daffy $ echo -en "Viva\f"; sleep 1; echo -en "Pink\f"; sleep 1; echo -en "Floyd\f"; sleep 1; echo -en ":)\n"
Viva
Pink
Floyd
:)

;)

FuturePilot
October 23rd, 2007, 01:29 AM
Viva
Pink
Floyd
:)

:lolflag:

init1
October 23rd, 2007, 08:52 PM
while true; do sleep $(($RANDOM/5000)) && beep -f $((RANDOM/10)) -l $(($RANDOM/100)) ; done
If you have the program beep installed this will make your computer randomly beep in different tones.:lolflag:
(press Ctrl+C to stop the madness :lol:)
That's amazing

Wiebelhaus
October 23rd, 2007, 08:57 PM
sudo apt-get wtf this dude is talking about?

nikoPSK
December 9th, 2007, 12:07 AM
I found these H E R E (http://frankmash.blogspot.com/2006/03/linux-commands-funny-linux-commands.html)

but they don't work for me. If someone can tell me why...Maybe they will for you.

I like the % %blow command. Wit, theres espeak...

espeak "lkf;rjtaebrjkazmyassssr'bl;jtljtrlsykj"