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
  • do numbers 4-8 4. Given any directory, use the Is command to display: • all files...

    do numbers 4-8 4. Given any directory, use the Is command to display: • all files and sub-directories starting with the letter "D" (note do not list anything in any sub-directory) • its immediate sub-directories (sub-directories only, and no other ordinary files) its immediate hidden sub-directories only - take a screenshot (#3-3) that clearly shows the command and the result. 5. Assume that the following files are in the working directory: $ ls intro notesb ref2 section 1 section3 section4b...

  • Question 1) Copy file called sortfile from my home directory. The file contains three columns of...

    Question 1) Copy file called sortfile from my home directory. The file contains three columns of information : username, uid number and group name respectively, separated by a field separator. Will the following command sort the file on the group name field? sort -t! -k3 sortfile A) Yes B) No Question 2) Copy the file called sortfile from my home directory. The file contains three columns of information : username, uid number and group name respectively, separated by a field...

  • 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...

  • A filename con comprise multiple embedded dots (e.g., a.b.c.d.e). True False A device file is not...

    A filename con comprise multiple embedded dots (e.g., a.b.c.d.e). True False A device file is not really a stream of characters and doesn't contain anything at all. True False Relative pathnames begin with the root directory. True False Running the ls -a command uniquely identifies directories and binary executables. True False What is the result of running mkdir -p share/man/cat1 from the command line? a. It creates the directory share. b. It creates the directory share/man. c. It creates the...

  • 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...

  • 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...

  • Part 3. Self Test 3 from the textbook 1) When you enter following command, what happens...

    Part 3. Self Test 3 from the textbook 1) When you enter following command, what happens and why? S catdog 2) What results from the following commands? A) S who | grep SUSER B) 5 grep \SHOME filel C) $ echo >> filel D) S echo '* >> filel E) S ps F) S. files G) S set noclobber H) S set -o 1) $ chmod +x file2 3) How can we change the prompt to be Next? in both...

  • 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,...

  • 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...

Free Homework 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.
Share Your Knowledge

Post an Article
Post an Answer
Post a Question with Answer

Self-promotion: Authors have the chance of a link back to their own personal blogs or social media profile pages.