Question

What is the difference between ls /etc and ls -R /etc ?

What is the difference between ls /etc and ls -R /etc ?

Homework Answers

Answer #1

The ls command is a basic command in the UNIX operating system which is used to list or display the files or directories in the current working directory.

$ ls /etc

In the above command, the directory /etc is passed as an argument to the ls command and it will display the list of files in etc directory.

$ ls -R /etc

In the above command, -R is an option of the ls command which lists all files recursively, descending down the directory tree from the given path.

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
What is the difference between LS coupling and JJ coupling?
What is the difference between LS coupling and JJ coupling?
For r and r2 a) In details, describe the difference between r and r2 b) Explain...
For r and r2 a) In details, describe the difference between r and r2 b) Explain how r and r2 should be interpreted c) Prove an example.
PART 4: Learn about commands to navigate the directory tree structure: use the ls –ali /  ...
PART 4: Learn about commands to navigate the directory tree structure: use the ls –ali /   command to review the contents of the / directory Review the Linux Filesystem Standard (FSSTD) and document the following directories’ contents / ------- |--bin |--boot               |--dev               |--etc |--home               |--lib               |--mnt               |--opt               |--root               |--sbin               |--tmp               |--usr               |--var 3. use the cd etc  OR cd /etc  to change your default directory to the etc directory 4. use the...
What is the difference between an independent and a dependent t-test? What is the difference between...
What is the difference between an independent and a dependent t-test? What is the difference between a one-tailed and two-tailed test? What is the difference between a t-test and ANOVA?
. What is the difference between hedging and speculating? . What is the difference between “margin”...
. What is the difference between hedging and speculating? . What is the difference between “margin” and “maintenance margin” on a futures contract?
What is the difference between Diabetes 1 and Diabetes 2?. What is a prevention plan to...
What is the difference between Diabetes 1 and Diabetes 2?. What is a prevention plan to decrease the risk of developing diabetes? What re the common risk factors associated with the development of cardiovascular disease and stroke?, What is a 7-step plan to decrease the risk of developing disease of the circulatory system? “What Is Cancer? Please include questions on the following: Roles of genes in cancer Difference between normal cell and cancer cell Different types of cancer (sarcoma, lymphoma,...
Program R Please write about the difference between the assignment operators <- and <<- ? You...
Program R Please write about the difference between the assignment operators <- and <<- ? You need to refer to help(assignOps) for this answer.
Star A: Distance: 30 light years Luminosity: 0.798 LS Color: 515.5 nm Star D: Distance: 748...
Star A: Distance: 30 light years Luminosity: 0.798 LS Color: 515.5 nm Star D: Distance: 748 light years Luminosity: 0.466 LS Color: 555.6 nm Star C: Distance: 406 light years Luminosity: 0.371 LS Color: 573.5 nm Star R: Parallax: 0.0441" Flux: 5.18E-11 W/m2 Color: 512.4 nm Calculate these properties of Star R: Distance in light years: Luminosity in Ls: Temperature in Kelvin: Which of these stars is the coldest? Which star is the hottest?
What is the difference between ”AND” and ”OR”? For example, is there a difference between ”rolling...
What is the difference between ”AND” and ”OR”? For example, is there a difference between ”rolling an Even AND an Odd,” and ”rolling an Even OR an odd.” Explain
Explain the basic difference between a vector and a data frame in R. Discuss the appropriate...
Explain the basic difference between a vector and a data frame in R. Discuss the appropriate use for each and provide an example to illustrate proper use.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT