Tag Archives: linux

How to make an shell alert service – and sent a mail?

logo2How to send a notification from Your server to mailbox?
How to create alerting service what will send a mail to us?
Sometime we need to be noticed about miscelaneous situations in our linux/unix systems.
Let’s make a small notice program – i need to been warned when amount of files in specified directory exceed defined value.

Read more ...

How to find files with specified string… string in bytes (hex values)?

Zaznaczenie_005It’s easy to find files containing specified text string – using grep.
But if we must find files with part of a binary string?
Let’s try…

 

 

 

 

Read more ...

My flash pendrive is damaged! How to recover data using ddrescue?

pendriveIn march 2013 my flash pendrive has gone crazy. This is an unwanted situation what can happen to everyone. I have backup, but old, from 2-3 months ago. Pendrive is dead in specified way. He shown their presence not in all time, for second-third mount.

I not remember all steps in this situation (6 months past) but i found some notes writed myself  of my recovery process, so i try to explain what i do to recover data from my usb stick.

Read more ...

Remove file with strange name (non-printable character)

What is that file?New problem spotted today – when i edited one file, by a mistake i created a new one, with strange name. File was saved as ^H – page break code.



 

Read more ...