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

Answer Posted / yuvaevergreen

ls | grep "^-"

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command is used to create a directory?

574


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

591


Can you enlist some commonly used network commands?

600


why metadb requires a seperate slice to create Solaris volume manager

2555


What is the function of grep command in unix?

588






How do I run a whois command?

600


What are the differences among a system call, a library function, and a unix command?

567


What is the general format of unix command syntax?

693


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

706


What is ctrl d?

594


What are awk commands?

582


Differentiate cmp command from diff command.

586


What is awk command used for?

600


How do I search for a file in unix command?

546


What will the following command do?

615