Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am new to Linux.
I need to use wc command.
If I run "which wc" the output is /usr/bin/wc
However, /usr/bin/wc file is empty. wc command doesn't work at all.
I would really appreciate any advice on how to install wc into my system or how to replace wc if something else can give me word count output.
Thank you for any help,
This is output from lsb_release -a
LSB Version: core-2.0-noarch:core-3.0-noarch:core-2.0-ia32:core-3.0-ia32:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch
Distributor ID: SUSE LINUX
Description: SUSE LINUX Enterprise Server 9 (i586)
What do you mean "wc command doesn't work at all."?
Linux usually gives error messages if something is wrong, and when it is silent, it is either waiting for some input (you don't see a prompt), or it has completed the command (you get a prompt back).
wc needs a filename in the current directory to count the words in that file eg wc mytextfile
Thank you for answering.
Nothing at all happens. Prompt returns right away, but no any output.
I am using it like this:
If I go to /usr/bin directory and do ls -l ws, I am getting:
-rwxr-xr-x 1 root root 0 Mar 9 10:49 /usr/bin/wc
Was it not installed properly with Linux? What do I do?
Thank you for you help,
I have no idea how it happened. The installation was done before me and all I need is to install small cron job on this machine (which is supposed to use wc).
Do you have an idea where I cat get/download wc program?