what does the command 'wc' do?

Answer Posted / payal

wc command counts the number of lines,words and characters
present in a file.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate cat command from more command.

574


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 does grep v grep do?

547


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

643


What is merge command in unix?

942






Which command is used to find whether the system is 32 bit or 64 bit?

627


Explain mount and unmount command.

609


What is .sh file?

614


Can you explain a little bit about command substitution?

605


How does shebang work?

584


What is the behavioural difference between cmp and diff commands?

670


What is the use of awk command in unix?

577


What is grep in bash?

582


What are some command words?

558


What does 'mkdir' command do in UNIX?

657