Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Use the link and symlink functions to create both a hard link and a symbolic link to a file. Verify the success of each

image text in transcribed

1. Use the link and symlink functions to create both a hard link and a symbolic link to a file. Verify the success of each function call using perror. The command line for your program should be: cmd filename hard Link Name symbolicLinkName These will correspond to argv[1], argv[2] and argv[3]. Assign each of these to meaningful variable names. Then turn the 2nd argument into a hard link reference and the 3rd argument into a symbolic link. Do the following test cases using different file names for each case: a. filename exists and the other two files don't. b. The filename exists and the other two files also exist. C. None of the files exist. Summarize your results for each case indicating whether or not you were successful in creating the hard link and/or the symbolic link and whether your result was reasonable

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

ISBN: 0201844524, 978-0201844528

More Books

Students also viewed these Databases questions

Question

2. What, according to Sergey, was strange at this meeting?

Answered: 1 week ago

Question

3. Are our bosses always right? If not, what should we do?

Answered: 1 week ago