Tag Archives: Terminal
Create your own commands using alias
In Unix based operating systems it is quit easily create your own convenient commands using alias. This is particularly helpful when you use certain shell commands in a regular basis. To create alias list you should create or edit ~/.bashrc. Here is how you do it. Open the Terminal.app cd vim .bashrc If the file [...]
Alternative to multiple tabs in OS X Terminal.app – screen
Unfortunately, the Terminal.app comes with OS 10.4 doesn’t have the tab functionality. Most of the Mac users who like to work on several instances of shell without cluttering the desktop use iTerm. However, there is a nother alternative to this called screen. screen is a powerful shell command which lets you open multiple instances of [...]
Synchronize folders using rsync and ssh
Rsync is a fast and extraordinarily versatile file copying tool. It can copy locally, to/from another host over any remote shell, or to/from a remote rsync daemon. It offers a large number of options that control every aspect of its behavior and permit very flexible specification of the set of files to be copied. It [...]
Shutdown your Mac using a terminal command
The shutdown command comes in handy if you want to shutdown or reboot your Mac at a specific time. Here are some of the examples. You should be a super user to use these commands. sudo shutdown [options] when [message] Some examples. Shutdown immediately: sudo shutdown -h now Reboot immediately: sudo shutdown -r now Shutdown [...]
Setup a secure ftp server for remote access on OS X
Recently quite a number of forum members asked about how to transfer large file between remote locations. The online services such as DropBox and Wuala do a good job but if you already have a Mac or a Linux machine, it is so much easier and also secure to setup your own FTP (File Transfer [...]
Creating Aliases for the Terminal.app
If you are using certain commands on the Terminal.app in a regular basis, it is a good ideal to create aliases to increase your productivity. Here is how you do it. Open the Terminal.app from Applications > Utilities > Terminal.app To create/Open .bashrc, type vim .bashrc Press i to change vim to edit mode and [...]
Use find command to delete multiple files
If you are comfortable using the Terminal.app here are some examples of how you could use the find command to delete multiple files. Delete a folder(s) in the current location including sub directories with a specific name. find . -name "Folder Name" -exec rm -rf {} \; Delete file(s) in the current folder with specific [...]
A good Leopard Terminal.app theme
I got fedup with the Apple’s default terminal and the color sheme for that matter. If you are spending lot of time on the Terminal perhaps it is a good idea to look for a good theme. Check out the theme from this website.
How to update Rails on OS X
Since Apple released Leopard a while back, theĀ Ruby on Rails team has released several updates. Here are the commands to update the Rails on the terminal. $ sudo gem update –system $ sudo gem install rails $ sudo gem update rake Happy Railing!
How to get rid of the multiple entries in “Open with” menu?
Copy and paste the following code on the Terminal.app and hit enter. /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user Update: It sounds like the above trick does not work with Leopard. The Leopard users should execute the following command on the Terminal. You may have to sudo to work this properly. locate [...]