Homework Help Question & Answers

From the /root directory try the following “ls” command, examine the results and explain. a) ls...

From the /root directory try the following “ls” command, examine the results and explain.

a) ls /.*

b) ls .*/

c) ls /*/ -d

d) ls /* -d

e) ls * -d

0 0
Next > < Previous
ReportAnswer #1

The ls command in general is used to list out the contents of a particular directory in which we are correctly working in. Using -d will just list out the directory and their contents with them.

a) ls /.* - this will list out all the files which have a / as a last letter with any type of extension and it will thus actually look for sub files in the different directory present in the current directory.

b) ls .*/ - this will list out all the files in the present directory and will look into the directories as well for files.

c) this will go 2 level deep into the directory and list out all the files present their and thus not going any further.

d) this will go 1 level deep into the directory and list out all the files present their and thus not going any further.

e) work similar to the ls command.

Know the answer?
Add Answer of:
From the /root directory try the following “ls” command, examine the results and explain. a) ls...
Your Answer: Your Name: What's your source?
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
  • Building a command line interpreter (myshell)

    Have to use C or C++ for the following. I need help with the Linux/Unix system commands necessary to do this. I can write any necessary C code, but do not know whatsystem functions I need to implement this problem.Assignment: Implement your own command line interpreter like a Unix shell program - an application program that gets commands from a keyboard and uses the system callinterfaces to invoke OS functions.Shell should support the following:a) Support exit or stop your shell...

  • 4 part ftp (file transfer protocol) command problems

    i cant figure these out i keep getting themwrong1)a) Type a command to upload all files with theextension ".txt" in the directory "ece1331" located in the currentworking directory of the local machine to thecurrent directory onthe remote computerb) To change the file transfer mode from ascii to binary during anFTP session we can use which of the following commands? (Select allcorrect answers.)a. binb. binaryc. bd. asc>>bine. ascii>>binaryf. a2bc) Which of the following file types should be transferred inbinary mode during...

  • 3 Part File transfer protocol (FTP) command problem

    1)(a)Type a command to upload all files with theextension ".txt" in the directory "ece1331" located in the currentworking directory of the local machine tothe current directory onthe remote computer(b) To change the file transfer mode from ascii to binary during anFTP session we can use which of the following commands? (Select allcorrect answers.)a. binb. binaryc. bd. asc>>bine. ascii>>binaryf. a2b(c) Which of the following file types should be transferred inbinary mode during an FTP session? (Select all correctanswers.)a. .rft (Rich Text...

  • Java Phone Directory

    I need help to get the following into the below program:I need class Entry that has private variables name, homePhone, workPhone, cellPhone (String)I need constructor and methods isEqual to compare names and workPhones of two Entry objects (if one of them is equal, it returns true, otherwise - false)Also I need the method toString to print data of instance of class Entry.Also you need class PhoneDirectory - it has main method. Here I have Vector of elements type Entry (directory)I...

  • Draw the structure of the product that results from complete reduction of the following...

    Draw the structure of the product that results from complete reduction of the following compounds by sodium borohydrideA. CyclohexanoneB.3-cyclohexene-1-oneC. 1,4-butanediolD. 4-oxohexanalE. Acetophenone

  • Command Economies

    Command economies typically suffer fromA. unemployment, but not underemployment.B. both unemployment and underemployment.C. underemployment, but not unemployment.D. neither unemployment nor underemployment.E. none of the above.

  • Write a C program for each of the following questions.

    Write a C program for each of the following questions. Create anarchive file foryour solutions and email the archive file to me.1. Write a C program that only lists all files in the currentdirectory and all files insubsequent sub directories.2. Write a C program to print the lines of a file which contain aword given as theprogram argument (a simple version of grep UNIX utility).3. Write a C program to emulate the ls -l UNIX command that printsall files in...

  • unix commands ( easy ones)

    develop a single command line to achieve the task required :(a) Print out the number of files in the directory /usr/bin whose names start witheither with c or f.(b) Print out the long listing (i.e. the kind of information generated by ls -l) ofthe largest file (in terms of bytes) in the directory /usr/bin. Make use of the -Soption of ls in your solution.(c) Perform the same task required by (b), but do not use the -S option of ls,...

  • Find the results of the following substitutions. Just give the answer and explain the reasons if ...

    Find the results of the following substitutions. Just give the answer and explain the reasons if the result is undefined: e) ((∀

  • Task 5: Managing Groups Execute the following commands in the root command-line environment: # fo...

    Task 5: Managing Groups Execute the following commands in the root command-line environment: # for i in jones sam henry john smith; do useradd $i; done Check whether users jones sam henry john smith are created # tail /etc/passwd # groupadd friends # for i in jones sam henry john smith; do gpasswd -a $i friends;done Check whether users jones sam henry john smith are added to group friends # tail /etc/group # userdel henry # usermod -L jones #...

Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.