Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: How does linux run programs?

  1. #1

    How does linux run programs?

    I'm trying to understand how to 'run' linux programs. e.g. in windows you run excutables or batch files. So I would like to have an idea of the equivalent to those in linux and how to run them. I know there are scripts as well and you run them by './' but i don't really 'get' it all at all

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    The most significant difference between Windows executables and Linux ones is that the Windows ones have an .exe extension, while Linux ones don't!

    Generally, in Linux you run a program by calling it. In effect (although there may be some overlying GUI trickery going on) you're doing no more than typing (for example)

    gimp

    at the command line. This calls the gimp executable which lives in /usr/bin (actually, it's a symbolic link to gimp1.2, BWTH). You can even run it by clicking on the icon.

    There's much more about this in rute

    (if you have a HD install you can get it by doing:

    apt-get install rutebook)

    but a google will find it.

  3. #3
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    555
    Have a look at the chmod man page. IOW, type "man chmod" in a shell session. I believe "man:/chmod" should also work as a target location for konqueror.

  4. #4
    So, say I download a program off of the net, (a linux program) how do I actually run it? Do I have to compile it, or create a symbolic link or wat?
    And also, how do you know what a program is if it hasn't got a different ending?

  5. #5
    Senior Member registered user
    Join Date
    Nov 2003
    Posts
    361
    Quote Originally Posted by FreeTheCheese
    And also, how do you know what a program is if it hasn't got a different ending?
    The file ending way in dos/windos is silly anyway since you can change it. There is an utility called "file" that identifies most file types correctly. To find out if a file called "foobar" is an executable file say:
    Code:
    file foobar

  6. #6
    Senior Member registered user
    Join Date
    Nov 2003
    Posts
    361
    Quote Originally Posted by FreeTheCheese
    So, say I download a program off of the net, (a linux program) how do I actually run it? Do I have to compile it, or create a symbolic link or wat?
    Depends on what you download. As Knoppix is Debian based you should use the Debian package management system (apt-get etc...) to retrieve and install the stuff. If it isn't available as a pre-compiled package you can get the source tarball instead, for most stuff something like this works:
    Code:
    tar -xzvf foobar.tgz
    cd foobar
    ./configure
    make
    make install
    (the make install part needs to be run as root) Notice that this would probably break the package management for that particular program so avoid doing it if it is available as a Debian package.

  7. #7
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    colorado springs, colorado
    Posts
    1,933
    Quote Originally Posted by FreeTheCheese
    So, say I download a program off of the net, (a linux program) how do I actually run it? Do I have to compile it, or create a symbolic link or wat?
    Depends. First you should always look for a README or INSTALL doc. Sometimes you might get a script, make it executable and then execute it.
    Debian uses apt so you simply type : apt-get install <someapplicaiton>
    If it's source code then you may need to do ./configure && make && make install.

    And also, how do you know what a program is if it hasn't got a different ending?
    File extensions are not necessary in Linux but you may use them if you like. For example:

    homework.monday
    homework.tuesday

    are both perfectly acceptable. Use whatever you like. Wouldn't it suck if an application was too stupid to know what to do with a file simply because the file had the wrong file extension?

  8. #8
    ok, so If i deffinately know a file is an excutable, can i just navigate to the directory, type the name of the excutable and it will run?

  9. #9
    Senior Member registered user
    Join Date
    Nov 2003
    Posts
    361
    Quote Originally Posted by FreeTheCheese
    ok, so If i deffinately know a file is an excutable, can i just navigate to the directory, type the name of the excutable and it will run?
    Only if "." is in your "PATH" environment variable. However, this will always work:
    Code:
    ./theexecutablefile

  10. #10
    Only if "." is in your "PATH" environment variable.
    do you mean if the file was named ' .myexcutable ' ?

Page 1 of 4 123 ... LastLast

Similar Threads

  1. where do i get wiz or other programs i can run exe with
    By sonicdragon14 in forum General Support
    Replies: 4
    Last Post: 12-11-2004, 06:25 PM
  2. Programs that just die
    By el_santo in forum General Support
    Replies: 0
    Last Post: 11-23-2004, 01:04 PM
  3. Two really needed programs
    By miguipda in forum Ideas
    Replies: 3
    Last Post: 06-29-2004, 02:07 AM
  4. Programs will not run
    By dvest in forum General Support
    Replies: 1
    Last Post: 08-14-2003, 06:40 AM
  5. Design Programs
    By thegroover in forum General Support
    Replies: 3
    Last Post: 07-08-2003, 09:59 AM

Posting Permissions

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


Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox picture

Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox

$340.00



Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB picture

Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB

$510.00



Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD picture

Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD

$79.19



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD

$389.99



Dell PowerEdge R730, 2 sinks, SystemBoard, 8 trays,H330,Idrac 8 exp, 2x750w Psu picture

Dell PowerEdge R730, 2 sinks, SystemBoard, 8 trays,H330,Idrac 8 exp, 2x750w Psu

$135.00



Dell Poweredge R730xd 2.5in 2x E5-2690 v3 2.6ghz 24-Cores  64gb  H730  2x 750w picture

Dell Poweredge R730xd 2.5in 2x E5-2690 v3 2.6ghz 24-Cores 64gb H730 2x 750w

$189.99



DELL POWEREDGE R730 8 Bay SFF 2x 8 CORE E5-2667v4 3.2GHz 32GB RAM H730 iDrac8ENT picture

DELL POWEREDGE R730 8 Bay SFF 2x 8 CORE E5-2667v4 3.2GHz 32GB RAM H730 iDrac8ENT

$264.95



CTO Dell PowerEdge R630 Server, 2x Xeon E5-2620V4, 64GB- 512GB RAM, 480GB SSDs picture

CTO Dell PowerEdge R630 Server, 2x Xeon E5-2620V4, 64GB- 512GB RAM, 480GB SSDs

$246.67



DELL PowerEdge R730 Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730 Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45

$284.00



DELL R730XD Server 2x E5-2680v4 2.4GHz =28 Cores 128GB H730 4x 1.2TB SAS 4xRJ45 picture

DELL R730XD Server 2x E5-2680v4 2.4GHz =28 Cores 128GB H730 4x 1.2TB SAS 4xRJ45

$504.00