Home
Ask a Question
Subscribe
About Us
Skip to content
How to count the number of line in a file
How to count the number of line in a file
Answer:
Use the
wc
command
wc -l text.txt
Share and Enjoy:
Related posts:
How to count the number of duplicated lines in a file
Give line numbers to a text file
How to add line number to a text file?
How to print a file by line range using sed?
Count the number of matching lines from grep
Categories:
Commands
|
Tags:
shell
|
Comments (0)
‹
Becareful when using the mtime option in find command
How to change the owner of a file in Linux
›
Post a Comment
Your email is
never
published nor shared. Required fields are marked
*
Name
*
Email
*
Website
Comment
Search
Subscribe
Categories
Advanced Linux
(49)
Applications
(39)
Accessories
(9)
Graphics
(2)
Internet
(19)
Office
(1)
Sound & Video
(7)
Basic Linux
(266)
Commands
(238)
Databases
(48)
MySQL
(48)
Desktop Environments
(5)
GNOME
(3)
Distribution Specific
(63)
CentOS
(15)
Debian
(29)
Fedora
(16)
Red Hat
(17)
Ubuntu
(49)
Linux Security
(26)
Other Unix-like Operating Systems
(6)
Mac OS X
(6)
Programming
(111)
Bash
(13)
Perl
(47)
PHP
(34)
Python
(8)
Ruby
(1)
Servers
(37)
Apache
(27)
Nginx
(6)
Virtualization
(1)
Xen
(1)
Tags
Apache
awk
Bash
CentOS
command
cpu
Debian
diff
dns
Fedora
filesystem
find
GNOME
grep
hosts file
httpd.conf
iptables
linux
mac
mac terminal
memory usage
MySQL
network
networking
Nginx
ntp
performance
Perl
PHP
Python
redhat
root
rpm
security
sed
shell
ssh
svn
syslog
telnet
Ubuntu
vi
virus
wget
xargs
Post a Comment