Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: unix command  (Read 3724 times)

0 Members and 1 Guest are viewing this topic.

beginner 1

    Topic Starter


    Greenhorn

    • Experience: Beginner
    • OS: Unknown
    unix command
    « on: October 28, 2011, 08:12:36 AM »
    I am trying to list just the # of users logged in not name or username just NUMBER


    $ who | wc -1
    not the one that does it?

    beginner 1

      Topic Starter


      Greenhorn

      • Experience: Beginner
      • OS: Unknown
      Re: unix command
      « Reply #1 on: October 28, 2011, 10:59:47 AM »
      is thi the right area for this post or is it to basic, i'm wondering, just becausew i'm trying this out. Along trying linux. so any suggestions would be great.

      WillyW



        Specialist
      • Thanked: 29
      • Experience: Experienced
      • OS: Windows XP
      Re: unix command
      « Reply #2 on: October 28, 2011, 11:29:01 AM »
      Try:
      Code: [Select]
      users | wc -w


      You might like this:

      http://ss64.com/bash/

      for reference.

      .



      beginner 1

        Topic Starter


        Greenhorn

        • Experience: Beginner
        • OS: Unknown
        Re: unix command
        « Reply #3 on: October 28, 2011, 02:30:54 PM »
        Thank You for the web sight