Microshell project - an application in C which is a simple shell program (under Linux) with basic functions like displaying a prompt, handling cd command, exit, help etc.

Closed job
no avatar
Hops2
Employer
Job category:
Desktop/web applications
Expected budget:

125.00 PLN

Preferable skills:
Published:
Valid until:

Job description

Project - Microshell - requirements specification

Task specification

The assignment is to use the C language to write a simple shell program that runs under Linux - Microshell. The project is mandatory for all students and must be passed. This program should take commands as input and then perform actions according to their contents. The shell should:

Mandatory Points Description

2 points. ✓ display a prompt of the form [{path}] $, where {path} is the path to the current working directory;

2 pts. ✓ handle the cd command, which works similarly to the cd we know from the bash shell;

2 pts. ✓ handle the exit command, which terminates the shell program;

2 pts. ✓ operate the help command, displaying information on the screen about the author of the program and the functionality it offers;

6 pts. ✓ accept commands that refer by name to programs located in directories described by the value of the PATH environment variable, and allow these scripts and programs to be called with arguments (read: fork() + exec*());

4 pts ✓ output an error message when it is impossible to interpret the command correctly;

Required functions: