Results 1 to 10 of 10

Thread: what is .sh ?

  1. #1
    1ritesh is offline Oops! My Coffee Cup is empty.
    Join Date
    Dec 2016
    Beans
    77

    what is .sh ?

    Hello,
    when i extract the software .tar it has .sh what isthis mean?

  2. #2
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: what is .sh ?

    Hello!

    It might do you and everyone else on the forums some good for you to start first by trying to answer your own questions with resources available to you rather than immediately asking here as soon as a question occurs to you.

    For instance, googling for

    Code:
    what is an .sh file
    gave me this as a first hit.
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

  3. #3
    1ritesh is offline Oops! My Coffee Cup is empty.
    Join Date
    Dec 2016
    Beans
    77

    Re: what is .sh ?

    please teach more about it what it do?

  4. #4
    Join Date
    Dec 2016
    Beans
    5

    Re: what is .sh ?

    .sh is an ececutable unix file. To execute it, you can open a shell, go to the folder where the file is and write "./namefile.sh" . if you need to run it as a root, write "sudo ./namefile.sh " and use your password.

  5. #5
    Join Date
    Jan 2013
    Location
    East Yorkshire
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: what is .sh ?

    Tell us what the .sh file is that you are trying to run. That may help.

  6. #6
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    5,472
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: what is .sh ?

    File name extensions don't have a lot of meaning in Linux so it can be anything, but there are certain conventions. A .sh file is usually a shell script. Specifically, it tends to be a shell script for the Bourne shell, which should be present on all Unix-family systems as the program /bin/sh. Nowadays /bin/sh is usually a symbolic link to another shell, which has to be compatible with the original Bourne shell in the sense that any script written for the Bourne shell will run the same way in the more modern alternative. On Ubuntu, /bin/sh is a symbolic link to /bin/dash, whereas most people run /bin/bash in their terminal.

    But all of that shouldn't really matter to you. You got a .tar archive with software somewhere, unpacked it and found a shell script in it. The idea is probably that you have to run the script to install the software. You may have to run it with root permissions, you may have to configure some things first or answer some questions. I can't tell you exactly. It depends on how your software was packaged. Maybe there is an INSTALL file or a README with further instructions.

    Of course, only run the script if you trust it.
    Last edited by Impavidus; December 20th, 2016 at 05:14 PM. Reason: typo

  7. #7
    1ritesh is offline Oops! My Coffee Cup is empty.
    Join Date
    Dec 2016
    Beans
    77

    Re: what is .sh ?

    what is the importance of .sh file?

  8. #8
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,617
    Distro
    Ubuntu

    Re: what is .sh ?

    If you posted the contents of the file (in code tags), perhaps someone could help. It could be anything??

  9. #9
    1ritesh is offline Oops! My Coffee Cup is empty.
    Join Date
    Dec 2016
    Beans
    77

    Re: what is .sh ?

    i am new to ubuntu linux never seen .sh extension.

  10. #10
    Join Date
    Jan 2013
    Location
    East Yorkshire
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: what is .sh ?

    As mentioned in #6, .sh files are just script files, that can be created by the user to run certain programs, or sometimes or can be packaged like that by the creator of the program.
    For example I use Areca to backup my documents. Downloaded it comes as a .tar.gz compressed file. After extracting & entering the folder there is a .sh file. A terminal has to be opened in the folder that contains the .sh file. Then to run the program I have to run "./areca.sh" in the terminal to run the program. They all usually run by preceding the name of the .sh file with "./"
    But as has been mentioned make sure you trust the source of the file before running.

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
  •