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

Answer Posted / pankaj sain

"dir" also works in unix/linux.

Is This Answer Correct ?    17 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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:

1990


What are file commands?

873


Why is it called grep?

765


What does 'mkdir' command do in UNIX?

931


What is awk good for?

803


Are you in or at the office?

852


Enlist some filename manipulation commands in unix.

773


How do I delete files from command prompt?

837


What is command statement?

808


What is grep r?

807


How do I find previous commands in unix?

837


What is .sh file?

850


Name the various commands that are used for the user information in unix.

813


What is the behavioural difference between cmp and diff commands?

900


What is {} in find command?

801