LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2002, 08:57 AM   #1
T10
LQ Newbie
 
Registered: Jan 2002
Posts: 2

Rep: Reputation: 0
How the heck do you run files?!?!?! lol :(


Hey All

I just installed Mandrake 8.1 on my XP machine, and its pretty cool. My question is though, how do I run files, and how do I know which files are executable ?!? I come from the MS world where its pretty simple *.exe *.bat are execs. *.zip *.rar are archives and so on. But with linux i got no idea what so ever what the files are.

These files interest me the most : .gz .tar .rpm and so on.

Can someone please tell me how to exec files, and make a list of executable extentions? From what I understand binary could be run right away, and source must be compiled. Also do I need to install any terminals or anything to execute files? When i installed mandrake i didnt install terminals nor development stuff, just selected multemedia, internet clinet and gnome.

Also I have java enabled, but when I go to sites with java it tells me I need to download JAVA2. So i simply click on JAVA2 for Linux, it connects to Netscape ftp, downloads, runs it, and voila, nothing. I go to the same page and same thing comes up, I need to Download JAVA2....
 
Old 01-29-2002, 09:22 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
linux is not restricted to somethign as primitive as a file extension to define what it is, although they are frequently used for clarity. you just run a program by typing it on a command line. executable files are generlly in bin directories, such as /bin, /usr/bin /usr/local/bin and such like, all f which are on your path and do not need stating specifically.

rpm's and tar.gz files are archives that contain programs, search the forum for more info on how to install files
 
Old 01-29-2002, 11:27 AM   #3
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
OK, if you're running KDE on Mandy 8.1, then your RPMS thing is easy. Just move to the directory and click on it. As with Windows (all versions) certain files have associated programs, but these associations belong with Konqueror itself, not the file!

If you're using the command line (I suggest you get used to it if you're not) then RPM files are handled with the command rpm (quite logical).

.tar.gz files (and .tgz, .tar.bz2) are compressed archives, similar to ZIP files, but different. They are handled with the tar command.

Under Windows, a file can have certain attributes (set with the attrib command): Archive, Readonly, Hidden, System.

Linux has attributes aswell: Owner, Group, Execute, Read, Write.

If the execute attribute is set, then a file can be run. This should only be done for actual programs. Like in Windows, if you rename a non-program file with .exe and then run it, you get problems; if in Linux you set a file with the execute attribute when it isn't, and then run it, you'll have problems.

Running a stock install of Mandy 8.1, under a terminal session, typing the ls command, executable files are bright green, compressed archives are red, etc.

Advice: type the following in at the command prompt:

man ls
man rpm
man tar
.

Sorry for any curtness, it is unintended. I don't have a lot of time on these computers.

Good luck & keep us posted.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I run those .run files? IanPappas Linux - Software 2 09-29-2005 05:18 PM
Can't run .pl files Nosek Linux - Newbie 1 10-13-2004 01:31 PM
.run files? elamigo2004 Linux - Software 3 05-09-2004 10:41 AM
.run files? Neostar Linux - Software 2 06-17-2003 02:13 AM
How do you decompress files, or run files such as the Netscape 6 Uninstaller in RH7.2 oudent Linux - Newbie 1 11-19-2001 12:11 AM


All times are GMT -5. The time now is 11:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration