find `-delete` doesn't delete files? [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0
















This question already has an answer here:



  • `find` with multiple `-name` and `-exec` executes only the last matches of `-name`

    2 answers



  • Problem combining -or and -exec with find command [duplicate]

    1 answer



  • Operator precedence in a find command?

    1 answer



Look at this example:



$ ls -l /home/kossak/.asdf/shims/gettext
-rw-rw-r-- 1 kossak kossak 0 Feb 6 13:51 /home/kossak/.asdf/shims/gettext
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh'
/home/kossak/.asdf/shims/gettext
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh' -delete
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh'
/home/kossak/.asdf/shims/gettext


Why gettext file is not being deleted?



I'm using:



$ find --version
find (GNU findutils) 4.7.0-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS(FTS_CWDFD) CBO(level=2)

$ fish --version
fish, version 2.7.1

$ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 18.3 Sylvia
Release: 18.3
Codename: sylvia









share|improve this question













marked as duplicate by ilkkachu, Mr Shunz, Stephen Kitt linux
Users with the  linux badge can single-handedly close linux questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Feb 6 at 13:09


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















  • Also: How to use find command to search for multiple extensions, Find with multiple extension does not work with -exec, Operator precedence in a find command?, and find with multiple -name and -exec executes only the last matches of -name

    – ilkkachu
    Feb 6 at 13:05















0
















This question already has an answer here:



  • `find` with multiple `-name` and `-exec` executes only the last matches of `-name`

    2 answers



  • Problem combining -or and -exec with find command [duplicate]

    1 answer



  • Operator precedence in a find command?

    1 answer



Look at this example:



$ ls -l /home/kossak/.asdf/shims/gettext
-rw-rw-r-- 1 kossak kossak 0 Feb 6 13:51 /home/kossak/.asdf/shims/gettext
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh'
/home/kossak/.asdf/shims/gettext
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh' -delete
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh'
/home/kossak/.asdf/shims/gettext


Why gettext file is not being deleted?



I'm using:



$ find --version
find (GNU findutils) 4.7.0-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS(FTS_CWDFD) CBO(level=2)

$ fish --version
fish, version 2.7.1

$ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 18.3 Sylvia
Release: 18.3
Codename: sylvia









share|improve this question













marked as duplicate by ilkkachu, Mr Shunz, Stephen Kitt linux
Users with the  linux badge can single-handedly close linux questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Feb 6 at 13:09


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















  • Also: How to use find command to search for multiple extensions, Find with multiple extension does not work with -exec, Operator precedence in a find command?, and find with multiple -name and -exec executes only the last matches of -name

    – ilkkachu
    Feb 6 at 13:05













0












0








0


0







This question already has an answer here:



  • `find` with multiple `-name` and `-exec` executes only the last matches of `-name`

    2 answers



  • Problem combining -or and -exec with find command [duplicate]

    1 answer



  • Operator precedence in a find command?

    1 answer



Look at this example:



$ ls -l /home/kossak/.asdf/shims/gettext
-rw-rw-r-- 1 kossak kossak 0 Feb 6 13:51 /home/kossak/.asdf/shims/gettext
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh'
/home/kossak/.asdf/shims/gettext
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh' -delete
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh'
/home/kossak/.asdf/shims/gettext


Why gettext file is not being deleted?



I'm using:



$ find --version
find (GNU findutils) 4.7.0-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS(FTS_CWDFD) CBO(level=2)

$ fish --version
fish, version 2.7.1

$ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 18.3 Sylvia
Release: 18.3
Codename: sylvia









share|improve this question















This question already has an answer here:



  • `find` with multiple `-name` and `-exec` executes only the last matches of `-name`

    2 answers



  • Problem combining -or and -exec with find command [duplicate]

    1 answer



  • Operator precedence in a find command?

    1 answer



Look at this example:



$ ls -l /home/kossak/.asdf/shims/gettext
-rw-rw-r-- 1 kossak kossak 0 Feb 6 13:51 /home/kossak/.asdf/shims/gettext
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh'
/home/kossak/.asdf/shims/gettext
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh' -delete
$ find ~/.asdf/shims -name 'gettext' -or -name 'gettext.sh'
/home/kossak/.asdf/shims/gettext


Why gettext file is not being deleted?



I'm using:



$ find --version
find (GNU findutils) 4.7.0-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS(FTS_CWDFD) CBO(level=2)

$ fish --version
fish, version 2.7.1

$ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 18.3 Sylvia
Release: 18.3
Codename: sylvia




This question already has an answer here:



  • `find` with multiple `-name` and `-exec` executes only the last matches of `-name`

    2 answers



  • Problem combining -or and -exec with find command [duplicate]

    1 answer



  • Operator precedence in a find command?

    1 answer







linux find






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 6 at 12:56









KossakKossak

290314




290314




marked as duplicate by ilkkachu, Mr Shunz, Stephen Kitt linux
Users with the  linux badge can single-handedly close linux questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Feb 6 at 13:09


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









marked as duplicate by ilkkachu, Mr Shunz, Stephen Kitt linux
Users with the  linux badge can single-handedly close linux questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Feb 6 at 13:09


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • Also: How to use find command to search for multiple extensions, Find with multiple extension does not work with -exec, Operator precedence in a find command?, and find with multiple -name and -exec executes only the last matches of -name

    – ilkkachu
    Feb 6 at 13:05

















  • Also: How to use find command to search for multiple extensions, Find with multiple extension does not work with -exec, Operator precedence in a find command?, and find with multiple -name and -exec executes only the last matches of -name

    – ilkkachu
    Feb 6 at 13:05
















Also: How to use find command to search for multiple extensions, Find with multiple extension does not work with -exec, Operator precedence in a find command?, and find with multiple -name and -exec executes only the last matches of -name

– ilkkachu
Feb 6 at 13:05





Also: How to use find command to search for multiple extensions, Find with multiple extension does not work with -exec, Operator precedence in a find command?, and find with multiple -name and -exec executes only the last matches of -name

– ilkkachu
Feb 6 at 13:05










0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay