Skip to main content
deleted 4 characters in body
Source Link
knittl
  • 4k
  • 2
  • 18
  • 18

Checking for executable files can be done with -perm (not recommended) or -executable (recommended, as it takes ACL into account). To use the -executable option:

find <dir>DIR -executable

ifIf you want to find only executable files and not searchable directories, combine with -type f:

find <dir>DIR -executable -type f

Checking for executable files can be done with -perm (not recommended) or -executable (recommended, as it takes ACL into account). To use the -executable option:

find <dir> -executable

if you want to find only executable files and not searchable directories, combine with -type f:

find <dir> -executable -type f

Checking for executable files can be done with -perm (not recommended) or -executable (recommended, as it takes ACL into account). To use the -executable option:

find DIR -executable

If you want to find only executable files and not searchable directories, combine with -type f:

find DIR -executable -type f
deleted 95 characters in body
Source Link
slhck
  • 230.1k
  • 71
  • 621
  • 603

Checking for executable files can be done with -perm (not recommended) or -executable (recommended, as it takes ACL into account). To use the -executable option:

find <dir> -executable

if you want to find only executable files and not searchable directories, combine with -type f:

find <dir> -executable -type f

EDIT:

checking with the comments i see there’s no type x. i’m sorry, this was my mistake. checking for executable files can be done with -perm (not recommended) or -executable (recommended, as it takes ACL into account).

use the -executable option:

find <dir> -executable

if you want to find only executable files and not searchable directories, combine with -type f:

find <dir> -executable -type f

EDIT:

checking with the comments i see there’s no type x. i’m sorry, this was my mistake. checking for executable files can be done with -perm (not recommended) or -executable (recommended, as it takes ACL into account).

Checking for executable files can be done with -perm (not recommended) or -executable (recommended, as it takes ACL into account). To use the -executable option:

find <dir> -executable

if you want to find only executable files and not searchable directories, combine with -type f:

find <dir> -executable -type f
added 8 characters in body
Source Link
knittl
  • 4k
  • 2
  • 18
  • 18

use the -executable option:

find <dir> -executable

if you want to find only executable files and not searchable directories, combine with -type f:

find <dir> -executable -type f

EDIT:

checking with the comments i see there’s no type x. i’m sorry, this was my badmistake. checking for executable files can be done with -perm-perm (not recommended) or -executable-executable (recommended, as it takes ACL into account).

use the -executable option:

find <dir> -executable

if you want to find only executable files and not searchable directories, combine with -type f:

find <dir> -executable -type f

EDIT:

checking with the comments i see there’s no type x. i’m sorry, this was my bad. checking for executable files can be done with -perm (not recommended) or -executable (recommended, as it takes ACL into account).

use the -executable option:

find <dir> -executable

if you want to find only executable files and not searchable directories, combine with -type f:

find <dir> -executable -type f

EDIT:

checking with the comments i see there’s no type x. i’m sorry, this was my mistake. checking for executable files can be done with -perm (not recommended) or -executable (recommended, as it takes ACL into account).

added 379 characters in body
Source Link
knittl
  • 4k
  • 2
  • 18
  • 18
Loading
Post Migrated Here from stackoverflow.com (revisions)
Source Link
knittl
  • 4k
  • 2
  • 18
  • 18
Loading