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

Answer Posted / niranjan

To display filenames in direcory
1) ls -> basic command

2) echo *

3) ll -> in few unix versions u'll find this

To display only direcories :-

ls -lrt|grep ^d -> useful command if u want to display only directories:):):)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does awk stand for?

615


What are bash commands?

601


Which command should you use to find the remaining disk space in unix server?

714


What does #!/ Bin sh do?

598


Who wrote grep?

589






What do chgrp command do?

595


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

583


What is rmdir command?

556


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

628


What does find command return in unix?

598


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

801


Are you in or at the office?

612


What do chmod, chown, chgrp commands do?

641


What is the use of the command 'ls -x chapter[1-5]' ?

665


Which command will print your home directory on screen?

548