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
Is command prompt unix?
What is the use of sed command in unix?
What does find command return in unix?
Explain the steps that a shell follows while processing a command.
Which command is used to find whether the system is 32 bit or 64 bit?
Who invented grep?
What is unix command line?
Which command will print your home directory on screen?
What does the command '$ls | wc –l > file1' do?
Which command is used to create a directory?
What is the use of cut command in unix?
What do chmod, chown, chgrp commands do?
What is the significance of the 'tee' command?
What is the difference between cat and more command?
How do you repeat a command in terminal?