You are here: Articles > Apple Mac > Apple Mac

 See more articles about "Apple Mac "

Mac OS X command line tab completion

 

The command line completion feature is turned on by default on Mac OS X systems, you only need to know how to use it.

When 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 directory contains these two directories: Backup files, and Books. If you want to switch into the Backup Files directory, type:



cd Ba<tab>



where represents the tab key. Note that if you just type cd B there is an ambiguity since there are two matches. In this case, the shell will list the matches and return you to the same command line state as before you typed the tab key.



A common problem in using command line interfaces on systems with graphical interfaces is that spaces in filenames, while simple in a GUI, complicate things in a command line because shells typically use a space to separate command line parameters. The shell is smart enough to place a backslash before a space in the subsequent autocompleted command line, so the finished command will become:



cd Backup\ files

 

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 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

Convert Mac OSX DMG CD or DVD image to ISO format to burn on Windows
H3If you download a DMG file and need to write it to a CD or DVD but don't have the necessary drive on your Mac, you can convert it to the Window's friendly ISO format using the hdiutil command./H3PThe hdiutil command is only available in Mac OSX so these steps must be performed on the Mac sid