The UNIX and Linux Forums  

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
Executable file tonet Shell Programming and Scripting 3 01-17-2008 08:03 AM
How can i read a non text file in unix - ELF-64 executable object file - IA64 alexcol UNIX for Advanced & Expert Users 4 07-20-2007 02:05 PM
Strange difference in file size when copying LARGE file.. 0ktalmagik Filesystems, Disks and Memory 1 06-03-2006 04:34 PM
identify whether idrectory or ordinary file surjyap Shell Programming and Scripting 4 11-05-2005 02:09 PM
newbie question about the "bin" file jaywang UNIX for Dummies Questions & Answers 1 10-14-2001 11:04 PM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-28-2000
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


Forum Sponsor
  #2 (permalink)  
Old 11-29-2000
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
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0