3
votes
1answer
96 views

Specific ls output

Right now I'm calling the the following command ls -R and am receiving an output like this: .: file.txt script.php ./dir: file.txt other.java Is it possible to get the output to look like this: ...
6
votes
3answers
6k views

Recursive ls with conditions

Why can't I use a command like this to find all the pdf files in a directory and subdirectories? How do I do it? (I'm using bash in ubuntu) ls -R *.pdf EDIT How would I then go about deleting all ...
2
votes
2answers
3k views

List files based on modification times

How can I run the ls command with all its options and list all files in directories recursively and sort it based on last modification times? ie ls -lth on all files in directories recursively