Last active
December 29, 2015 14:42
-
-
Save titouanc/349c019e1be749d16ebb to your computer and use it in GitHub Desktop.
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
/dev/pts/0: 2015-12-29 14:12:06.480280443 +0100 | |
/dev/pts/1: 2015-12-29 15:07:40.145450287 +0100 | |
/dev/pts/2: 2015-12-29 15:03:11.424450518 +0100 | |
/dev/pts/3: 2015-12-29 12:18:30.591568414 +0100 | |
/dev/pts/4: 2015-12-29 15:39:55.479915482 +0100 | |
/dev/pts/5: 2015-12-29 12:23:00.766705995 +0100 | |
/dev/pts/6: 2015-12-29 15:41:47.345807689 +0100 | |
/dev/pts/7: 2015-12-29 15:34:30.917995575 +0100 | |
/dev/pts/ptmx: 2015-12-26 12:06:46.640002657 +0100 | |
Maintenant: 2015-12-29 15:41:47 | |
Maintenant aussi: 2015-12-29 15:41:47.390971982 +0100 |
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
for pts in /dev/pts/*; do | |
# stat -c: comme printf, mais pour formater des attributs de fichier | |
# %x: last access time | |
echo $pts: $(stat -c %x $pts) | |
done | |
echo Maintenant: $(date +"%Y-%m-%d %H:%M:%S") | |
touch /tmp/date && echo Maintenant aussi: $(stat -c %x /tmp/date) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment