Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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