Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started