There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash driver drivers error ethernet excel freeze gaming google gpu graphics hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry repair router security slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Fun with the Bash Shell

Reply  
Thread Tools
pr0methius's Avatar
Computer Specs
Junior Member with 23 posts.
 
Join Date: Oct 2008
Location: London
Experience: Advanced
14-Oct-2008, 06:43 PM #1
Post Fun with the Bash Shell
To see the current value of your prompt, just type echo $PS1 in the Bash shell. To change it, simply change the value of that variable.

example: @ the $> prompt type: PS1="Yes, Master? >"

To make the change automatic each time you log in, add that to your ~/.profile and it's done.

But make a note of what the original was as you may wish to change it back at a later date after the novelty wears off.

Last edited by pr0methius; 14-Oct-2008 at 06:49 PM..
pr0methius's Avatar
Computer Specs
Junior Member with 23 posts.
 
Join Date: Oct 2008
Location: London
Experience: Advanced
17-Oct-2008, 06:58 PM #2
Ok, thats hilarious I wrote an article on how to do it and now a friend has come over and used my box and we where talking about the shell and he went straight to the Vi editor and starting remapping stuff..

Now evey-time I open a Shell it says:

SCRIPTY> su -
Password:
fagshell>

How the hell do I fix it?

SCRIPTY> alias
alias coolshell='ksh'
alias fagshell='bash'
alias gayit='nc'
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'
alias porn='nmap'
alias vi='vim'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'

Last edited by pr0methius; 17-Oct-2008 at 07:07 PM..
pr0methius's Avatar
Computer Specs
Junior Member with 23 posts.
 
Join Date: Oct 2008
Location: London
Experience: Advanced
17-Oct-2008, 09:32 PM #3
Ok, I figured this one out on my own it took me a while: nano .bashrc

The PS1 should have been "\u@\h\w$"

He used alias to remap commands to the key-board like this:

alias rape='grep'

So with a bit of tinkering I managed to fix it so now it says;

ha.cker@promethius~$ cat /proc/cpuinfo | rape "model name"
model name : Intel(R) Celeron(R) M CPU 410 @ 1.46GHz
ha.cker@promethius~$ su -
Password:
fag.shell:> evilshell
#

AH HA! && He bet me I couldnt change it back! I dont need Vi pfft! (cant wait to see his face!)

Last edited by pr0methius; 17-Oct-2008 at 10:03 PM..
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 04:18 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.