Answered You can hire a professional tutor to get the answer.

QUESTION

The UNIX which command can be used to show the full pathnameof the executable program of a UNIX command. For example, when you enterwhich grep, you...

The UNIX which command can be used to show the full pathnameof the executable program of a UNIX command. For example, when you enterwhich grep, you will see /bin/grep. This means that the code of the grep programis in the executable file /bin/grep. When you execute the grep commandwithout specifying any arguments, the command will print out the syntax of thegrep command.One student copied the executable file /bin/grep to his home folder, and namedthe copy mygrep. He then changed his current working folder to his home folder.Both of the above steps were performed correctly.However, when he entered the command line mygrep using his terminal to executethe copied file, he got the following error message:-bash: mygrep: command not found.Explain why he got such an error message.In your answer, clearly state the relevant shell functionality and give enoughreasoning to explain why.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question