"ls" command is showing all the subdirectoary and files
which are present in the current directoary, i want to cut
only directoary name. How to cut only name ?

Answer Posted / rakesh

ls -lrt | grep '^d'

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you go to a directory in unix?

492


What are the devices represented in unix?

502


Is unix still relevant?

547


Explain how and when a DNS request is solved when a user tries to surf to the site www.abcdeg.in .Assume the user machine uses a local name server and sits on another network other than www.abcdef.in.

4354


Name the data structure used to maintain file identification?

563






What do you mean by the protection fault?

555


What does cd mean in unix?

526


Write a shell script that requests the user's age and then echoes it, along with some suitable comment.

975


Is mac unix based?

516


What are hidden files in unix?

529


How to terminate a shell script if statement?

571


What is a shell?

526


Explain the different types of pathnames that are used in unix.

488


Differentiate between absolute and related path?

508


What is a unix shell?

522