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
How do I search for a file in unix command?
Why is it called grep?
What is a bash command?
What is the use of awk command in unix?
How can we use grep command in unix?
What does grep v grep do?
how to sort the content of the file based on numeric values
What is time_t?
What does grep v do?
How can you see the command line history?
What is the command to compare two files in unix?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
What does the command ' $who | sort –logfile > newfile' do?
Write a command that will display files in the current directory, in a colored, long format.
What is the difference between cat command and more command?