Skip to content

Instantly share code, notes, and snippets.

@gggauravgandhi
Last active February 4, 2021 05:27
Show Gist options
  • Save gggauravgandhi/3f999f59ef6faad68ea28c19206e6a97 to your computer and use it in GitHub Desktop.
Save gggauravgandhi/3f999f59ef6faad68ea28c19206e6a97 to your computer and use it in GitHub Desktop.
Prints the installation date of your linux installation (Debian only)
# 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