Skip to main content

All Questions

Tagged with
3 votes
1 answer
122 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: ./...
user avatar
22 votes
3 answers
17k 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 ...
Tomba's user avatar
  • 395
2 votes
2 answers
5k 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
Lydon Ch's user avatar
  • 6,039