MacJournal

Easy Tips: How to copy files from the terminal

Starting today we will be having easy tips to our “How To” category. Easy tips that are very useful/helpful to daily tasks.

Now to copy files from terminal, open terminal

open_terminal

Then on the command prompt follow this syntax:

cp [OPTION]… SOURCE DEST
cp [OPTION]… SOURCE… DIRECTORY
cp [OPTION]… –target-directory=DIRECTORY SOURCE…

#cp <filename> <destination>
# cp myfile.txt /tmp
#cp myfile.txt /var/log/myfile.txt

or you can check this site for complete reference: http://www.computerhope.com/unix/ucp.htm

November 18, 2009   No Comments

Adjust Screen Brightness from Terminal

I’ve searched for a way to control the display brightness from the command line. I found several AppleScripts that open the System Preferences panel and set the slider, but I wanted a pure command line tool. Maybe someone else is looking for the same solution, so here is what I found:

This blog post discusses has a small commandline tool (written by Nicholas Riley) to set the brightness from Terminal. Just download the binary [4KB] and install it. You can then set the brightness by typingbrightness 0 (to set it to minimum, use 1 for maximum, or any value between).

[Read more →]

September 15, 2009   No Comments

Need someone to talk to? Let Eliza Cheer You

Eliza is a psychiatrist, and best of all, she offers her services free of charge to anyone with Mac OS X. To find her, open Terminal.app and type:

emacs -n

Then press esc then type xdoctor then hit enter, then you will see this:

I am the psychotherapist.  Please, describe your problems.  Each time
you are finished talking, type RET twice.

You can now type any question or anything you want :)

eliza

August 29, 2009   No Comments

Having fun with your terminal

Mainly what most mac users who transfered from windows doesn’t use the terminal like the command line in windows. Its really fun to use the terminal most linux guys out there or should I say all knows the terminal :)

Here are a few tricks you can do with your terminal. Open your terminal or you could search it using your spotlight then type terminal.

To Set volume type this command:

sudo osascript -e ‘set volume 50′

To make it talk type:

sudo osascript -e ‘say “Your System Has Been Hacked”‘

To open an application type:

sudo open /Applications/”Application Name”

To make it sleep type:

sudo osascript -e ‘tell app “Finder” to sleep’

Actually you can do a lot of things with your terminal, almost anything that is on the GUI. Enjoy! :)

August 18, 2009   No Comments

Play Tetris in Mac OSX Terminal

Mac OSX Terminal has many hidden features and one of it is playing Tetris with it.

To get to it all you have to do is:

1. Open Terminal
2. type: “emacs” – wait for the screen to load
3. hit “esc” then type “x”
4. type “tetris” in lowercase letters

Thanks to this site TUAW as a reference for my post.

August 11, 2009   1 Comment

Get Adobe Flash playerPlugin by wpburn.com wordpress themes