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

Answer Posted / nik

You can use find command with - type f. It will print all
the files in the current dir recursively.

Is This Answer Correct ?    13 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does awk stand for?

837


Can you explain a little bit about command substitution?

870


What do chmod command do?

875


Write a command to display a file’s contents in various formats?

904


What command will change your prompt to myprompt?

972


What are the commands in UNIX to list the files in a Directory?

863


What does the metacharacter mean?

855


What does 'mkdir' command do in UNIX?

976


How does the system know where one command ends and another begins?

1950


What is the comma to display different lines that are found when compare two files?

840


What does the command '$ls | wc –l > file1' do?

956


What does the command ' $who | sort –logfile > newfile' do?

1073


Explain command to display different lines that are found when compare two files?

929


What happens when we execute a unix command?

849


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

1025