"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

What is af_unix?

469


What are links and symbolic links in UNIX file system?

535


What is hardlink and softlink in unix?

530


Give a brief idea about representation of devices in unix.

528


Is a form of interprocess communication in unix?

502






How to restrict NULL value in UNIX

938


What are the four components of the unix file system?

500


What is unix kernel?

469


How do I show hidden files in unix?

464


For which kind of fault the page is checked first?

540


Define a process group.

539


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

534


What is meant by the term super user?

500


Difference between the fork() and vfork() system call?

593


Explain the terms links and symbolic links with respect to unix?

553