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 xv6(sh.c) so that all commands entered by the user are
logged to a file called sh_history.
The commands should be logged into the file before they are executed.
If sh_history 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 xv6 is re-booted, the previous command history can be either kept or cleared.
Write a program called history.c. This program will read from sh_history and display the history
of the commands.
Sample run:
 Extend the shell implementation in xv6(sh.c) so that all commands entered

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!