Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I use this command:

sudo grep -R 'mode_t st_mode'

but have many alerts that say many files do not exist.

grep: /usr/share/pyshared/numpy/core/include/numpy/cfunc.h: do not have that file or directory.
grep: /usr/share/omf/totem/totem-uk.omf: do not have that file or directory.

there are many similar alerts.

How should I solve this problem?

and one person say should use "sudo grep -R 'mode_t st_mode' /* 2>dev/null" to cut the noise.

but my question is , how to delete those invalid file? one by one ?

share|improve this question
Please include the exact command you're trying to run. –  David Oneill Jan 17 at 6:34
what's the output of ls -l /usr/share/pyshared/numpy/core/include/numpy/cfunc.h –  janos Jan 17 at 7:13
jack@ubuntu:~$ ls -l /usr/share/pyshared/numpy/core/include/numpy/cfunc.h lrwxrwxrwx 1 root root 31 3月 20 2012 /usr/share/pyshared/numpy/core/include/numpy/cfunc.h -> ../../../numarray/numpy/cfunc.h, i go to the file and find that is a link file. but i check what it link to . the link destanation doesn't exist –  user1279988 Jan 17 at 7:20
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.