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.
Hi, I'm asking again to (hopefully this time get an answer) (man I hope watael isn't around)
a little background: I've got a stupid mp3player, that doesn't order the media numerically/alphabetically but in the order the files are found on the disk... I've found out that most operating systems don't actually order these files either: they only display them this way to the user, this means that when I copy folders to my mp3player the order is all messed up... and I don't know "any" bash syntax, only cp,mv,rm,grep|apt-get etc
I've got all the folders I want copied to my player in one directory, and all the mp3s inside numbered 01,02..10,11..21,22..
Can you please [tell bash/cat/sed?/mkdir/cp to] make folders of the same names in the player, and then copy the mp3s 'in order' to the appropriate folders?
Click here to see the post LQ members have rated as the most helpful post in this thread.
Firstly, you do realise that the os and the file system are the ones that work out what is written where
and in what order and that it is simply the program you use for viewing things that actually displays the order
how you wish to perceive it??
Assuming you understand the above, what program are you using to view the file that you want in, i am guessing,
a numerically sorted order?
to show you what I mean: go into an album folder and type:
(the time each file was written) and you see str8 away they are jumbled.
rsync does not actually do it but this does
(I am so glad to finally find this as it saves me alot of time)
(the sort -z may not need the r after it, not sure just did it in test folders on my computer not the st00pid mp3player)
This problem exists because vfat is terrible file system.
After copying the files and *unmounting* the device, you can run fatsort on it (the device not the mount point). This command is packaged in debian under the same name, and therefore I guess it will be in Ubuntu too.
It think this may be the best solution, since it allows you to copy the files in any way you like.
it would be a whole lot more interesting if someone from a distro team or two were here saying "You know what we would be stupid not to add this simple functionality into every Linux distro out of the box from now (5 years ago?) on"