Results 1 to 4 of 4

Thread: How to run files with .sh extension on ubuntu

  1. #1
    Join Date
    Jan 2009
    Posts
    36

    How to run files with .sh extension on ubuntu

    Hey Guys!
    What are the files that has .sh extension? I have ubuntu installed in my computer since 3 months without any problem. Whenever i download a software i get a .deb file as it is a debian based operating system. I dowloaded a linux software for ubuntu 32-bit and i got a .sh file. What is this file?? Can anyone help me??

  2. #2
    Join Date
    Mar 2009
    Posts
    599

    Re: How to run files with .sh extension on ubuntu

    Hey!
    .sh is a unix shell script file...!

    What is a shell script?

    A shell script is a script written for the shell, or command line interpreter, of an operating system. It is often considered a simple domain-specific programming language. Typical operations performed by shell scripts include file manipulation, program execution, and printing text.

    Many shell script interpreters double as command line interface, such as the various Unix shells, Windows PowerShell or the MS-DOS COMMAND.COM. Others, such as AppleScript or the graphical Windows Script Host (WScript.exe), add scripting capability to computing environments without requiring a command line interface. Other examples of programming languages primarily intended for shell scripting include DCL and JCL

  3. #3
    Join Date
    Jan 2009
    Posts
    36

    Re: How to run files with .sh extension on ubuntu

    Hey!
    Ok! Thanks but how do i run it...? Why is the software made in shell script? I hope software are really made in shell script... It is a well known software and i downloaded it from the official website...! I hope i'm not screwing my system...! Help Guys! Thanks

  4. #4
    Join Date
    Jan 2009
    Posts
    1,738

    Re: How to run files with .sh extension on ubuntu

    Hey!
    Yup there are some softwares developer that develop software in shell scripts... Anyways, You need execute rights and the file needs to be executable. You need to type this in the terminal to make the file executable:

    Code:
    chmod +x filename
    or even

    Code:
    sudo chmod +x filename
    Then navigate to the directory and run it by typing this:

    Code:
    ./filename
    -OR-

    Code:
    sh filename.sh
    use "sudo" command as prefix if it doesn't work...!
    All the best...!

Similar Threads

  1. How can I play files with m3u extension on Mac OS X
    By Abélard in forum Operating Systems
    Replies: 6
    Last Post: 25-05-2011, 02:13 PM
  2. How to open .bak and .dbl extension files
    By Common in forum Windows Software
    Replies: 3
    Last Post: 23-07-2009, 08:30 PM
  3. What are the files having VMDK extension
    By Emma.J in forum Operating Systems
    Replies: 3
    Last Post: 10-07-2009, 09:41 PM
  4. What is the extension. Exe files on Mac with Xcode?
    By axel1 in forum Windows Software
    Replies: 4
    Last Post: 20-05-2009, 02:54 PM
  5. Files having .dll extension
    By Santanio in forum Operating Systems
    Replies: 3
    Last Post: 10-01-2009, 10:37 AM

Tags for this Thread

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
  •  
Page generated in 1,727,390,139.06143 seconds with 17 queries