Linux - NewbieThis 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
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all,
I've been browsing some books from the library and looking at some screen shots of 'konqueror' and seen .jpg and .gif files amongst others which obviously proves that these extensions are recognised. Also however, there are files which appear to have no extension and a number of README files. eg. Readme.config, Readme.dri, Readme.sis etc. (I am assuming here that files named Readme are text files which can be read). Now coming, nay fleeing, as I am from windows, I would expect the extensions of these files to be the same ( e.g. txt) so they could be opened with the same app. Am I wrong or is there a different method of associating files?
Please note that I don't have a Linus system as such but it is in the post as I speak! (Red Hat 9)
Thanks
1. Magic Number- a hex code embedded near the beginning of the file. The various registered codes are listed in /usr/share/magic.
2. File extensions- Linux can use file extensions to determine filetype. The extention associations are buried in some deep dark file whose name I've forgotten.
the bottom line is file extensions are irrelevant. create a file with a .txt extension then its mime type/magic number becomes text. renaming it doesnt
doesnt change the filetype. you can find it out by
file filename in command line
in KDE
right click and view properties. you can also change the filetype in the context menu. Gnome should have similar options
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.