![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 !! |
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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 |
|
||||
|
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 | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|