Question: Extend the shell implementation in xv 6 ( sh . c ) so that all commands entered by the user are logged to a file
Extend the shell implementation in xvshc so that all commands entered by the user are
logged to a file called shhistory.
The commands should be logged into the file before they are executed.
If shhistory does not exist, your program is responsible for creating it
When extending shell implementation, you can only add new statements. You should not
modify the existing shell functionality.
When xv is rebooted, the previous command history can be either kept or cleared.
Write a program called history.c This program will read from shhistory and display the history
of the commands.
Sample run:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
