• Home
  • Blog
  • You will develop a small “text-based shell utility” Menu in C

You will develop a small “text-based shell utility” Menu in C

0 comments

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 menu

Your 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.

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}