"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 ?

Answers were Sorted based on User's Feedback



"ls" command is showing all the subdirectoary and files which are present in the current..

Answer / rakesh

ls -lrt | grep '^d'

Is This Answer Correct ?    0 Yes 0 No

"ls" command is showing all the subdirectoary and files which are present in the current..

Answer / shree

ls -l|grep '^d'

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix General Interview Questions

Explain a path in unix.

0 Answers  


How does unix file system work?

0 Answers  


How do I find the port number of pid in unix?

0 Answers  


What is unix used for?

0 Answers  


What is the difference between an absolute path and a relative path in unix?

0 Answers  






How do I search for a file in unix?

0 Answers  


What methodology can be utilized to modify the password in unix?

0 Answers  


What is called in unix?

0 Answers  


What is the difference between soft link and hard link in Unix operating system ?

0 Answers   MCN Solutions,


What is unix directory structure?

0 Answers  


Is mac a unix system?

0 Answers  


What is unix pattern?

0 Answers  


Categories