Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can someone help me coding ls & ls with arguments. (Or I would really appriciate

ID: 3664935 • Letter: C

Question

Can someone help me coding ls & ls with arguments.

(Or I would really appriciate coding all the requirements but it'd be tough haha)

So just ls & ls w/ args. would be good enough.

Thank you in advance.

Write a shell program in C similar to "csh" that takes commands from the keyboard. In particular, your shell prompt must be the current time (instead of. say, % as is common in UNIX) ake it simple; that is, do not allow it to handle background p it can ignore the control-C key, and especially, do not design it to interpret shell scripts. Make it simple; that is, do not allow it to handle background processes You will need the following svstem calls: fork waitpid one of execv, execve, execvp (read the manual pages) You must NOT use the C library function "system" Your shell MUST support, at minimum, the following commands: o The internal shell command "exit" to terminate the shell o Is, with no arguments s, with arguments (e.g., Is -l) o echo

Explanation / Answer

WITH execvp(),execv(),execve() :

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote