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

Answer Posted / sudip

ls -l | grep "^d"

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command can you use to find the currently running process in unix server?

586


how to sort the content of the file based on numeric values

1252


What is the behavioural difference between cmp and diff commands?

677


What is command substitution?

625


How can you see the command line history?

586






What does grep v do?

561


What is the difference between cat and more command?

627


What is the size of time_t?

650


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:

1762


What is awk used for?

622


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

763


What is awk good for?

588


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

822


Are you in or at the office?

611


what is the advaantage of each user having its own copy of the shell?

2036