ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

What command is used to count the total number of lines, words, and characters contained in a file?

A. countw B. wcount C. wc D. count p E. None of the above

user-image
تم إضافة السؤال من قبل mohammed el hosseny , Network operation center (NOC ) Engineer , TEData
تاريخ النشر: 2014/10/13
Ahmad Ghieth
من قبل Ahmad Ghieth , Technical Manager , Ambience Jordanian Lighting

wc -l tecmint.txt

(to show # of lines)

wc -w tecmint.txt

(to show # of words)

 

wc -c tecmint.txt

(Bytes and Characters)

 

# wc -L tecmint.txt

 

(Length of Longest Line)

Aqueeluddin Khaja
من قبل Aqueeluddin Khaja , Systems Engineer , OSI Consulting

Hi All,

Command "wc" can be used for count of the total number of lines, words, and characters contained in a file.

 

To calculate number of lines in a file. 

#wc  -l <filename>

 

To calculate number of words in a file. 

#wc -w <filename>

 

To calculate number of characters in a file. 

#wc -c <filename>

Emad Mohammed said abdalla
من قبل Emad Mohammed said abdalla , ERP & IT Software, operation general manager . , AL DOHA Company

The answer will be C. WC

Mustafa Omer Shoaib
من قبل Mustafa Omer Shoaib , Senior Software Engineer , Saudi Consolidated Engineering Company (Khatib & Alami)

C.wc

Limon Hossain
من قبل Limon Hossain

What command is used to count the total number of lines, words, and characters contained in a file?

 

Mostafa Mohamed Abdelrahman Mohamed
من قبل Mostafa Mohamed Abdelrahman Mohamed , Senior Virtualization and Application Management Executive , Qatar National Bank - ALAHLI

wc

Muhammad Anzar
من قبل Muhammad Anzar , DevOps/DevSecOps Architect , Confidential

wc is the answer. If you want to get total number of lines, give -l switch end of the command

 

Eg: wc -l filename

Davide Raro
من قبل Davide Raro , Project Manager , COROBOR Systèmes, a Campbell Scientific Company

you can use wc command as suggested by the others

abdul salam
من قبل abdul salam , System Administrator , Aforeserve.com Ltd

we can use the command "wc" 

Vikram Singh
من قبل Vikram Singh , Principal Genesys Executive , Home Credit India

As per mentioned option,The right option is C

wc

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟