Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When i type the command , i can get three terms as follows.what is this? I think the first one is number of files and directories,what about the other two?
DESCRIPTION
Print byte, word, and newline counts for each FILE, and a total line if
more than one FILE is specified. With no FILE, or when FILE is -, read
standard input.
So it seems what you're seeing is the number of bytes, the number of words, and the number of newline counts for the output of ls.
edit: although I'm not sure if the last number (2360) is perhaps the total line counts since there's likely to be more that one file. It depends on how it processes stdin.
edit: although I'm not sure if the last number (2360) is perhaps the total line counts since there's likely to be more that one file. It depends on how it processes stdin.
It's processing the output of ls -l as a text file---it knows nothing of the meaning--it only counts lines, words, and bytes in the text stream.
It's processing the output of ls -l as a text file---it knows nothing of the meaning--it only counts lines, words, and bytes in the text stream.
Ah, thanks for clearing that up. I wasn't sure if it would receive the data from ls -l as a single event, or as a series of events (each line of the output, for example), thereby treating each as a separate event.
I'm still pleasantly surprised by how much I don't know about GNU/Linux!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.