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

Share to Friends:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • RSS
  • LinkedIn
  • Live
  • MySpace
  • Slashdot
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Tumblr
  • Twitter

0 comments

There are no comments yet...

Kick things off by filling out the form below.

Leave a Comment

Get Adobe Flash playerPlugin by wpburn.com wordpress themes