The human being is not a machine or computer and things can be forgotten. Forgetful nature of human can create several complications. Creation of the relevant files and forgetting them is the case that can happen to any of the Linux user. If you still remember the directory name, then by the hook or crook, you can find the specific file.
But this creates delay a big problem if you can’t even remember the bit of information about the missing file. This can happen to anyone as none of us posses the pictorial memory. So that’s for sure that one or the other time, you have undergone the experience of forgetting the path information of the precious file. For this purpose of finding the misplaced file, Windows offers you the find and search tool, where you can type the text or phrase of the filename and hence find all the files which contain this phrase as their filename part.
But the situation can be tricky if you don’t even remember the word or the phrase in the filename, then you need to go through the text of each file. Well in Linux, the whole scenario is somewhat different. Instead of the GUI support, in Linux the more emphasis is on executing the commands from the shell. Certain commands are there which can help you in finding those lost files whose information is slipping from your mind:
grep-lir : This is the command to find the files whose related phrase is not been remembered apart from some text. The three switches: -1, -I and –r help you to output the name of the files containing the text, ignore the case while searching and to descend in the subdirectories respectively.
grep -i –n : To find the files containing the keywords.
grep --with-filename --line-number `find -type f`’: This is the command to look the directory for the files containing the string
If your file is not found by either of the command, then the probable chances are there for the accidental deletion. Look in the ‘Trash Bin’ to locate the file, if you are unable to see the file text or phrase even after restoring all of them.
Then may be you have deleted it using the rm command or Shift+Delete key, inaccessible by Linux operating system. Now in this case the only cure to get the file back is to have the Linux recovery solution, practical through Linux Data Recovery software. File and data always reside on the hard disk regardless of the deletion method and can be recovered until overwritten.
Linux data recovery software works on the same principle and deploys some specific algorithms to retrieve the lost information. Data loss can be traumatic if the lost data is at the cost of your business. But the proper application of the data recovery Linux software would help you to come out of this ditch.
0 comments:
Post a Comment