Question

When will the command cd `find . -type l -name scripts -print` work? If it does,...

When will the command cd `find . -type l -name scripts -print` work? If it does, what do pwd and /bin/pwd display?

0 0
Add a comment Improve this question Transcribed image text
Answer #1
`find . -type l -name scripts -print` is used to print the path of the directory scripts in the current working directory.
cd `find . -type l -name scripts -print` is used to change the directory to the above printed one.

When will the command cd `find . -type l -name scripts -print` work?
This will work only if find command finds any direcory of name "scripts"

what do pwd?
Then pwd is "scripts"

/bin/pwd display?
This is also "scripts"

\color{blue}Please\; up\;vote\;the \;solution \;if \;it \;helped.\;Thanks!

Add a comment
Know the answer?
Add Answer to:
When will the command cd `find . -type l -name scripts -print` work? If it does,...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 2. Create a directory using “mkdir” and change into that directory using “cd”. Next, create another...

    2. Create a directory using “mkdir” and change into that directory using “cd”. Next, create another directory within the new directory and then change into that directory. Now, run cdwithout any arguments, then run pwd. What do you conclude about the cd command when run with no arguments? 3. You won't find the set command in either /bin or /usr/bin, or in any directory listed in the PATH setting. How is it executed then? (That is, if there is no...

  • QUESTION 1 From YOUR home directory, execute a find command string that will locate the file...

    QUESTION 1 From YOUR home directory, execute a find command string that will locate the file called resolv.conf. Include the -exec flag in the find command to cat the file to the screen. Begin your find search from the letc directory Select the correct find command string below that will accomplish this. find /etc-name 'resolv.conf -cat D find /etc-name 'resolv.conf -exec cat 0 find. -name 'resolv.conf -exec cat 0\ find /-name 'resolv.conf' -exec cat 0 QUESTION 2 What find command...

  • Linux 13. Use the command: set | less. What does the set command do? 14. What...

    Linux 13. Use the command: set | less. What does the set command do? 14. What is the purpose of the variables: PS1, HOME, PWD, PATH? 15. Use the command: echo $PS1. Why did you have to use the dollar sign with the variable name? What did it do? 16. Use the command: PS1="This is my new prompt: #". What did it do?

  • LUNIX (Please Label) Exit vi (:q) and from the command line, type viscript4.sh. For this script,...

    LUNIX (Please Label) Exit vi (:q) and from the command line, type viscript4.sh. For this script, we will iterate through all files in the current directory print out their name using the for loop. Example (do not type yet): foriin*;do …;done where the…does some operation on$I, which stands for the current file. To do this, enter the following in your script4.sh file:           #!/bin/bash           for i in *; do                echo $i           done Once the above works, change the for loop to...

  • how do you insert a print command that changes with what name you type? = Syst...

    how do you insert a print command that changes with what name you type? = Syst x Grades for Lewis Dickerson: [Sum X MindTap - Cengage Learning X Python Programming | Facebook X war Python: cengage.com/static/nb/ui/evo/index.html?deploymentid=58296224090012788153144858955&eISBN=9781337560115&id=8110005398.sn CENGAGE MINDTAP Programming Exercise 1.7 Instructions myinfo.py name = inpu 2 age = input 3 print (name Cools Write and test a program that accepts the user's name (as text) and age (as a number) as input. اراء The program should output a sentence...

  • 2. At the command prompt, type ls –l /dev/log and press Enter. What is the file type? Which daemo...

    2. At the command prompt, type ls –l /dev/log and press Enter. What is the file type? Which daemon on Ubuntu Server Linux uses this file and what is its purpose? 3. At the command prompt, type less /etc/rsyslog.conf and press Enter to view the configuration file for the System Log Daemon. Are there any entries that specify facilities, priorities, or log file locations? What does the last line of the file specify? Press q when finished to quit the...

  • I am using Linux and looking for the below scripts. Message script: the first script should...

    I am using Linux and looking for the below scripts. Message script: the first script should display the IP address, machine name and path to the script. (This addition will help me to find your script when I look for it on your server.) Pause script: the second script should pause for 30 seconds. By creating this script separate from the first, we can run it at boot up when a pause might be helpful (so the output from the...

  • Project 4-4 In this hands-on project, you make and view links to files and directories. Switch to...

    Project 4-4 In this hands-on project, you make and view links to files and directories.Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of secret.At the command prompt, type cd samples and press Enter. Next, type ls -F at the command prompt and press Enter. What files do you see? Next, type ls -l at the command prompt and press Enter. What is the link...

  • QUESTION 1 What will be the output of following Unix command: find / -name ‘*’ A....

    QUESTION 1 What will be the output of following Unix command: find / -name ‘*’ A. List all files and directories recursively starting from / B. List a file names * in / C. List all files in / directory D. List all files and directories in / directory QUESTION 2 Which command is used to extract a column/field from a text file / input. A. paste B. get C. cut D. tar QUESTION 3 Which command creates an empty...

  • 2. At the command prompt, type ls –l /dev/log and press Enter. What is the file...

    2. At the command prompt, type ls –l /dev/log and press Enter. What is the file type? Which daemon on Ubuntu Server Linux uses this file and what is its purpose? 3. At the command prompt, type less /etc/rsyslog.conf and press Enter to view the configuration file for the System Log Daemon. Are there any entries that specify facilities, priorities, or log file locations? What does the last line of the file specify? Press q when finished to quit the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT