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

Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

860


Explain command to show the space allocation of files?

875


What is the use of sed command in unix?

886


Can you enlist some commonly used network commands?

851


Why is it called a shebang?

837


Which command can you use to find the currently running process in unix server?

828


Describe the zip/unzip command using gzip.

868


What do know about tee command and its usage?

898


What does the “echo” command do?

881


What are grep patterns?

813


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

895


Give the command for finding the current date.

806


What is the command to find maximum memory taking process on the server?

933


What is unix command line?

874


What is merge command in unix?

1193