Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm using Ubuntu 10.04 and Gedit isn't able to open every possible file thrown at it, it often complains about not being able to find the right encoding. I miss BBEdit on the Mac, which opened any file. Is there a Linux equivalent?
Thanks, that's an interesting link, worth exploring. At first glance, there isn't an editor listed that would open any file, I will need to look deeper. A specific recommendation from a happy user would be most welcome, though.
As long as you mean "plain text files" with different encodings you should be able to handle them right with something like bluefish or kate. Kate even lets you choose the encoding manually from the open file dialog as far as I remember.
I am sure emacs and vim will do as well, but I am not too wise about these two.
Assuming you mean text files, I have noticed gedit sometimes fails to automatically detect encoding with large ones (not sure why, it loads partially then when complete, fails). What usually works for me is to select Western (ISO-something) encoding from the menu (that and UFT-8 are what is usually present).
By any file I mean any extension, a JPEG, a binary, anything. This is what BBEdit provides, it opens absolutely any file. It's a very useful feature to have and I would be shocked to learn there isn't a Linux equivalent.
It depends exactly what you want to do to this opened file, once you have it open! Sure, you can open all sorts of files, using applications that are not natively able to do much with the file once it's open..
I just read the Wiki page & some of the BBEdit website, and I don't see much (if any) mention of JPEG files. The thing appears to be an advanced text editor (but NOT a word processor). Perhaps you might look at SciTE and Scintilla and see if they are approaching anything like what you are looking for.
I'd also look at KDE's various components (and perhaps GNOME equivalent though I don't know what that is..), which are really well integrated, with Konqueror being the main ingredient, and loads of plugins & other KDE apps tied into it..
If nothing I've written helps at all, please tell us what you want to do with this application that can open anything - i.e. are you doing web development, text processing, image editing....? And maybe then we can suggest what you're looking for.
Last edited by GrapefruiTgirl; 07-26-2010 at 11:28 AM.
I'm personally doubting it opens "any" file. I'm thinking infact it may examine the fine and pass it to the relevent decoder based on MIME type.
What I dont understand is the point of this - my underlying windowing system does this for me. I click a jpeg it opens up in picture viewer, I click a .avi and it opens in xine, if I click .html it opens in firefox....
Checked the linked site (linked above and below!) - "BBEdit is the leading professional HTML and text editor for the Macintosh. Specifically crafted in response to the needs of Web authors and software developers, this award-winning product provides an abundance of high-performance features for editing, searching, and manipulation of text"
Doesn't say anything about handling images etc.
Last edited by djsmiley2k; 07-26-2010 at 11:36 AM.
I see I still haven't been clear enough: upon opening of the file, I want to see it as text. Sure, a lot of non-text files such as images and binaries will be opened as 'garbage', unrecognised characters and such. But other times the info you're looking for is in un-encoded ASCII and then having the ability to view it is useful.
You're looking for HexEdit by the sounds of it. There are likely several (or many!) so look around for more if you don't like the looks of this one.
EDIT: And, they come in both GUI and console versions - just look around a bit.
Last edited by GrapefruiTgirl; 07-26-2010 at 12:41 PM.
Well one the simplest you could get is cat I suppose, and if you want, something like less to page it unless you chop the output down somehow. That will (try) to open any file you want, the results depending on what is inside and how your terminal reacts to the data (some binary content could possibly mess your terminal session, so be prepared to open a new instance). I don't think the program you mentioned, or any other for that matter, has "editing capabilities" aimed specifically at every possible file type, given that new types, proprietary and open, pop up and get pushed down all the time. If you only want to read and write text (as in ASCII), then about every text editor ought to do, if they're written such that they don't choke on a huge amount of data (i.e. do not try to slurp the whole file at once, if it's not possible due to the way the program is built).
If you're not afraid of jungle, try Emacs. When you start wondering how many days it was since you jumped in, it'll give you a calendar (M-x calendar RET) to check the day from, among other things. And when you're ready, there's always the psychoterapist (M-x doctor RET)
Last edited by b0uncer; 07-26-2010 at 01:29 PM.
Reason: added key shortcuts