Does anybody know linux prefix file names.

Linux, BSD, UNIX and all other operating systems not covered in other sub-forums.

Moderators: Edward, jubalj, Pu7o

Does anybody know linux prefix file names.

Postby Wellander » Tue 15 Apr, 2003 12:08 pm

Hi,
Maybe the title is not good but what I want to know what is the linux file ending names.
Example windows is .exe and .com
Mac is .bin and used to be .hqx
does anybody know what it is for linux.
That will be great.
Thank You.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030411
Wellander
diamond member
diamond member
 
Posts: 2603
Joined: Mon 21 Oct, 2002 6:37 pm

Postby DJGM » Tue 15 Apr, 2003 1:23 pm

A lot of Linux executables have *.bin or *.sh extension. The *.bin extension
for Linux, bears no relation to files with the same extension on the Mac OS.
When you download a program for Linux, is usually in an archive format
with a double extension like *.tar.gz or *.tar.bz2. I believe these are
known as "archived tarball files" or something like that. These files
contain the necessary executables and documentation, including
instructions on how to install or compile the application.

Meanwhile, when you download a program to run on Mac OS X, which is
also based on Unix, sometimes it will have a *.dmg.gz double extension
or a *.dmg.bin double extension. These files are archived, in a similar
way to those archived for Linux, and when they're unpacked, they're
referred to as "self mounting disk images", as they appear on the
desktop as though they are actually disks, but they're really
just disk images, containing all of the relevant executable,
files, and all of the necessary documentation . . .
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-GB; rv:1.0.2) Gecko/20030208 Netscape/7.02
SeaMonkey = Swiss Army Knife: It's versatile, reliable, and contains useful tools.
Windows Internet Explorer = Old Swiss Cheese: Full of holes, and it stinks!
User avatar
DJGM
diamond member
diamond member
 
Posts: 4624
Joined: Wed 19 Jun, 2002 1:03 pm
Location: Manchester, England, UK

Postby Wellander » Tue 29 Apr, 2003 8:18 pm

DJGM wrote:A lot of Linux executables have *.bin or *.sh extension. The *.bin extension
for Linux, bears no relation to files with the same extension on the Mac OS.
When you download a program for Linux, is usually in an archive format
with a double extension like *.tar.gz or *.tar.bz2. I believe these are
known as "archived tarball files" or something like that. These files
contain the necessary executables and documentation, including
instructions on how to install or compile the application.

Meanwhile, when you download a program to run on Mac OS X, which is
also based on Unix, sometimes it will have a *.dmg.gz double extension
or a *.dmg.bin double extension. These files are archived, in a similar
way to those archived for Linux, and when they're unpacked, they're
referred to as "self mounting disk images", as they appear on the
desktop as though they are actually disks, but they're really
just disk images, containing all of the relevant executable,
files, and all of the necessary documentation . . .


Hi,
Thank You for your help you did help me with that.
UserAgent: Mozilla/2.0 (Win95; I; 16bit)
Wellander
diamond member
diamond member
 
Posts: 2603
Joined: Mon 21 Oct, 2002 6:37 pm

linux sufix

Postby jubalj » Wed 30 Jul, 2003 6:31 am

i suspect you mean suffix, rather then prefix? :wink:

suffix's are generally not required in linux and as pointed out are seen commonly in compressed archieves (called tarballs). e.g. tar.gz tar.b2z (the second suffix is the compression that was applied to the archive).

to find out what the type of a file is in linux one can use the 'file' command.

eg:
bash-2.05b$ file /etc/hosts
/etc/hosts: ASCII English text

or
bash-2.05b$ file /usr/portage/distfiles/linux-2.6.0-test2.tar.bz2
/usr/portage/distfiles/linux-2.6.0-test2.tar.bz2: bzip2 compressed data, block size = 900k
UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030726
jubalj
Moderator
Moderator
 
Posts: 23
Joined: Tue 29 Jul, 2003 10:14 pm
Location: Auckland, NZ


Return to Linux and Other OSes

Who is online

Registered users: Bing [Bot], Google [Bot]

cron