Last active
February 4, 2021 05:27
-
-
Save gggauravgandhi/3f999f59ef6faad68ea28c19206e6a97 to your computer and use it in GitHub Desktop.
Prints the installation date of your linux installation (Debian only)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Method 1 | |
echo "$(sudo ls -alct /|tail -1|awk '{print $6, $7, $8}')" | |
# Method 2 | |
echo "$(last | grep 'wtmp'|awk '{print $3, $4, $5, $6, $7}')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment