When have you installed your distro??!

Welcome back dears in this new tip on LINUXATION. As you see in the title, the question today is: When have you installed your distro?
In a simple command line we can know the date and the time we installed our GNU/Linux distribution at.
Open the terminal/konsole emulator and type:
ls -l /var/log/installer/syslog
and press [Enter]. A message will be printed to you with the date and the time. For me, after entering this command I got this result:
-rw------- 1 root root 871244 Oct 16 11:06 /var/log/installer/syslog
Which mean I’ve installed my distro in the 16th of October in this year, at 11:06 😀
Actually I backed to Debian in the 1st of October, but it was Debian Cinnamon, but in the 16th I backed to use Debian Jessie KDE 😀

Reference:

  • Linux Arab Community on Facebook
    Advertisements

Return “history” command to zero

When we types the history command in terminal, we get the result which is the previous commands we entered, how to delete these commands and begin from scratch?

To do this you only need to put this command in your terminal:

cat /dev/null > ~/.bash_history && history -c && exit

The command cat /dev/null > ~/.bash_history clears the contain of ~/.bash_history file. And history -c deletes the current terminal history.

The References: