• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Strings Command in Linux

I am just learning Linux at school. For some reason I can't use the strings command on my computer.
The strange thing is some people can use it on their computers and others can't. Does any one know why I
I can't use the srings command?

Thank you

EDIT: This is what it says when I try to use the strings command
bash:strings: command not found
 
I'm at home right now and cannot remember exactly what it says. Something along the lines of:

Bad command (bath or batch)😕 strings command.

 
Originally posted by: dragonballgtz
I'm at home right now and cannot remember exactly what it says. Something along the lines of:

Bad command (bath or batch)😕 strings command.

How are we supposed to diagnose a problem if we don't know anything about it?

Make sure strings is in your $PATH.
 
Originally posted by: n0cmonkey
Originally posted by: dragonballgtz
I'm at home right now and cannot remember exactly what it says. Something along the lines of:

Bad command (bath or batch)😕 strings command.

How are we supposed to diagnose a problem if we don't know anything about it?

Make sure strings is in your $PATH.

I posted the topic while I was at school. Sorry.
 
Originally posted by: dragonballgtz
Originally posted by: n0cmonkey
Originally posted by: dragonballgtz
I'm at home right now and cannot remember exactly what it says. Something along the lines of:

Bad command (bath or batch)😕 strings command.

How are we supposed to diagnose a problem if we don't know anything about it?

Make sure strings is in your $PATH.

I posted the topic while I was at school. Sorry.

OK I'm at school now and it says
bash:strings: command not found

 
run "locate strings" to see if it is installed. If it is, add the path to it in your $PATH.
 
Necro thread, but I'm encountering this problem as well.

Code:
# which strings
which: no strings in (/home/[user]/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin)

I'm running OpenSUSE 11.4 (x86_64). I recently installed via a LiveCD; did I miss a setting somewhere?
 
WHICH will only tell you what YOU have set for your path. If your path isn't set correctly, it won't find anything. As already stated, start with running "locate strings", and if that doesn't work (as could very well be the case, because they probably are not running the "updatedb" command), you should next try "find / -name strings -print"... That command WILL take a while. Now I personally have "strings" located under "/usr/bin/", but I could just as easily had it under "/data/my_data/personal_stuff/bin/strings", or "/home/username/bin/strings", or "/opt/GNU/bin/strings", or basically anywhere the sys admin placed the software or mounted it from a remote system, or you yourself compiled, built, and installed....

If you use Red Hat or similar RPM based system, you can try running "rpm -qa | grep binutils" (at least on Red Hat, strings is part of the binutils RPM), and then you will know if it was installed. If this is a school system, it is also very possible that the system admin didn't install it on all the machines, and you might need to ssh into a different computer to access it....

EDIT:

Just saw you use SuSE which is RPM based, and the strings command is included in the binutils rpm. So you probably need to install the binutils rpm, which should be located on your installation DVD somewhere. Once you find the RPM file, do "rpm -ivh your_binutils_file_rpm_name"
 
Last edited:
Back
Top