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
Explain ‘system calls’ with respect to unix commands?
What is the difference between grep and grep?
What is awk used for?
What does 'mkdir' command do in UNIX?
What does pipe () return?
What does find command return in unix?
What is awk good for?
What are grep patterns?
Who command in unix?
What do know about tee command and its usage?
What command is used to check the current users?
What are awk commands?
hw will u use awk in replacing cahrs and files
What are file commands?
How do I use grep to find a file?