Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

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
Question ajoutée par mohammed el hosseny , Network operation center (NOC ) Engineer , TEData
Date de publication: 2014/10/13
Ahmad Ghieth
par 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
par 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
par Emad Mohammed said abdalla , ERP & IT Software, operation general manager . , AL DOHA Company

The answer will be C. WC

Mustafa Omer Shoaib
par Mustafa Omer Shoaib , Senior Software Engineer , Saudi Consolidated Engineering Company (Khatib & Alami)

C.wc

Mohammed Haseeb Nawaz
par Mohammed Haseeb Nawaz , System Engineer , Maaden Phosphate Company

WC

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

 

Mostafa Mohamed Abdelrahman Mohamed
par Mostafa Mohamed Abdelrahman Mohamed , Senior Virtualization and Application Management Executive , Qatar National Bank - ALAHLI

wc

Muhammad Anzar
par 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
par Davide Raro , Project Manager , COROBOR Systèmes, a Campbell Scientific Company

you can use wc command as suggested by the others

abdul salam
par abdul salam , System Administrator , Aforeserve.com Ltd

we can use the command "wc" 

Vikram Singh
par Vikram Singh , Principal Genesys Executive , Home Credit India

As per mentioned option,The right option is C

wc

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?