Skip to main content

I have got the directory called Test and a few directories inside it. Both Test and the directories inside it have executable files. I'd like to print them with ls. I'd use this command.

ls -l `find Test/ -perm /u=x,g=x,o=x -type f`

Is this a good/right/quick command or not?

My solution. is:

I tried

find Test/ -executable -type f -exec ls -l {} \;

and got the same result as warl0ck and pradeepchhetri offered.

I have got the directory called Test and a few directories inside it. Both Test and the directories inside it have executable files. I'd like to print them with ls. I'd use this command.

ls -l `find Test/ -perm /u=x,g=x,o=x -type f`

Is this a good/right/quick command or not?

My solution.

I tried

find Test/ -executable -type f -exec ls -l {} \;

and got the same result as warl0ck and pradeepchhetri offered.

I have got the directory called Test and a few directories inside it. Both Test and the directories inside it have executable files. I'd like to print them with ls. I'd use this command.

ls -l `find Test/ -perm /u=x,g=x,o=x -type f`

Is this a good/right/quick command or not?

My solution is:

find Test/ -executable -type f -exec ls -l {} \;

and got the same result as warl0ck and pradeepchhetri offered.

added 149 characters in body
Source Link

I have got the directory called Test and a few directories inside it. Both Test and the directories inside it have executable files. I'd like to print them with ls. I'd use this command.

ls -l `find Test/ -perm /u=x,g=x,o=x -type f`

Is this a good/right/quick command or not?

My solution.

I tried

find Test/ -executable -type f -exec ls -l {} \;

and got the same result as warl0ck and pradeepchhetri offered.

I have got the directory called Test and a few directories inside it. Both Test and the directories inside it have executable files. I'd like to print them with ls. I'd use this command.

ls -l `find Test/ -perm /u=x,g=x,o=x -type f`

Is this a good/right/quick command or not?

I have got the directory called Test and a few directories inside it. Both Test and the directories inside it have executable files. I'd like to print them with ls. I'd use this command.

ls -l `find Test/ -perm /u=x,g=x,o=x -type f`

Is this a good/right/quick command or not?

My solution.

I tried

find Test/ -executable -type f -exec ls -l {} \;

and got the same result as warl0ck and pradeepchhetri offered.

Source Link

Find executable files recursively

I have got the directory called Test and a few directories inside it. Both Test and the directories inside it have executable files. I'd like to print them with ls. I'd use this command.

ls -l `find Test/ -perm /u=x,g=x,o=x -type f`

Is this a good/right/quick command or not?