When I run the code "grep -rl 'my string' ./", I receive the output of file names that contain 'my string' in it. When I go to view that file using vi, it comes up as a lot of weird characters. I've tried viewing the code using hexdump and xdd also, and that just outputs it in 1s and 0s. How do I view the code that grep views? As in, how do I view the code with the readable code 'my string' in it? The file in this case is a .so file. Thank you
1
There are 1 best solutions below
Related Questions in LINUX
- Is there some way to use printf to print a horizontal list of decrementing hex digits in NASM assembly on Linux
- Why does Hugo generate different taxonomy-related HTML on different OS's?
- Writes in io_uring do not advance the file offset
- Why `set -o pipefail` gives different output even though the pipe is not failing
- what really controls the permissions: UID or eUID?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Docker container unable to make HTTPS requests to external API
- Whow to use callback_query_handler in Python 3.10
- Create kea runtime directory at startup in Yocto image
- Problem on CPU scheduling algorithms in OS
- How to copy files into the singularity sandbox?
- Android kernel error: undefined reference to `get_hw_version_platform'
- Is there a need for BPF Linux namespace?
- Error when trying to execute a binary compiled in a Kali Linux machine on an Ubuntu system
- Issue with launching application after updating ElectronJs to version 28.0.0 on Windows and Linux
Related Questions in GREP
- How to grep a line followed by a newline from output in terminal
- grep expression behaving weird (unix/mac) while reading a conf file
- how to keep the colored output of a command after piping it through grep
- How to str_detect a pattern in the pipe to relocate columns
- I want to zgrep from .debug.gz and get lines before and after the string
- How do I find the first # after an even number of "?
- Bash: checking gzip using == or "| grep"
- grep for string and open matching files in text editor
- How to grep my one-line file with constant key?
- My console program output does not seem to work with grep
- How can I pipe a docker ps output to a docker stop command?
- awk with exclude pattern in shell
- How to get image red green blue standard deviation values from gm identify -verbose?
- grep: color different parts of output
- find and grep - Suppress terminated by signal 13
Related Questions in BINARYFILES
- binary file and interpretation in java script?
- What is 'Invalid Load Key, '\x00'
- I have a response from an API in the form of a binary file and I need to transform it into a PDF in react.js
- Python: Can't create a binary file with a "with open(xxxxx)" line, using an os.path generated path (single backslash passed as double?)
- Decode binary file in AWS environment using PySpark
- How to read a .bin file and display the extact content of it in a table cell?
- unable to open zip after creating it
- Executing binary file on Oracle image goes to Exec format error
- how to convert python string binary representation to json
- Python code for read/write binary file and convert it to .pcap
- Convert simple data format file(.sdf) to csv
- feof() doesn´t detect end of file when i'm updating a binary file in C/C++
- git repo size due to commit binary file to multiple branches
- adding firmware binary(.bin) in flash image in Modular FIT?
- In Android Studio how can I execute the iperf3 binary in Android app, ensuring the permissions are granted, and avoiding the "Permission denied"
Related Questions in .SO
- User defined .c and .h file management
- Linking .so file on Eclipse
- Compiling several source (main and headers) files and linking them in ROOT CINT?
- how create .so file on Eclipse opencv cpp (c++)
- How to add .so file in tizen
- How do I link against an .so from Android Studio 2.3?
- Calling c program from different Android project
- How to unload or specify binary .so library with FFI::Library in ruby?
- Integrating OpenCV with Unity Using Android NDK: Issues Loading Native Libraries in Unity
- Tensorflow C API compiled as .so library __gnu_cxx::recursive_init_error
- how to use .so, .c, .o files in my android kivy project
- Rust dynamically link .so library
- How to solve ' undefined reference ' error when executed 'make' command and get the final output file
- Can I compile a dynamic lib on Linux and link on Windows?
- D language import local module
Related Questions in HUMAN-READABLE
- Is there a way to convert unknow file type to human readable format?
- Sort strings containing numbers, chars and ponctuations in ”human readable order”
- mapping language variations on a graphical map
- 3MF file openable but does not appear to be human readable XML
- How to check if a file is of type Human readable in Ansible
- What's the easiest way to convert milliseconds to readable String in Java Spring
- remove millisecond from echo time bash
- How to format number in a floating representation, dependent on places before the decimal point in C#?
- Using ethers.utils.FormatTypes.full returns object not string
- Formatting JSON string in a readable way
- Is there a human readable structured logging fomat?
- How does "grep -rl 'string' ./" search through readable code in binary files? Can I view what it's viewing instead of seeing binary output?
- In python, can I create a closure with an anonymous function?
- Guard clause for a single statement function?
- convert a encode value to string
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
What you want is the
stringscommand - a unix command line tool that "looks for ASCII strings in a binary file".If you run
strings <your file name>it will show all the printables there.Source:
man strings