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!
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 am dual booting linux with WinXP. I was/am storing a large amount of digital images (100+ images from camera) in linux, where I decided to rename all the files. The file names started off as something like image09.jpg where I would rename it as something like House. But in the process of renaming it, the file extension (.jpg or suchlike) was deleted. Linux didn't mind this, and still recognised the file as an image. But when I try to load the images back into XP, it doesnt recognise the file as being an image and so gives it an extension of FILE.
By renaming the image (in XP) with .jpg on the end, XP will recognise it. Same happens if I load the file into an image viewer. But renaming the file with the extension .jpg (or whatever) is time consuming and annoying.
Is there a way in linux to reinstate the file extension without having to go through and rename the images? Or does anyone no of any way of doing the same in XP? Any help will be much appreciated and I hope what I have written makes sense.
This should do the trick :
for X in *; do mv $X $X.jpg; done
Make sure you run it only in the directories where the files are you wish to rename. Running it in a directory that has stuff you do not want to have a .jpg extension would be a bad thing as it will add .jpg to everything in the current directory.