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.
I am trying to recover a certain file from a Windows partition which has become inaccessible owing to the fact that I've accidentally wiped the boot sector and the first two Linux partitions. Don't you just hate it when THAT happens? Anyway, I am going to reformat the HDD and meant to save this file before wiping it, but now I have to recover it from a Linux live CD (Knoppix in this instance).
So I've got to the root of the Windows ntfs system in the console and can see the file system fine. Now I need to locate this very large (movie) file (>5Gb). What's the best command to use from the console to locate in which directory this file is? Something based on its huge size would be just the job, I guess. Thanks, CC.
find has many, many options. You could try (from the root of the Windows partition):
Code:
find . -size +5G
This should find all files larger than 5 gigs.
Hey, thanks, man. You've saved my scrawny ass. It was the ONLY file on the system that big and your command found it immediately!
I had already checked out the man page for "find" but those man pages are SO indecypherable for us mere mortals as to be totally unintelligible; they seldom if ever provide useful example commands and as such are only suitable for nerds suffering from Asberger's Syndrome. Thanks again, buddy.
... those man pages are SO indecypherable for us mere mortals as to be totally unintelligible; they seldom if ever provide useful example commands and as such are only suitable for nerds suffering from Asberger's Syndrome.
De rien (or graag gedaan)!
One day, you too will finally be able to understand the man pages. On that day, you will realise you are no longer able to have a conversation with an ordinary mortal...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.