Showing posts with label terminal. Show all posts
Showing posts with label terminal. Show all posts

Friday, August 29, 2014

Turn off the spotlight and turn it on

Turn off the spotlight and turn it on using these commands in terminal.
sudo mdutil -i off

sudo mdutil -E /

Tuesday, October 22, 2013

Install wget in Mac using terminal

This is my history from the terminal installing wget in mac

210  which wget
  211  curl -O http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.gz
  212  tar -xzf wget-1.13.4.tar.gz
  213  cd wget-1.13.4
  214  ./configure --with-ssl=openssl
  215  make
  216  sudo make install
  217  wget --help
  218  cd .. && rm -rf wget*
  219  ls
  220  history

Monday, June 17, 2013

Create SSH alias

Pretty easy!
In terminal do:
vi ~/.ssh/config #add the following lines Host myserver User username HostName host.server #then esc, :wq # Then ssh myserver should do the magic.
-->

Tuesday, February 14, 2012

Screen Capture in Mac using Terminal

I figured, there should be some kind of terminal script out there which enables us to take the screen capture of the desktop. This will become real handy when we need to produce consistent screenshots for the Google Earth Images for my results. Furthermore, in order to crop it nicely, there is a code too!
http://usefulcodes.blogspot.com/2011/11/using-imagemagick-shell-command-to-crop.html
screencapture ~/Desktop/test.png


Wednesday, July 6, 2011

Close mac Terminal after you are done

The exit command:
It works if the following setting is done:
Terminal
>Preferences
>Settings
>Shell
>Prompt before closing: never
or
> When the shell exits:
select: close if the shell exited cleanly

The following kills the terminal:

killall Terminal

So, if I want to kill the terminal after I am done, I will simply add:
killall Terminal
instead of kill

Thursday, March 18, 2010