Misc: Difference between revisions

From Anthony Pastor Wiki Notes - Verba volant, scripta manent
Jump to navigation Jump to search
(Created page with "=How do I find how long ago a Linux system was installed ?= <syntaxhighlight lang="bash"> # tune2fs -l /dev/dm-0 | grep 'Filesystem created:' Filesystem created: Thu Fe...")
 
No edit summary
Line 1: Line 1:
=How do I find how long ago a Linux system was installed ?=
= How do I find how long ago a Linux system was installed ? =
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
# tune2fs -l /dev/dm-0  | grep 'Filesystem created:'
# tune2fs -l /dev/dm-0  | grep 'Filesystem created:'
Filesystem created:      Thu Feb  4 05:46:35 2016
Filesystem created:      Thu Feb  4 05:46:35 2016
</syntaxhighlight>
= Sort files/directories by size =
<syntaxhighlight lang="bash">
du -skh * | sort -rn
</syntaxhighlight>
</syntaxhighlight>

Revision as of 10:50, 29 April 2016

How do I find how long ago a Linux system was installed ?

# tune2fs -l /dev/dm-0  | grep 'Filesystem created:'
Filesystem created:       Thu Feb  4 05:46:35 2016

Sort files/directories by size

du -skh * | sort -rn