It's a Good Linux Morning 001 - Own Your Command Line!
A buddy and I are are going to do a quick Linux podcast each week that will talk about some modern Linux info as well as some Linux commands. It's intended audience is the new Linux enthusiast.
Feel free to send comments to
itsagoodlinuxmorning@gmail.com
or
itsagoodlinuxmorning@tyrannozaurus.com
and obviously you can post below if you prefer. Advice and comments are welcome.
You can listen to episode one here: http://www.tyrannozaurus.com/?q=node/1030
Show Notes:
-the ls command and it's switches (-l -h -r -S)
-setting yourself up for a good command line experience
-Why? easy to see files vs folders
-possible to put prompts on different machines in different colors.
-Exercises using escape characters
SAVE=$PS1
PS1=$
PS1="$ "
PS1="\u@\h \W> "
PS1="[\t][\u@\h:\w]"
-Add color with:
\[\033[1;34m\]
-the 1;34 part is the color
-If you've messed things up you can restore you prompt back to what it was by typing:
PS1=$SAVE
-Add color when using "ls" by adding this to you ~/.bash_profile
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
-When you have your commandline the way you want it save it in ~/.bash_profile (or sometimes ~/.bashrc)
To load your changes without exiting out of the terminaltype:
source ~/.bash_profile
Show Links:
-Bash info: http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/index.html
-Fancy and creative Bash prompts: http://www.gilesorr.com/bashprompt/prompts/
-The 2D deathmatch game that I thought was quake but isn't: http://artax.karlin.mff.cuni.cz/~brain/0verkill/
-ASCII 3D Quake: http://webpages.mr.net/bobz/ttyquake/
- Login or register to post comments
- Email this page
