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
Get step-by-step solutions from verified subject matter experts
