Question

What is the result of giving the which utility the name of a command that resides...

What is the result of giving the which utility the name of a command that resides in a directory that is not in your search path?

Homework Answers

Answer #1

Sol:

It is system dependent.The which utility displays a message showing that the command you are waiting for is not in the list of directories in your searchpath.Since the which utility is actually all about the search path it will not work.

A directory is a file that acts as a folder for other files. And a search path is the sequence of directories in which the shell looks for command to execute and although some directories only contain regular files, and many directories also contain executable files.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Write Linux command lines to do the following: 1. Create a directory with name “yourName_ID” 2....
Write Linux command lines to do the following: 1. Create a directory with name “yourName_ID” 2. Create a file with name “yourLastName.txt” inside the directory created in step.1 3. Write inside the created file exactly the following content (you may use editors such as vim, pico, ….): Linux Lab Lab. ToDo#1 Summer Semester 2019/2020# 4. Display the first 2 lines of the file. 5. Change the permission of the file to read write and execute for owner, groups and others....
When we type in the name of a batch file in Command Prompt, Command Prompt will...
When we type in the name of a batch file in Command Prompt, Command Prompt will look for variables called: Group of answer choices Preset Variables Replacement Variables Permanent Variables Batch Variables We can use this character to pass the output from one command to the next: Group of answer choices | (Pipe) , (Comma) > (Angled Bracket) & (Ampersand) The following is utility tool we can use that are resided in the directory C:\Windows\System32: Group of answer choices IPCONFIG...
5. Write a bash command that will display the name of every file on the Linux...
5. Write a bash command that will display the name of every file on the Linux system whose file contaent contains the string "doug.jones". The command must run in the background, must redirect standard error to /dev/null, and must redirect standard output to ~/out. 6. Write a bash command that will kill all of the even-numbered processes associated with your userid, and no other processes. 7. Write a bash command that will start the program /home/courses/140u-doug.jones/zombie_maker as a background process,...
Linux commands, the answer only about writing commands 1. What is the cd command that will...
Linux commands, the answer only about writing commands 1. What is the cd command that will change the current directory (which is “bob”) to the alice directory using a relative pathname (use the simplest possible relative pathname). Be sure to return to the “bob” directory 2. What is the cd command that will change the current directory (which is “bob”) to the etc directory using a relative pathname (use the simplest possible relative pathname). Be sure to return to the...
Linux Operation SECTION 2 – File and Directory Permissions: FILE PERMISSIONS: What is the command used...
Linux Operation SECTION 2 – File and Directory Permissions: FILE PERMISSIONS: What is the command used to find out which user account you are logged into?      . This command may come in handy in the following exercises. Ensure you are in your home directory of the student1 account. Use the echo command with output redirection to create a file called labfile4 and put the following text in this file: “This is the first line of labfile4”. Using the symbolic notation...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and...
PLEASE DO QUICK LINUX ASSIGNMENT PLEASE ILL THUMBS UP You need to paste the command and the output in a word document and submit it. Part1: 1. Log in to Linux using your user account name and password. 2. If you logged in using a graphical login screen, open a terminal window by clicking on the icon in the lower left corner of the desktop to open the main menu, then selecting System Tools, then Terminal. A terminal window opens....
1. Define the characteristics of a market, command and mixed economies. Provide the name of one...
1. Define the characteristics of a market, command and mixed economies. Provide the name of one nation for each type of economy. Explain why you selected these examples. 2. Define the characteristics of capitalism, socialism and communism. Provide the name of one nation for each type of economy. Explain why you selected these examples. 3. Conduct an Internet search and locate the U.S. unemployment rate at the height of the Great Recession (2009) and at the present time. What is...
How would I go about answering these questions In linux. Please provide the correct linux command...
How would I go about answering these questions In linux. Please provide the correct linux command needed to answer these 4 questions 5. Display total words of each file under your root directory and subdirectories. 6. Change permission of every filename ends “.py” to — write read execute, group - read execute, other - execute 7. Find every line which contains “hello” from your file system, display both file name, line number. 8. Combine files with name “p3.py”, “p31.py”, “p32.py”,...
Name a utility required by a data center. What events might occur to interrupt this utility?
Name a utility required by a data center. What events might occur to interrupt this utility?
TCPDUMP and wireshark questions 1. What is the command to deleting the “host name” when using...
TCPDUMP and wireshark questions 1. What is the command to deleting the “host name” when using tcpdump. 2. What would be the command to view a particular destination (Assume the destination IP address is 216.58.196.99 at port 443) to capture 10 packets? 3. What would be the command to view a particular source (Assume the source IP address is 216.58.196.99 at port 443) to capture 10 packets?
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT