Skip to content

Instantly share code, notes, and snippets.

@pbondoer
Created January 10, 2017 06:34
Show Gist options
  • Save pbondoer/b3ad3e0a773a61c1d1edafbcfdfed13e to your computer and use it in GitHub Desktop.
Save pbondoer/b3ad3e0a773a61c1d1edafbcfdfed13e to your computer and use it in GitHub Desktop.
test0/000755 032677 010202 00000000000 12723641560 013566 5ustar00pbondoer2015_paris000000 000000 test1000714 032677 010202 00000000010 12723635570 013503 0ustar00pbondoer2015_paris000000 000000 -n 1234
test2/000504 032677 010202 00000000000 12723644514 013562 5ustar00pbondoer2015_paris000000 000000 test3000404 032677 010202 00000000005 12723653440 013501 0ustar00pbondoer2015_paris000000 000000 -n 1
test4000641 032677 010202 00000000006 12723653344 013511 0ustar00pbondoer2015_paris000000 000000 -n 12
test5000404 032677 010202 00000000000 12723653440 014462 1test3ustar00pbondoer2015_paris000000 000000 test6000755 032677 010202 00000000000 12723641560 014472 2test0ustar00pbondoer2015_paris000000 000000
#!/bin/zsh
mkdir test0 test2
echo -n 1234 > test1
echo -n 1 > test3
echo -n 12 > test4
ln test3 test5
chmod 714 test1
chmod 504 test2
chmod 404 test3 test5
chmod 641 test4
touch -t 06012146 test1
touch -t 06012245 test2
touch -t 06012344 test3
touch -t 06012343 test4
touch -h -t 06012344 test5
touch -t 06012220 test0
ln -sn test0 test6
touch -h -t 06012220 test6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment