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

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

Which language is used in unix?

495


Can you explain what does the kernel do?

515


Is unix an operating system?

498


Is it possible to see information about a process while it is being executed?

765


What is grep|sort give example?

518






What is the full form of unix operating system?

515


What is the home directory in unix?

487


Is unix free to use?

505


What are the devices represented in unix?

493


What are my options if I want to turn on security with a non-root server ID in a UNIX® environment?

541


How to display the contents of a file?

523


What is a parent directory in unix?

483


What is the difference between a single dot and double dot in unix?

710


What are the four components of the unix file system?

500


Was unix the first operating system?

471