19 12 / 2011

Open Terminal from Finder

Settings -> Keyboard -> Services -> New Terminal at Folder

(restart Finder with killall Finder if it doesn’t work)

Tags:

Permalink 12 notes

09 11 / 2011

Transfer files with terminal

source: http://hintsforums.macworld.com/archive/index.php/t-29244.html

copy from a remote machine to my machine:
scp user@192.168.1.100:/home/remote_user/Desktop/file.txt /home/me/Desktop/file.txt

copy from my machine to a remote machine:
scp /home/me/Desktop/file.txt user@192.168.1.100:/home/remote_user/Desktop/file.txt

copy all file*.txt from a remote machine to my machine (file01.txt, file02.txt, etc.; note the quotation marks:
scp "user@192.168.1.100:/home/remote_user/Desktop/file*.txt" /home/me/Desktop/file.txt

copy a directory from a remote machien to my machine:
scp -r user@192.168.1.100:/home/remote_user/Desktop/files /home/me/Desktop/.

08 11 / 2011

Changing Configure lion terminal color

Just changed my terminal colors based on the theme installed from
http://blog.toddwerth.com/entries/13

After running the terminal script go to terminal settings to make it the default theme. I changed the font size to 10 and the background to dark grey.

The colors didn’t show at first, had to include this line in .profile “export CLICOLOR=1”; Its mentioned in the comments below the page.

The colors doesn’t show when you ssh.
Heres the fix: http://www.henrycipolla.com/blog/2011/07/fixing-colors-in-the-terminal-app-on-os-x-lion/

  • Terminal Preferences
  • Settings->Advanced
  • Change Declare terminal as xterm-color256 to xterm-color

11 9 / 2011

Switching Tab in Mac Terminal

You can also cycle tabs left and right in Terminal.app with ⌘{ and ⌘} (listed in the Window menu), or (my preference) ⌘⇧← and ⌘⇧→.

(http://ciaranwal.sh/2007/12/10/tab-switching-in-terminal)