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

What does awk stand for?

605


Does cp command overwrite files?

620


What is awk used for?

616


Explain ‘system calls’ with respect to unix commands?

600


How do I find previous commands in unix?

592






What happens when we execute a unix command?

597


What is the pipe command?

574


What is merge command in unix?

942


Explain command to view process running?

611


How do you repeat a command in terminal?

587


Why is it called a shebang?

568


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

638


What is in grep command?

647


Differentiate cat command from more command.

574


What is grep in bash?

586