Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

UNIX shell question

Options
  • 12-05-2013 8:15pm
    #1
    Closed Accounts Posts: 79 ✭✭


    Hi, I'm new here and I'm not sure if I posted this thread in the right place, so excuse me if I did.

    Anyway, I am studying for my exams, UNIX shells, to be specific, and came across a question which I don't understand.

    It goes...

    "The Unix shell is a widely used interface to Unix systems"
    "Name any one specific implementation of the Unix shell"


    So the above is the question I am having trouble with?
    Can anybody help?

    Thanks in advance.


Comments

  • Registered Users Posts: 1,109 ✭✭✭Skrynesaver


    Which shell do you use most often and what do you like about it?

    There are shells whose features emphasise scripting, shells which emphasise user interaction, nost are Posix compliant and then have layered featuresd on to of that.


  • Registered Users Posts: 139 ✭✭Bald? er, dash!


    Seems to be looking for the name of a Unix shell, e.g.
    sh - Bourne shell
    bash - Bourne again shell
    ash
    Ksh
    Zsh
    and so on...

    Some reading for you here: http://en.wikipedia.org/wiki/Unix_shell


  • Closed Accounts Posts: 79 ✭✭pheno


    Seems to be looking for the name of a Unix shell, e.g.
    sh - Bourne shell
    bash - Bourne again shell
    ash
    Ksh
    Zsh
    and so on...

    Some reading for you here: http://en.wikipedia.org/wiki/Unix_shell

    That's what I was looking for. Thanks.


  • Closed Accounts Posts: 79 ✭✭pheno


    How do you list all running BASH processes? I know that ps lists all processes, but how do you list running bash processes?


    Thanks.


  • Registered Users Posts: 1,109 ✭✭✭Skrynesaver


    ps lists the processes in the current shell not all processes on the host with no options.

    'ps -ef | grep bash' lists the instances of bash running


  • Advertisement
  • Closed Accounts Posts: 79 ✭✭pheno


    ps lists the processes in the current shell not all processes on the host with no options.

    'ps -ef | grep bash' lists the instances of bash running

    So ps -ef | grep bash lists all running bash processes?

    Thanks for the help.


  • Registered Users Posts: 232 ✭✭lemon_remon


    pheno wrote: »
    So ps -ef | grep bash lists all running bash processes?

    Thanks for the help.

    It would make a lot more sense if you installed a Unix like (Linux) system and tried it for yourself... you might actually learn something.


  • Closed Accounts Posts: 79 ✭✭pheno


    It would make a lot more sense if you installed a Unix like (Linux) system and tried it for yourself... you might actually learn something.

    I have Ubuntu installed, however, for some reason I am limited as to what commands I can use. For example, I cannot remove files. (rm)


  • Registered Users Posts: 11,262 ✭✭✭✭jester77


    pheno wrote: »
    I have Ubuntu installed, however, for some reason I am limited as to what commands I can use. For example, I cannot remove files. (rm)

    You are trying to delete a file that you don't have permissions for. Read up about file/group permissions (rwx for oug) and how the chown, chgrp and chmod commands work. That alone should give you a good understanding of the file system.


  • Registered Users Posts: 2,021 ✭✭✭ChRoMe


    pheno wrote: »
    I have Ubuntu installed, however, for some reason I am limited as to what commands I can use. For example, I cannot remove files. (rm)

    Read up about the sudo command and how the root user works.


  • Advertisement
  • Registered Users Posts: 1,931 ✭✭✭PrzemoF


    pheno wrote: »
    I have Ubuntu installed, however, for some reason I am limited as to what commands I can use. For example, I cannot remove files. (rm)
    Example with command line output or it never happened! ;)
    Maybe you tried to:
    - remove directory
    - remove file that doesn't belong to you
    - remove a file that you don't have permission to remove

    I'd suggest _not_ to use sudo unless you know what you're doing.


Advertisement