• Copying File and Directory

    Copying File and Directory:

    1. Copy file:

    Syntax:

    # cp [source]filename [destination]

    1. Copy directory

    #cp –r [source]directory [destination]

    to copy a directory into another directory recursively

    1. cp –rf [source]directory [destination]

    to copy a directory forcefully

    syntax used for copy file or directory:

    cp [option] file destination

    option:

    -I : interactive : ask before overwriting file

    -r : Recursive

    -p : Preserve

    -f : forcefully

    More than one file can be copied at a time if the destination is directory

    Syntax:

    cp [option] file1 file2 file 3 Destination

0 comments:

Leave a Reply

.

FEEDS FROM THIS BLOG

FEEDJIT Live Traffic Feed

My Zimbio   Blog Directory - OnToplist.com   Red Hat Enterprice Linux RHCE RHCT RHCA RHCSS  Powered by  MyPagerank.Net  Academic blogs & blog posts   BlogRankers.com  TopOfBlogs  BuzzCritic     Academics  Blog Directory  Hihera.com  Technology Blogs - Blog Rankings   Visit blogadda.com to discover Indian blogs  Academics Blogs  Computers (Linux) - TOP.ORG    Rallyshare    Yahoo bot last visit powered by MyPagerank.Net     The Weblog Review  blogarama - the blog directory  SEO services    Academic blogs & blog posts