Is there any command in Unix, other than:ls, to list the
files in a directory?
The answer will be highly appreciated...

Answer Posted / pritish

echo * | tr " " "\n"
this will display all the files in the current directory
sequentially...

you can also use dir command.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain command to show the space allocation of files?

637


What is ‘ps’ command for?

624


How to display no of records in oracle using unix command?

593


Write a command to kill the last background job?

626


How do you grep recursively?

566






Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

654


What is the use of awk command in unix?

589


What is grep and how do you use it?

585


Explain the steps that a shell follows while processing a command.

691


What is the function of grep command in unix?

602


What does the metacharacter mean?

618


Which unix command lists files/folders in alphabetical order?

624


What are awk commands?

590


What does the md command do?

580


What is difference between grep and find command in unix?

590