find error?? find / -name "something.txt" 2>/dev/null

why is this giving me errors?

i type this in:

find / -name "something.txt" 2>/dev/null

i get the following error messages:

find: bad option 2
find: path-list predicate-list

:confused:

What are you typing that into?

1 Like

Holy cow, you're right! it is the server i typed that into. it is some server i ssh into.

---------- Post updated at 04:31 PM ---------- Previous update was at 04:29 PM ----------

find / -name "something.txt" <--- this works, but it shows lots of errors

What shell are you using? Is it CSH maybe?

1 Like

yea, it is

Use KSH, or BASH then.