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.
sure, there is a way, for example ls will show it to you, also gnome commander can do that. But actually you need to say what program are you using....
File extensions should already show. Like if you are looking for .jar file it will say .jar if you ls the directory. Linux doesn't hide file extensions like Windows does or at least Red Hat doesn't.
You can see what type of file it is by using -F. It will put a symbol or in the case of a plain file it will put nothing.
@ - symbolic link
\ - directory
* - executable
or if you do a long listing on a directory you will see on the permissions whether it is directory or not. ls -l
What file manager are you using to view the files? Previous answers have focused on viewing directory listings using the 'ls' command in the shell ("Terminal"), but you may be using Metacity or some other file manager. If you're using stock CentOS 6.2 you're probably running the Gnome 2.28 window manager which comes with Metacity as the default file manager. Metacity should show file extensions by default, though. Can you double-check and clarify what file manager you're using?
Also, if you are looking in a directory containing executable files, such as /usr/bin, note that executable files in Linux normally have no file extensions.
Depending on how new to linux you are, the question you are asking may be a little more left of centre if you are only used to Windows. As stated by frankbell above, linux is not driven
by file extensions like Windows is. In fact file extensions are used mainly by humans to know what data is in a file and not by the system. (not sure if that helps at all)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.