The command is to be done in UNIX Assuming there already exists a file in the cu
ID: 3749263 • Letter: T
Question
The command is to be done in UNIX
Assuming there already exists a file in the current directory called "tests" (don't count the double quotes) Please provide a single "find" command line that creates a "tests" file (without double quotes) in each subfolder of the current working directory. Create the "tests" files in a way that altering the contents of one of the "tests" files will alter the contents of all other "tests" files as wel. in addition, assure that when any of the "tests" files are deleted, it will not affect the other "tests" files. Please briefly explain how this comand will perform the task above.Explanation / Answer
Well to answer the first part of your question, this is how you can do it:
find . -type d -exec cp tests {} ;
Now let's say your current directory is /home/user/test_dir
All your changes will be propagated through all the tests files.
This is how I was able to do it.
Hope this helps ;)