View Full Version : Have fun with aliases
SlickRick
March 19th, 2009, 11:16 PM
I've decided to make a thread where you can post funny aliases for commands.
These are some examples from the YKYAGW (http://ubuntuforums.org/showthread.php?t=86237&page=527) thread.
It started with a lolspeak reference...
YKYAGW yur .bashrc file now looks like dis
alias do_want='sudo apt-get install'
alias do_not_want='sudo apt-get remove'
alias i_can_haz='sudo apt-get install'
alias im_in_yur='cd'
alias kthxbai='exit'
alias invisbl='fg' #send job to foreground
alias visabl='echo'
alias caturday='date'
alias not_amuzed='killall'
alias oh_noez='reboot'
alias nomnomnom='rm'
alias rly='sudo'
If anyone haz suggestions on how I could improve it, plz feel free to mention them but those are the commands I mostly use. Apart from 'fg' but I couldn't have visabl and not have invisabl.
I tip my hat to you, and I have some suggestions:
alias longcat='less'
alias all_ur_base='cd /'
alias d00d='man'
alias lolcat='cat'
alias OC='sudo apt-get update'
alias srs_bsns='sudo su'
EDIT: Does alias accept wildcards? If so,
alias wat $1='$1 --help'
is also funneh.
you add these to your .bashrc file in your home folder. To edit it, simply type
sudo gedit ~/.bashrc
s.fox
March 19th, 2009, 11:17 PM
Yay, LOL CODE (sort of)
jenkinbr
March 19th, 2009, 11:56 PM
Add the line
alias icanhaz='sudo apt-get install' to your ~/.bashrc
Add the following
#!/bin/bash
echo "<inseart list of packages to install here>"; to the file '~/bin/cheezburger', replacing the angle-bracketed text with the packages you want to install, seperated by a space. Then chmod it to 0744.
then, using the above, run
icanhaz `cheezburger`
jenkinbr
March 20th, 2009, 12:02 AM
alias give_me_teh_lolz='fortune'
You *MAY* need to install some of the extra fortune cookie packages from synaptic for this to really give you 'teh lolz'.
crazyness003
March 20th, 2009, 02:16 AM
too much. :lolflag:
crazyness003
March 20th, 2009, 02:27 AM
alias "shoopdawhoop"="echo BLRAAA"
linuxisevolution
March 20th, 2009, 02:32 AM
alias soud="sudo"
alias die="sudo halt"
alias kill="xkill"
alias iwant="sudo apt-get install"
alias entertainme="xmmc"
alias dance="echo no"
alias whosyourmother="echo your mom"
:D
jenkinbr
March 20th, 2009, 02:39 AM
alias kill="xkill"
May not work because kill is an actual program name.
alias bump='firefox -url http://ubuntuforums.org/showthread.php?t=520091'
linuxisevolution
March 20th, 2009, 02:41 AM
May not work because kill is an actual program name.
alias bump='firefox -url http://ubuntuforums.org/showthread.php?t=520091'
that alias works, I've used it.
winrid@winrid-desktop:~$ find_devon
Are_you_out_of_your_mind?_You_just_had_rm_delete_h im!
winrid@winrid-desktop:~$
SlickRick
March 20th, 2009, 10:31 AM
Heir's sum moar I'v thunk ov
alias hoomin='man'
alias visabl='ls'
alias invisabl='clear'
alias teh_interwebz='ipconfig'
alias internet_tubes='ipconfig'
alias ur_doin_it_rong='false'
alias ur_doin_it_rite='true'
alias ceilin_cat='su'
alias moar='more'
alias monorailcat='mv'
alias pewpewpew='xkill'
http://icanhascheezburger.files.wordpress.com/2008/03/funny-pictures-rabbit-eats-thread.jpg
I couldn't resist :D
GepettoBR
March 20th, 2009, 05:37 PM
alias pewpewpew='xkill'
Awesome :)
alias goodnight_sweet_prince='sudo shutdown -h now'#halt
alias brb='sudo shutdown -r now'#reboot
SlickRick
April 7th, 2009, 09:01 PM
does anyone know how to change bash autput, like instead of "Sorry, try again" for an incorect password it could say "EPIC FAIL, u typedz in teh rong paswurdzor"
jenkinbr
April 7th, 2009, 10:19 PM
I think those are built in to bash and sudo and such. You *could* try to mod them with a hex editor, although I would not try this. Better yet, rebuid them from source. ;)
GepettoBR
April 8th, 2009, 03:50 AM
I think those are built in to bash and sudo and such. You *could* try to mod them with a hex editor, although I would not try this. Better yet, rebuid them from source. ;)
If we're on the subject of rebuilding it from source, we could embed the aliases in the new version, and it would be the birth of a new package: lolbash.
Of course, a part of it'd be Debian-only, since it aliases apt-get... though through a build script we could probably probe the system to see what package manager it uses and select the appropriate aliases for yum, pacman, etc... it would no doubt be a fun project, albeit a completely useless one.
SlickRick
April 8th, 2009, 01:44 PM
I would be up for it, if I knew how to actually do that. I got a cool name though, the :lolflag:-again shell. You see what I did there?
GepettoBR
April 8th, 2009, 01:55 PM
I would be up for it, if I knew how to actually do that. I got a cool name though, the :lolflag:-again shell. You see what I did there?
Yes, I do. And the acronym is cool as well: Lash.
Penguin Guy
April 16th, 2009, 10:36 AM
I'm going to call it lolscript.
I would advise using this (http://ubuntuforums.org/showpost.php?p=7082113&postcount=19) technique of adding lolscript.
Also 'sudo gedit ~/.bashrc' - sudo is not necessary.
sisco311
April 16th, 2009, 10:54 AM
does anyone know how to change bash autput, like instead of "Sorry, try again" for an incorect password it could say "EPIC FAIL, u typedz in teh rong paswurdzor"
Teh Simpsons Already Did It
export VISUAL=gedit && sudo -E visudo
append the Defaults line with , insults
Defaults env_editor, insults
sudo -K
sudo echo insults #type an incorrect password
Password:
Take a stress pill and think things over.
Password:
You gotta go owwwww!
Password:
No soap, honkie-lips.
sudo: 3 incorrect password attempts
or if for a custom message:
Defaults env_editor, badpass_message="EPIC FAIL, u typedz in teh rong paswurdzor!!!"
sudo -K
sudo echo f00l
Password:
EPIC FAIL, u typedz in teh rong paswurdzor!!!
Penguin Guy
April 16th, 2009, 11:08 AM
How to Make a dedicated Lolscript Folder
Feel free to replace lolscript with a name of your choice.
Open terminal and type:
gedit ~/.bashrc
It will open a file; copy and paste this at the end:
# Lolscript:
if [ -f ~/lolscript ]; then
. ~/lolscript
fi
Save the file, quit gedit, go back to the terminal and type:
cat > lolscript
Now exit the terminal, open Nautilus and browse to your home directory. You should see a file called lolscript. You can add any aliases you want in there, and if there are any problems; just delete the file and reboot, all will be returned to normal.
Have fun!
Penguin Guy
April 16th, 2009, 11:53 AM
Somebody has already thought of something like this, lol!
HAI
CAN HAS STDIO?
I HAS A VAR
IM IN YR LOOP
UP VAR!!1
VISIBLE VAR
IZ VAR BIGGER THAN 10? KTHXBYE
IM OUTTA YR LOOP
KTHXBYE
I guess I'll just call it Roflscript instead...
kpatz
April 16th, 2009, 03:17 PM
Here's some I just thunked up:
alias gimme='sudo apt-get install'
alias getlost='sudo apt-get remove'
alias goaway='rm'
alias please='sudo'
alias stupid='bash --restricted'
alias sudont='sudo -k'
alias ciao='logout'
alias moo='apt-get moo'
alias cow='apt-get moo'
jenkinbr
April 16th, 2009, 03:24 PM
Here's some I just thunked up:
alias gimme='sudo apt-get install'
alias getlost='sudo apt-get remove'
alias goaway='rm'
alias please='sudo'
alias stupid='bash --restricted'
alias sudont='sudo -k'
alias ciao='logout'
alias moo='apt-get moo'
alias cow='apt-get moo'
apt-get requires sudo, so
alias moo='sudo apt-get moo'
alias cow='sudo apt-get moo'
GepettoBR
April 16th, 2009, 03:28 PM
Setting
alias OMG_HOW_DID_I_GET_HERE_I_AM_NOT_GOOD_WITH_COMPUTER ='pwd'
isn't very practical.
sisco311
April 16th, 2009, 03:30 PM
apt-get requires sudo, so
alias moo='sudo apt-get moo'
alias cow='sudo apt-get moo'
nope, you can run some of the apt commands as an user:
apt-get moo
apt-cache search moo
apt-cache show xtux
alias jenk='sudo apt-get'
alias in='install'
alias br='brain'
$jenk in br
/bad joke
jenkinbr
April 16th, 2009, 03:33 PM
nope, you can run some of the apt commands as an user:
apt-get moo
apt-cache search moo
apt-cache show xtux
alias jenk='sudo apt-get'
alias in='install'
alias br='brain'
$jenk in br
/bad joke
Last time I tried running apt-get moo, I got an error, something like "apt-get: need to be root"
SlickRick
April 16th, 2009, 04:23 PM
Setting
alias OMG_HOW_DID_I_GET_HERE_I_AM_NOT_GOOD_WITH_COMPUTER ='pwd'
isn't very practical.
:lolflag:
Penguin Guy
April 16th, 2009, 06:27 PM
Sorry just had to post this again. :p
http://ubuntuforums.org/attachment.php?attachmentid=110005&d=1239902826
SlickRick
May 20th, 2009, 09:55 AM
alias huggz='touch'
Penguin Guy
May 20th, 2009, 06:42 PM
alias ceiling_cat_says:='sudo'
alias plz_help_look_for_word='grep'
sisco311
May 20th, 2009, 06:49 PM
alias whattimeisit='notify-send "Time:" $(date +%H:%M)'
lukjad
May 20th, 2009, 07:41 PM
alias SlickRick='cd /dev/null/'
:p ;)
SlickRick
May 20th, 2009, 10:56 PM
alias lukjad007='haha_how_original'
GepettoBR
May 20th, 2009, 11:10 PM
alias both_of_you='children'
lukjad
May 21st, 2009, 12:09 AM
alias GepettoBR='hypocrite'
Marlonsm
May 21st, 2009, 12:26 AM
alias halp_me='man'
only one I can think of right now...
lukjad
May 21st, 2009, 12:40 AM
alias wut='what'
alias what='who'
alias who='how'
alias how='why'
alias why='help'
alias help='mayday'
alias mayday='SOS'
alias SOS='S.O.S.'
alias S.O.S.='confused'
alias confused='confuddled'
alias confuddled='wut'
lukjad
May 21st, 2009, 12:57 AM
alias nuke ='destroy'
alias destroy='obliterate'
alias obliterate='crush'
alias crush='smash'
alias smash='pound'
alias pound='grind'
alias grind='Death_Star'
alias Death_Star='MS_Vista'
alias MS_Vista='BSOD'
alias BSOD='Kernel_Panic'
alias Kernel_Panic='Horsemen'
alias Horsemen='Pestilence'
alias Pestilence='War'
alias War='Famine'
alias Famine='Death'
alias Death='sudo [censored to not get in trouble with the mods]'
lukjad
May 21st, 2009, 01:08 AM
alias fun='good_times'
alias good_times='rock_and_roll'
alias rock_and_roll='music'
alias music='not_rap'
alias not_rap='music'
alias classical='music'
alias BigBand='music'
alias reggae='music'
SlickRick
May 21st, 2009, 09:32 AM
you can only have one alias per command. If you write one and then another one, the second one over-writes it
lukjad
May 21st, 2009, 10:35 AM
Spoilsport. :p
Anyway, I think this thread left the realm of reality a long time ago. ;)
Penguin Guy
May 21st, 2009, 05:47 PM
Spoilsport. :p
Anyway, I think this thread left the realm of reality a long time ago. ;)
Oh no, my lolscript file is very real thank you. :p
The toggler script is also very real. :p
SlickRick
May 21st, 2009, 10:30 PM
I don't really see the point in that toggler script, since you can still use the original commands even if they have aliases
for example,
alias pewpewpew='xkill'
allows me to say pewpewpew when I want to get the little skull up and close an unresponding window. However, typing xkill still has the same effect.
Penguin Guy
May 24th, 2009, 02:03 PM
You have a point - I'll probably keep it on all the time now.
lukjad
May 27th, 2009, 11:55 AM
alias sudu='try_again'
alias sodu='nope'
alias dosu='NO'
alias duso="sigh"
alias sdou='nononononononono'
unicycletim
May 27th, 2009, 12:28 PM
these are awesome. i copied heaps. here are my ones
alias pwn='rm'
alias beyeclean='sudo apt-get autoremove'
SlickRick
May 27th, 2009, 02:59 PM
alias sudu='try_again'
alias sodu='nope'
alias dosu='NO'
alias duso="sigh"
alias sdou='nononononononono'
I laughed at first but this doesn't make sense now. Neither of those are commands, so I don't think you can alias them and what's the point?. If you type in "nope" it would be the same as typing in "sodu" and the terminal would echo "bash: sodu: command not found"
jenkinbr
May 27th, 2009, 04:20 PM
these are awesome. i copied heaps. here are my ones
alias pwn='rm'
alias beyeclean='sudo apt-get autoremove'
I would rather see pwn as:
alias pwn='chown jenkinbr:jenkinbr'
Of course, you would have to replace the 'jenkinbr:jenkinbr' with your <username>:<groupname>
Penguin Guy
May 27th, 2009, 06:05 PM
alias sudu='try_again'
alias sodu='nope'
alias dosu='NO'
alias duso="sigh"
alias sdou='nononononononono'
I laughed at first but this doesn't make sense now. Neither of those are commands, so I don't think you can alias them and what's the point?. If you type in "nope" it would be the same as typing in "sodu" and the terminal would echo "bash: sodu: command not found"
alias sudu='echo "try again"'
alias sodu='echo "nope"'
alias dosu='echo "NO"'
alias duso='echo "sigh"'
alias sdou='echo "nononononononono"'
Better?
lukjad
May 27th, 2009, 09:32 PM
I laughed at first but this doesn't make sense now. Neither of those are commands, so I don't think you can alias them and what's the point?. If you type in "nope" it would be the same as typing in "sodu" and the terminal would echo "bash: sodu: command not found"
alias sudu='echo "try again"'
alias sodu='echo "nope"'
alias dosu='echo "NO"'
alias duso='echo "sigh"'
alias sdou='echo "nononononononono"'
Better?
Thanks. That was what I was going for, but didn't know how. :)
SlickRick
May 27th, 2009, 11:39 PM
I'm confuzzeled
Penguin Guy
May 28th, 2009, 01:09 PM
I'm confuzzeled
When he said 'alias duso="sigh"', he meant to say 'alias duso="echo 'sigh'"'.
SlickRick
May 28th, 2009, 02:41 PM
When he said 'alias duso="sigh"', he meant to say 'alias duso="echo 'sigh'"'.
I figured it out :p
These two came to me in my sleep
alias who_you_gonna_call?='echo ghost busters'
alias stop='echo hammer time'
I'm also trying to think of a way to rickroll someone using the terminal
jenkinbr
May 28th, 2009, 02:47 PM
I figured it out :p
These two came to me in my sleep
alias who_you_gonna_call?='echo ghost busters'
alias stop='echo hammer time'
I'm also trying to think of a way to rickroll someone using the terminal
alias rr='firefox http://www.youtube.com/watch?v=RSsJ19sy3JI'
That should do it.
learningcurb
June 6th, 2009, 10:43 AM
How could this thread be complete without:
alias moo='aptitude -vvvvvv moo'
SlickRick
June 6th, 2009, 11:12 AM
How could this thread be complete without:
alias moo='aptitude -vvvvvv moo'
someone already mentioned that on page three. You obviously didn't read the whole thread and therefore, your life isn't complete :p
DemonBob
June 6th, 2009, 11:23 AM
alias rr='firefox http://www.youtube.com/watch?v=rssj19sy3ji'
that should do it.
LMAO, not meaning to hijack but i did something similar to a college before on one of our Linux Test Servers that he logs into develop web apps. Pasted this in the bottom of his .bashrc
echo "WATCHME"
echo " "
echo "http://www.youtube.com/watch?v=oHg5SJYRHA0"
echo " "
echo " "
echo "Did you watch the video? (y/n)"
read
case $REPLY in
yes|y) echo "You have just been RickRoll'd, Complments of the SysAdmin :)";;
no|n) echo "Awwwwww" exit 0;;
*) echo "Usage:..." ;;
esac
KIAaze
June 8th, 2009, 05:00 PM
alias give_me_teh_lolz='fortune'
You *MAY* need to install some of the extra fortune cookie packages from synaptic for this to really give you 'teh lolz'.
Use the script from here (http://arstechnica.com/open-source/news/2008/02/you-can-has-lolcats-with-ruby-and-gtk.ars) instead of fortune. :)
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.