Question

In: Computer Science

Please answer the following questions thank you!! 1) Assume file1.txt was created more recently than file2.txt....

Please answer the following questions thank you!!

1) Assume file1.txt was created more recently than file2.txt. You can test this using which of the following conditions?

A) [ file1.txt –n file2.txt ]

B) [ file1.txt –nt file2.txt ]

C) [ file1.txt –ot file2.txt ]

D) [ -newer file1.txt file2.txt ]

E) None of these, there is no such test

2) We want to test to see if file1.txt is not readable. Which of these conditions will do so?

A) [[ -w file1.txt && -x file1.txt ]]

b) [[ -r != file1.txt ]]

c) [[ -r –ne file1.txt ]]

d) [ ! file1.txt ]

e) [ ! –r file1.txt ]

Solutions

Expert Solution

Question 1) Answer Option B

Reason: Option A is incorrect because it use '-n' gives you the number and not the date it was created on

Option B is correct because we use nt command in order to check if a file or directory is newer than the other.

Option C is incorrect because it will not display the newer file.

Option D is incorrect because newer it is used to find file within a specified time

Question 2) Answer Option C

Option A is incort because using this command we can check if a file is readible or writable.

Option B is incorrect because because it is not used to check if a file is readible

Option C is correct because using this command we if we read a file and is not equal to the text file.

Option D is incorrect because it does not have any command to check for readable access.

Option E is incorrect because it is not a command for checking the visibility of a file.

If you liked the solution then give a thumbs up ? it will be really appreciated ?


Related Solutions

Please answer all the questions. Thank you Use the following data to answer the questions below:...
Please answer all the questions. Thank you Use the following data to answer the questions below: Column 1 Column 2 Column 3 Y in $ C in $ 0 500 500 850 1,000 1,200 1,500 1,550 2,000 1,900 2,500 2,250 3,000 2,600 What is mpc and mps? Compute mpc and mps. Assume investment equals $ 100, government spending equals $ 75, exports equal $ 50 and imports equal $ 35. Compute the aggregate expenditure in column 3. Draw a graph...
CAN YOU PLEASE ANSWER AS SOON AS POSSIBLE AND PLEASE ANSWER ALL QUESTIONS THANK YOU 1/...
CAN YOU PLEASE ANSWER AS SOON AS POSSIBLE AND PLEASE ANSWER ALL QUESTIONS THANK YOU 1/ What is one similarity and one difference between voluntary motor system that innervate the head versus voluntary motor system that innervate the body? 2/ Does olfactory bulb (direct) relay to primary sensory cortex via the thalamus? 3/ Write a short paragraph using the following terms: opiates; endorphins, pain relief. 4/ In your own words, explain one way in which neuroplasticity allows learning and memory...
Can you please answer all questions and please answer as soon as possible THANK YOU 1/...
Can you please answer all questions and please answer as soon as possible THANK YOU 1/ what do you think wernicke’s area of an infant develops prior to Broca’s? 2/ Create a short paragraph using the following terms: fovea, cones, rods, peripheral retina, acuity, center of the visual field? 3/ Why cone receptors are able to send information about different frequencies of light? 4/why do you think it is easier to name a taste in food than a smell in...
CAN YOU PLEASE ANSWER AS SOON AS POSSIBLE AND PLEASE ANSWER ALL QUESTIONS THANK YOU 1-...
CAN YOU PLEASE ANSWER AS SOON AS POSSIBLE AND PLEASE ANSWER ALL QUESTIONS THANK YOU 1- What is one similarity and one difference between voluntary motor system that innervate the head versus voluntary motor system that innervate the body? 2- Does olfactory bulb (direct) relay to primary sensory cortex via the thalamus? 3- Write a short paragraph using the following terms: opiates; endorphins, pain relief. 4- In your own words, explain one way in which neuroplasticity allows learning and memory...
Please answer the following questions (Show procedure) .... Thank you. 1. Calculate the cutoff frequency of...
Please answer the following questions (Show procedure) .... Thank you. 1. Calculate the cutoff frequency of an active first order low-pass filter with an R1 = 12kOhm and C1 = 0.02 uF. 2. Calculate the cutoff frequencies of a bandpass filter circuit with R = 10 kOhm, C1 = 0.1 uF and C2 = 0.002 uF.
Please answer all the questions. Thank you Define the investment / spending and tax multipliers. Assume...
Please answer all the questions. Thank you Define the investment / spending and tax multipliers. Assume marginal propensity to consume (mpc) is 0.65. Calculate the change in income due to the following: Exogenous / autonomous investment increases by $ 500 billion. Exogenous / autonomous government spending increases by $ 100 billion. Exogenous / autonomous taxes increase by $ 100 billion. All three occur simultaneously. Compare your answers in a), b), and c).
Java question, Please answer everything. Thank you Answer the following questions as briefly (but completely) as...
Java question, Please answer everything. Thank you Answer the following questions as briefly (but completely) as possible: What is a checked exception, and what is an unchecked exception? What is NullPointerException? Which of the following statements (if any) will throw an exception? If no exception is thrown, what is the output? 1: System.out.println( 1 / 0 ); 2: System.out.println( 1.0 / 0 ); Point out the problem in the following code. Does the code throw any exceptions? 1: long value...
Please answer the following questions, your response should be in WORD and not exceed more than...
Please answer the following questions, your response should be in WORD and not exceed more than two pages in length: 1. Describe the differences between express contracts(written and oral), and implied contracts. 2. What are the major elements of a contract? Please describe each of them.
Please answer all the following questions in a paragraph or two. Thank you! What is Netflix...
Please answer all the following questions in a paragraph or two. Thank you! What is Netflix and how has it changed? What are the sources of Netflix’s competitive advantage? Why or why not Netflix? (choose why you choose or choose why you do not choose netflix) If you do not use Netflix do you use a streaming service?
Please answer questions 1 - 5. Thank you. 1. What are the three types of financial...
Please answer questions 1 - 5. Thank you. 1. What are the three types of financial assets? Please give one example or each asset category. 2. What is the difference between commercial papers and treasury bills? 3. List five money market instruments. 4. What are the benefits that are unique to municipal bonds? 5. What are the differences between common stock and preferred stock?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT