You are required to write a program that will copy all files under the given folder to another one. In order to be able to complete this assignment, you have to research how to obtain the list of files in a directory in Linux. You must copy each file in a separate process. Folder name should be obtained from the arguments. You must perform all error checks. Submit a single C file. Regards

LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
5th Edition
ISBN:9781337569798
Author:ECKERT
Publisher:ECKERT
Chapter14: Security, Troubleshooting, And Performance
Section: Chapter Questions
Problem 6RQ
icon
Related questions
Question

You are required to write a program that will copy all files under the given folder to another one. In order to be able to complete this assignment, you have to research how to obtain the list of files in a directory in Linux. You must copy each file in a separate process. Folder name should be obtained from the arguments. You must perform all error checks. Submit a single C file.

Regards

 

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L