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
What are the general commands in using unix os for a beginner?
What are awk commands?
What happens when we execute a unix command?
how to sort the content of the file based on numeric values
What do chmod, chown, chgrp commands do?
What is the use of cut command in unix?
Which command should you use to find the remaining disk space in unix server?
What is the use of sed command in unix?
How do I delete files from command prompt?
What is grep command in unix with examples?
How do you repeat a command in terminal?
How do I use nslookup?
Explain command to display different lines that are found when compare two files?
What does the metacharacter mean?
How do I run a bash script?