Skip to main content

Posts

Recovery Of Deleted Files on Linux.

Linux debugfs : Recover files. U ndeletion means restoring files which have been deleted from Linux ext3 file system using rm command. Deleted files can be recovered on ext3 file systems using the debugfs program. This quick tutorial describes how to recover a file that was recently deleted using nothing but standard Linux command line utilities. Only sys administrators and root user can view and recover the deleted files using debugfs command. You need to immediately unmount the file system the deleted file was located on to minimizes the risk that the data of the deleted file are overwritten by other users or system process. A step-by-step guide for recovering files using debugfs Create a text file called data.txt, enter: echo 'This is a test' > data.txt Display the index number (inode) of data.txt, enter: ls -li data.txt Sample outputs: 7536648 -rw-r--r-- 1 root root 15 May 3 12:40 data.txt Please note down inode # 7536648. To find out the contents...

Find Command. Uses in Diffrent Cases..

find commands examples with explanation find command  is very much powerful command which can do good work when its needed to find files with conditions. Find command  is useful when finding files with complex requirement such as size, permissions etc. Suppose we want to find a file which is a regular file and its size is more than 1GB and its accessed more than 90 days back and its owner is none and then delete it. This entire requirement is done with single command without even writing a  shell script . Let’s see how we can use find command from basics to advanced in this post. find command can find files according to 1) File names 2) File types 3) Permissions 4) Owners 5) Modified date and time 6) Size Advanced finds command usages 1) Mix of all the above things 2) AND operator 3) Search for files and execute commands on them     ...