The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How can i read a non text file in unix - ELF-64 executable object file - IA64 alexcol UNIX for Advanced & Expert Users 8 11-07-2008 08:56 AM
Executable file tonet Shell Programming and Scripting 3 01-17-2008 12:03 PM
Strange difference in file size when copying LARGE file.. 0ktalmagik Filesystems, Disks and Memory 1 06-03-2006 07:34 PM
identify whether idrectory or ordinary file surjyap Shell Programming and Scripting 4 11-05-2005 06:09 PM
newbie question about the "bin" file jaywang UNIX for Dummies Questions & Answers 1 10-15-2001 02:04 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-28-2000
Balaji Balaji is offline
Registered User
  
 

Join Date: Nov 2000
Location: India
Posts: 6
Question

Hi,

I am newbie in unix and just started learning it. I want to know what is the difference between an executable file and a file (say text file). How to create executable file? What is the extension for that? How to differentiate ? How does it get executed?

Thanks


  #2 (permalink)  
Old 11-29-2000
me2unix me2unix is offline
Registered User
  
 

Join Date: Nov 2000
Posts: 36
Hi,

Welcome to the Unix world.

Your question is a bit general..
So I'll start with a tip:
Unix has a command called "file".
you type : file filename
and get seme info what type of file it is...is it text file?
executable? what kind of executable ?

Executable file is a file that can be run and perform some computing task. (hope that's close to the academic definition)

All executable files need to have permission +x turned on in order to be run.

Unlike text files and scripts (files written in readen language which can also be run), executable files are mosty referd to binary files, their content is not readable to humans and contains directions in binary format for the machine to run.

To run an executable file you simply type its name.
to create an executable you need some sort of compiler to create binary code.
For an executable SCRIPT. you should edit your code and follow the format it uses.All scripts first line should start with calling the interpter line like these examples:
#!/usr/bin/perl
#!/bin/sh

Hope that helps,

Hezki
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:14 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0