You are here: Articles > Apple Mac > Apple Mac

 See more articles about "Apple Mac "

Mac OS X change the terminal window title

 

The title of the Mac OS X terminal window can easily be changed. This can be useful when running a script or when using multiple terminal windows for different purposes to easily identify them when switching between applications and windows.

In the terminal window, from a bash prompt (the default shell) or in a bash shell script, use the following command to change the terminal window title to Tech-Recipes rules:



echo -n -e "\033]0;Tech-Recipes rules\007"



You can place (just about) any text in place of Tech-Recipes rules including the contents of a variable. For example:



name=`hostname`

echo -n -e "\033]0;$name\007"



This will change the title of the terminal to the hostname of the computer running the shell.

 

Also see ...

Mac OS X right click single button mouse
H3A stumbling block for those souls who have been reared on Windows systems but have seen the light and moved to a Mac is the single button mouse. But wait, there's no need to rush out and buy a two button mouse just for this./H3PTo simulate a right mouse button click while using a one button

Mac OS X command line tab completion
H3The command line completion feature is turned on by default on Mac OS X systems, you only need to know how to use it./H3PWhen typing a command in the shell of a terminal window, you can simplify your life with the file/directory tab autocompletion feature. Consider that the current director

Mac OS X recover lost root password
H3For the sake of security, recommendations say to have unique, complex passwords. Most people have a hard time remembering these and will eventually forget one. Forgetting the root password on a Mac system can seem devastating, but this recipe will show an easy way to recover./H3PIf you hav

Mac OS X increase or decrease a web browser font size
H3Some web pages may use a font size that doesn't render properly in different browsers on various platforms. If you find yourself squinting at a web page, this simple keyboard shortcut can help./H3PTo increase the font size of the current web page, press span style="font weight: bold"comma

Copy music files from your ipod using only the command line.
H3Copying files from your iPod to your Apple system is easy. Here are the commands./H3PAfter seeing a a href="http://www.tech recipes.com/entertainment_tips1310.html" target="_blank" class="postlink" rel="nofollow"recent tutorial on copying files from your iPod to your PC/a, I wanted to s