{"url":"https://te2u.hatenablog.jp/entry/2014/01/23/002602","title":"\u5bfe\u8c61\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u8abf\u3079\u308b","width":"100%","categories":["bash","Linux"],"image_url":null,"type":"rich","author_url":"https://blog.hatena.ne.jp/te2u/","version":"1.0","blog_url":"https://te2u.hatenablog.jp/","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fte2u.hatenablog.jp%2Fentry%2F2014%2F01%2F23%2F002602\" title=\"\u5bfe\u8c61\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u8abf\u3079\u308b - \u4f5c\u696d\u30ce\u30fc\u30c8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"te2u","published":"2014-01-23 00:26:02","provider_url":"https://hatena.blog","blog_title":"\u4f5c\u696d\u30ce\u30fc\u30c8","description":"bash\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3001\u5bfe\u8c61\u304c\u671f\u5f85\u3057\u305f\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3067\u3042\u308b\u304b\u78ba\u8a8d\u3059\u308b\u3068\u304d\u306b\u4f7f\u3063\u305f\u65b9\u6cd5\u3002 $ stat -c %a /path/to/target -c\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u51fa\u529b\u5185\u5bb9\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u6307\u5b9a\u3067\u3001%a\u306f\u3001\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u30928\u9032\u6570\u3067\u8868\u73fe\u3059\u308b\u3002 \u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u3001 perm=`stat -c %a /path/to/target` \u306e\u3088\u3046\u306b\u3001\u7d50\u679c\u3092\u5909\u6570\u306b\u4ee3\u5165\u3059\u308c\u3070\u3001test\u30b3\u30de\u30f3\u30c9\u306a\u3069\u3067\u78ba\u8a8d\u3067\u304d\u308b\u3002 \u53c2\u8003 how to check a directory's permissions in a bash script???","provider_name":"Hatena Blog"}