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 can you see the command line history?
Which command will print your home directory on screen?
What is awk used for?
What is ctrl d?
How do I run a whois command?
Why is awk called awk?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
Enlist some filename manipulation commands in unix.
What is awk good for?
How do I use grep to find a file?
What are the dos commands?
Which command can you use to find the currently running process in unix server?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
What is the use of tee command?
What does the command '$ls | wc –l > file1' do?