linux - find - What happens if you omit -name and single quotes? -
linux - find - What happens if you omit -name and single quotes? -
instead of typing find / -name 'filename' accidentally typed find / filename
(note missing -name , single quotes).
the command printed whole root file tree (it long list) , appended find: „filename“: no such file or directory @ end of it. did do?
when do
find / filename find assumes want search 2 directories/files named / , filename. / present, lists files in , filename not there in current directory, errors out.
it's functionally equivalent running find twice:
find / , find filename
create file/directory named filename in current working directory, you'll understand behaviour.
linux terminal find
Comments
Post a Comment