Question
Write a simple program called hello.c and compile it and create executable file named hello. Write a C program for sequence of following task. By
Write a simple program called hello.c and compile it and create executable file named hello. Write a C program for sequence of following task. By using system call, build following directory structure:
Dir1<--/home/username-->Dir2-->Dir21
By using system calls, copy hello file under ~/Dir2/Dir21/ By using system calls, make a symbolic link named toDir21 to directory Dir21 By using system calls, make a symbolic link named toHello to executable file ~/Dir21/hello
Execute hello by using symbolic link toHello. Try to delete a file, make directory by using symbolic link toDir21.
PLEASE WRITE IN C AND DO NOT USE FSTREAM OBJECTS(fopen, fclose, etc).
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