finding a file
Hi all
I am total new to linux as I worked mostly on RTOS ( symbian ) My problem is , I need to find the file IOSTREAM.H and I am following commands below 1) cd / 2) find . iostream.h ( finds the file / directory from the current path) It shows No such File or Directory |
Better find / -name iostream.h otherwise find will take iostream.h as a place to look -- that's what generates "No such File or Directory".
iostream.h does not exist on my Slackware 13.0 system. |
Hello and welcome to LinuxQuestions,
In addition to the command provided by catkin I'd put it like this to avoid searching directory names: Code:
find / -type f -name iostream.h Code:
find / -mount -type f -name iostream.h Kind regards, Eric |
Sorry got the Answer
Using "Locate filename" |
Hi,
That's another possibility of course. Well done. If you consider your question/problem solved, then please mark it as such using the thread tools. Kind regards, Eric |
Examples ..
/usr/include/c++/4.1.3/backward/iostream.h is an old c++ header from gcc-c++, libstdc++<version>-devel 'iostream' : /usr/include/c++/4.4.1/iostream .. |
Note that you can use wildcards in find. But you have to enclose them in single quotes to keep bash from interpreting them, and instead pass them to find.
|
Quote:
|
All times are GMT -5. The time now is 11:23 PM. |