Find the answer to your Linux question:
Results 1 to 4 of 4
Hello Everyone, I need to find out some command which produce specific output. My questions are as follow: (1) List all users on system who use sh as the login ...
  1. #1
    Just Joined!
    Join Date
    Oct 2011
    Posts
    17

    Need help to find out some command

    Hello Everyone,

    I need to find out some command which produce specific
    output. My questions are as follow:

    (1) List all users on system who use sh as the login shell.

    (2) Using lastcomm command find how many times you have used the touch command in the current month. (The command should
    work for any user without any modification)

    (3) Please use one grep command to list all lines that contain a digit (0,1, …, or 9) as the first character, dot (.) as the third last
    character, and a dollar sign ($) as the last character in a file named info.

    (4) List all userids, which are currently logged on to system,
    (a) with at least five characters

    (b) with at most six characters

    (c) with exactly six characters

    (d) whose first and fourth characters are s and o,
    respectively.

    (5) Create an alias named listdotfile to list all hidden files in long format from the working directory. All hidden
    directories should not be part of the output.

    Is anyone can help me?

    Thanking You,
    Last edited by kaspareov; 10-01-2011 at 06:18 PM.

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,096
    Hello and welcome.

    Sorry, but homework questions are against the forum rules.
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Oct 2011
    Posts
    17
    At least I am expecting some hint or somthing to workout.

  4. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,086
    Hello and welcome to the forums!

    Sorry, but as indicated above, homework questions are not permitted:

    http://www.linuxforums.org/forum/lin...ums-rules.html

    However, if you are having some specific issue with Linux, we might be able to help with that if you can post details and any error messages that you are receiving.

    Note that you can find a listing of Linux commands here:

    http://oreilly.com/linux/command-directory/

    Otherwise, googling for answers to homework questions might work.

    Good luck to you with your classes.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •