4
votes
1answer
45 views

Finding the newest file in a directory with a million files

I'm currently using ls -t | head -1 to get the name of the newest file. But it takes a long time because my directory has a million files. I guess a chunk of time is lost unnecessarily in ls -t when ...
0
votes
1answer
393 views

Download from http server all directories,files and subdirectories and so on

I want to download from remote http server all files directories,files and so on. I found some solutions to ftp server,but doesn't work to http. Until now no luck with wget -r or -m. It download all ...
1
vote
1answer
294 views

How to list a subset of files in several directories?

I'm starting to pick up Linux. I have one directory called class03 with five directories in it: _html html dothtml images 123 I need a one-line command that lists all files with -01, -02 and -03 in ...
1
vote
3answers
2k views

Find directories with all files inside older than X?

Is it possible on linux to find directories where all contained files and directories (and sub-directories' files etc.) are older than a given age? In other words, if a directory has one or more files ...
2
votes
2answers
130 views

Linux: Finding the largest directories on web host

I've got a web host (linux hosting) whose disk is almost completely full. How do I list out directories (and their subdirectories) by largest size to figure out where the biggest disk hogs are?
0
votes
3answers
172 views

what is the command for listing files/dirs recursively of specific directories

suppose in my current directory, I have 50 sub-directories. Now, I am interested only in about 20 of those sub-directories (whose names match a pattern). I would like to recursively list the contents ...
1
vote
3answers
1k views

I/O error with ls on several directories

I have an NTFS partition mounted on my Ubuntu system. And one of my directories which conatians thousands of .xm music appears empty in Nautilus. When I try to list the contents using ls it says ...