Question
C++ Write a program that will provide help with basic unix commands. The program should contain a loop that asks the user to input a
C++
Write a program that will provide help with basic unix commands. The program should contain a loop that asks the user to input a unix command or enter quit to stop the program. Your program should recognize at least 6 of the basic unix commands we discussed in class on Week 1 (e.g., ls, pwd, etc.). Your program should print out the brief description of the command the user entered. If the user enters a command that your program does not recognize, then print a message to that effect.
You must use the C++ string data type for your input variable.
Hint: use the unix man command to get the brief description for the commands you plan to put in your program. The brief description is the text that appears in the NAME section of the man page, after the command name followed by two hyphens (). For example:
NAME
pwd -- return working directory name
*Unix commands* : pwd, init, sort, Is, tail, head.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started