Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
hello!
what the replacement of windows file extensions in linux
how could someone recognize whta type pf file this is and run it using the suitable application?
File type extensions are the same across platforms---ie pdf is pdf, jpg is jpg etc.
You will of course find some extensions that are only used on one platform or the other.
There are typically configuration setting that tell the system what default app to use with a given extension. This will depend on the system you are using.
IBall is correct, for the most part files are determined by their magic number (which is the pattern at the start of a file) and not by extension. "man file" does a good job of explaining this.
There are applications which are aware of extensions and use them for easily location files which belong to them.
actually, extension matter in the GUI land. The popular DE's (and all file managers iv every tried, besides worker) dont use magic numbers to determine file type (which is really sad), this makes extensions needed for users documents. On the lower levels of the system (traditional UNIX), file type is meaningless, as the user is the one who opens the file in whatever program they want.
the command "file" can be used to see what type of file something is, but it wont match files to programs or extentions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.