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

Answer Posted / p.ashwini

ls command is used to list files in a directory

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command is used to restrict incoming messages?

584


What does this command do,"$more readme.txt“?

682


What is the function of grep command in unix?

580


What is ‘ps’ command for?

608


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:

1752






Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

949


What is the search command in unix?

594


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

573


What will the following command do?

607


What does awk stand for?

601


What is a command and examples?

574


Which command is used to delete all files in the current directory and all its sub-directories?

655


Explain how to use grep command to list find the records of a file containing 10 different strings?

588


What does the “echo” command do?

621


Enumerate some of the most commonly used network commands in unix?

612