![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 | ||
|
|
|
|||
|
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 |