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

Why is grep called grep?

777


Enlist some filename manipulation commands in unix.

549


What do chown command do?

536


What does the md command do?

568


What is grep in bash?

586






What is .sh file?

616


What are grep patterns?

576


What's a command word?

585


What is the general format of unix command syntax?

691


What is the command to find hidden files in the current directory?

580


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1758


What is the functionality of a top command?

623


What is the use of tee command?

567


What is grep and how do you use it?

575


What are the dos commands?

646