wtmp peržiūra ir failų atstatymas

last -f /var/log/wtmp > wtmp.log

recover # veikia tik iki pirmo umount, mount

strings /dev/md0 > failas.txt # istraukia visa info i text faila

find -type d -size +50000 -size -60000 -name ‘testfile*’ -exec rm -rf “{}” \; # istrina testfile katalogus ir ju turini ir kuriu dydis daugiau nei 50000 baitu 🙂 ir maziau nei 60000 baitu

cut -d ‘ ‘ -f1 file

sort file | uniq > file.new

Published by Ruslanas Gžibovskis


Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.