"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

What are the links and symbolic links in a unix file system?

0 Answers  


What do you understand by unix shell?

0 Answers  


Is mac a unix?

0 Answers  


Name two paging states for a page in memory?

0 Answers  


Is unix multiuser?

0 Answers  






What is the use of grep and egrep in unix?

0 Answers  


How do you switch from any user type to a super user type?

0 Answers  


Is used to create ordinary files on any unix system?

0 Answers  


Was unix the first operating system?

0 Answers  


What is architecture of unix operating system?

0 Answers  


Describe the responsibilities of shell in brief.

0 Answers  


What is unix orphan process?

0 Answers  


Categories