Basic C Program coding task in 1 to 2 days

Job ID: 39638836

Budget: $30 – $50 AUD

A simple program needs to be written in C language that functions as a basic Command Line Interface (CLI) shell in a Linux environment. The program should: (1) continuously prompt the user for input, (2) tokenize the input into a command and arguments using functions like strtok(), (3) handle a built-in command cd to change directories using chdir(), (4) use fork() to create a child process and execvp() to run external commands, and (5) use wait() to pause the parent process until the child completes, then display the child’s exit status. The CLI should exit cleanly when the user types exit or sends an EOF. Input should be read using fgets() and the implementation must be case-sensitive. The software must compile using GCC on Linux (e.g., Ubuntu), and standard system calls such as perror() should be used for error reporting. All source code should be clearly structured and well-commented. Sample starter code and documentation (man page references) will be provided. Experience with Linux system-level programming is essential.
Related categories: C Programming Software Engineering