You will develop a small “text-based shell utility” (“myshell”) for Unix. A “men

You will develop a small “text-based shell utility” (“myshell”) for Unix. A “menu” type shell allows a user to “pick” an item (file or command)from a “menu”. You will display a simple menuYour shell will read a single key “command” entered by the user, Followed by a file or directory number (or [optionally]) partial file name with “name completion” and it will output some system information on the terminal, or run a program (by means of systems calls). The commands you will implement: Edit – opens a text editor with a file. Run – runs an executable program. You should handle parameters. Change – changes working directory. Sort – sorts listing by either size or date (prompt user)You will need to implement:Prev, and Next Operations so that the menu fits on one screen. Store names in an array, Only one pass through directory.
Requirements: full code

Leave a comment

Your email address will not be published. Required fields are marked *