Results 1 to 3 of 3

Thread: sh command

  1. #1
    Join Date
    Nov 2008
    Beans
    3

    sh command

    Hey everybody! I have been reading this forum for a little while but this is my first post. I did a search on my question but it didn't seem to find anything so I decided to post it. Can anybody please tell me what does sh command mean and when and why to use it? Thanks so much.

  2. #2
    Join Date
    Jan 2008
    Location
    Wherever
    Beans
    298
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: sh command

    sh is the BSD General command interepreter shell

    if you really want to learn more about it check out

    Code:
    username@localhost:~$man sh
    username@localhost:~$info sh
    once you enter the info/ man pages you can scroll with your arrow keys, and just hit q to quit.

    this will give you a full description of the available uses and switches for the sh commond interpreter. it's just a different type of shell like bash.
    Asus M70vm-C1 intel 5100 abgn nvidia 9600GS intel 2.53gig centrino2

  3. #3
    Join Date
    Dec 2006
    Beans
    1,133
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: sh command

    sh is another "shell" or command interpreter similar to bash, csh, etc. It has somewhat fewer features and options than bash, but is smaller and faster. Most linux distros use bash for the default shell, however ubuntu uses sh for non-interactive scripts in an attempt to lower execution time. bash is still the default for login and interactive shells.

    There is litte reason to run sh by itself as an interactive shell. You might use it to run a script that does not have executable permissions set or "#!/bin/sh" as its first line.
    There are no dumb questions, just dumb answers.

Bookmarks

Posting Permissions

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