Computer Science Fundamentals Operating Systems Subjective
Mar 12, 2013

How do you copy file in UNIX system?

Detailed Explanation

You can copy content of a file into another file by using 'cp' command.
Syntax- cp [options] <old file name> <new file name>
Common option
     -i     prompt and wait for confirmation before proceeding
     -r    recursively copy a file
Ex- % cp <old file name>  <new file name>
 Now you have two copies of the file. They are completely independent of each other.
They each have their own inode, data blocks, and directory table entries.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback