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 are the dos commands?

903


How does shebang work?

822


What are the general commands in using unix os for a beginner?

841


What is the unix command to confirm a remote host is alive or not?

825


What is the use of cut command in unix?

984


Enumerate some of the most commonly used network commands in unix?

879


What is .sh file?

854


Describe the usage and functionality of the command rm –r * in unix?

1610


What are awk commands?

831


How can you see the command line history?

848


Name the general commands in using unix os for a beginner?

835


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

1006


What is time_t?

800


Why is grep called grep?

1018


hw will u use awk in replacing cahrs and files

2954