Simon Tatham on Nostr: 'mkdir -p' lets you make a deeply nested subdirectory like a/b/c/d, making all the ...
'mkdir -p' lets you make a deeply nested subdirectory like a/b/c/d, making all the intermediate directories on the way to it. So if even 'a' doesn't exist, it'll make that, then a/b, etc.
But you can also get it to make multiple _non_-nested directories, because it accepts '..' in the path and doesn't treat it specially:
$ mkdir -p alpha/../beta/../gamma
$ ls
alpha beta gamma
$
Published at
2024-06-10 10:34:08Event JSON
{
"id": "5a820fa2ca8b0e03f65a98863f70eab64094e01b74fad6d4bd7a6658bc12c675",
"pubkey": "19de6bb53e4860106b7a92e57fbec1cef642164c3ebe0c76eb8ab38c2727672f",
"created_at": 1718015648,
"kind": 1,
"tags": [
[
"proxy",
"https://hachyderm.io/@simontatham/112591873540241522",
"web"
],
[
"proxy",
"https://hachyderm.io/users/simontatham/statuses/112591873540241522",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://hachyderm.io/users/simontatham/statuses/112591873540241522",
"pink.momostr"
]
],
"content": "'mkdir -p' lets you make a deeply nested subdirectory like a/b/c/d, making all the intermediate directories on the way to it. So if even 'a' doesn't exist, it'll make that, then a/b, etc.\n\nBut you can also get it to make multiple _non_-nested directories, because it accepts '..' in the path and doesn't treat it specially:\n\n$ mkdir -p alpha/../beta/../gamma\n$ ls\nalpha beta gamma\n$",
"sig": "914f5c19aebdbb3ae0ff3d144e2a96e264a0b2b1b58fe7ade03c2ece1251e4924d25486e2a9fc2def7af831d5c977a8ef8c1b2b62e71c61ba3566a2039aebcbe"
}