"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

unix command how to dispaly no of records in oracle?

5 Answers   SDF, TCS,


How can you kill a process in unix?

0 Answers  


What are the criteria for choosing a process for swapping out of the memory to the swap device?

0 Answers  


Is windows a unix operating system?

0 Answers  


Is it possible to count number char, line in a file; if so, How?

0 Answers  






Explain superblock in unix.

0 Answers  


Elucidate on the different ids used in the unix process?

0 Answers  


What are the file permissions and access modes in unix?

0 Answers  


What do you understand by the term wild-card interpretation?

0 Answers  


What is the difference between NFS 3 and NFS 4? What are new features added in NFS4?

3 Answers   ComNet,


finding the presence of a word in a list of 'n' files (pattern matching)

2 Answers   TCS,


What is unix operating system?

0 Answers  


Categories