Mourning the loss of our friend, WhitPhil.
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 audio blue screen boot bsod connection crash dell desktop driver drivers dvd email error excel excel 2003 firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem processor recovery router screen slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Fun with the Bash Shell

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
pr0methius's Avatar
Computer Specs
Junior Member with 23 posts.
 
Join Date: Oct 2008
Location: London
Experience: Advanced
14-Oct-2008, 05: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 05:49 PM.
pr0methius's Avatar
Computer Specs
Junior Member with 23 posts.
 
Join Date: Oct 2008
Location: London
Experience: Advanced
17-Oct-2008, 05: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 06:07 PM.
pr0methius's Avatar
Computer Specs
Junior Member with 23 posts.
 
Join Date: Oct 2008
Location: London
Experience: Advanced
17-Oct-2008, 08: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 09:03 PM.
Closed Thread Bookmark and Share

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.

Smart Search

Find your solution!



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


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 07:43 PM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.