match both uppercase and lowercase character. Where, -i : Ignore case distinctions in both the PATTERN and the input files i.e. Use following grep syntax: grep -b 'search-text' /dev/partition > file.txt Using grep (traditional UNIX way) to recover files Next use init 1 command to take system to a single user mode: # init 1
The following are generic steps to recover text files.įirst use wall command to tell user that system is going down in a single user mode: # wall