what is the command to list files in a directory in UNIX?

Answer Posted / siva

Try this command

ls -lrt | grep "^-" - for list the only files
ls -lrt | grep "^d" - for list the only directory's

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain ‘system calls’ with respect to unix commands?

811


What is the difference between grep and grep?

821


What is awk used for?

847


What does 'mkdir' command do in UNIX?

949


What does pipe () return?

800


What does find command return in unix?

876


What is awk good for?

811


What are grep patterns?

790


Who command in unix?

817


What do know about tee command and its usage?

876


What command is used to check the current users?

826


What are awk commands?

835


hw will u use awk in replacing cahrs and files

2958


What are file commands?

890


How do I use grep to find a file?

828