"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 / shree

ls -l|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

Describe a link in unix.

497


Which file system is used in unix?

505


I want to invest in learning things that will get me good jobs in future. But wondering if Unix knowledge is something that is a MUST have or is it better to do any Data-warehouse tool (cognos, Qclik view, ETL etc..). Please suggest me.

1878


Is mac terminal unix?

469


List a few significant features of unix?

504






Why was unix created?

504


Name the key features of the bourne shell.

498


Write a script that prints out date information in this order: time, the day of week, day number, month, year(sample output: 17:34:51 pdt sun 12 feb 2012)

776


Is mac unix like?

497


What is unix and why it is used?

536


How to check logs in unix?

555


What is the use of unix?

556


Is used to create ordinary files on any unix system?

545


How is unix different from linux?

556


Is unix a language?

473