linux

2015年7月1日の閏秒対応が必要かどうか

まとめ。結果としてはカーネルバージョンが該当しないので必要なさそう。閏秒を迎えるにあたってLinuxでは何を対策すべきか? | Act as Professional 2012 年 7 月 1 日のうるう秒挿入時に発生した Linux カーネルの不具合に関する情報 Red Hat Enterprise L…

特定の文字列を含むファイルをコピーする

$pwd;find . | sort | sed '1d;s/^\.//;s/\/\([^/]*\)$/|--\1/;s/\/[^/|]*/| /g'/home/hoge/test/xargs --output --01.txt --02.txt --result $grep "hoge" input/* | cut -d ":" -f 1 | xargs -I {} cp {} ./result/$pwd;find . | sort | sed '1d;s/^\.//;s…

cpコマンドの属性保存

所有者が同じユーザであれば上書きしても属性は保持される。 所有者が異なる場合はコピー先の所有者は実行者になる。 rootユーザの場合は属性が保持される。 [vagrant@vagrant-centos65 test]$ ll total 0 rw-rw-r-- 1 mail mail 0 Dec 18 10:13 aaaaaaa rw-…