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 there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
How do I clear my terminal history?
Name the general commands in using unix os for a beginner?
Who wrote grep?
What does #!/ Bin sh do?
hw will u use awk in replacing cahrs and files
What is the use of the tee command?
Explain ‘library functions’ with respect to unix commands?
Describe the zip/unzip command using gzip.
How do I run a whois command?
What is awk used for?
What is the use of sed command in unix?
What are the general commands in using unix os for a beginner?
How do I use nslookup?
How do I search for a file in unix command?