need help with unix commands
-
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 like 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 -
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 like 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 nameNo, we don't do your homework. If you've made an honest attempt and are stuck on some detail, come back, show us your code and ask a specific question.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
-
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 like 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 nameStart with the basics and build on it gradually. The first thing you need is a program that accepts a string from the user and checks to see if is the word "quit". If it is anything else then print "unknown command" and go back and wait for the next input. If it is "quit" then exit the program. Once you have that working you can add the other commands one at a time, testing the program after each one.
-
Start with the basics and build on it gradually. The first thing you need is a program that accepts a string from the user and checks to see if is the word "quit". If it is anything else then print "unknown command" and go back and wait for the next input. If it is "quit" then exit the program. Once you have that working you can add the other commands one at a time, testing the program after each one.
Something is definitely wrong here. This is the most simplest, succinct explanation that could be offered, so why in the crap is it not being taught/understood in the school system? Is it the students or the instructors that are to blame?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
-
Something is definitely wrong here. This is the most simplest, succinct explanation that could be offered, so why in the crap is it not being taught/understood in the school system? Is it the students or the instructors that are to blame?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
Well said.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment "Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst "I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
-
Something is definitely wrong here. This is the most simplest, succinct explanation that could be offered, so why in the crap is it not being taught/understood in the school system? Is it the students or the instructors that are to blame?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles