what is the command to list files in a directory in UNIX?

Answer Posted / peeyush

ls -l |grep '^-'

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does shebang work?

592


Which command is used to create a directory?

575


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

822


What is difference between grep and find command in unix?

579


Is command prompt unix?

583






What difference between cmp and diff commands?

724


What does grep v grep do?

554


What is the difference between cat command and more command?

599


What is the use of finger command?

599


What is the search command in unix?

603


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

678


What is .sh file?

622


How do I run a whois command?

602


Which command is used to copy files?

556


hw will u use awk in replacing cahrs and files

2734