Amet Umerov

Well, it sounds weird but I caught this thing once.

I’ve got a file with the name S�vety-i-rekom.pdf on my Linux server accidentally. So I decided to delete it using rm but it didn’t work for me.

Here is a way how to delete it actually using a trick with inode:

--

--

Sometimes we have to check the date or OS installation. Here we can find how to do that.

Linux

For Linux we can check the date of creating of FS, which means the date of OS installation:

$ sudo tune2fs -l /dev/sdb2 | grep create
Filesystem created: Thu Jun 5 18:54:43 2014

Windows

There is a command called systeminfo we can use for Windows installation date (Original Install Date field):

systeminfo

macOS

For macOS we have to check a special file that is automatically created after the successful OS installation:

$ ls -l /var/db/.AppleSetupDone
-r-------- 1 root wheel 0 Nov 26 15:53 /var/db/.AppleSetupDone

--

--