Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
指定したファイルのタイムスタンプを取得する方法 指定したファイルの日付・時間等のタイムスタンプを取得するには「date」コマンドを使用すれば取得できます $ ls -l test.txt -rw-rw-r-- 1 centos centos 34 Jul 2 11:27 test.txt $ date -r test.txt Tue Jul 2 11:27:48 JST 2019 取得するタイムスタンプの日付等のフォーマットは、dateコマンドのフォーマットで指定できます $ date "+%Y%m%d-%H%M%S" -r test.txt 20190702-112748 $ date '+%Y/%m/%d %H:%M' -r test.txt 2019/07/02 11:27 $ date +'%F %T' -r test.txt 2019-07-02 11:27:48 dateコマン
Here, placed side-by-side for comparison, are implementations of cat(1) from GNU's coreutils, Plan 9, and others. See addendum.txt for more information. All cat.c files (renamed by prefixing the name of the source of the source) are presented, unaltered and in their entirety. Note how easy it is to read and understand plan9-cat.c (which should take only a couple of minutes, possibly even for coder
その時表示している内容を消さずにlessを終了するには? 何かのコマンドの実行結果が長くなって画面外に溢れてしまう場合でも、grep ... | less という風にパイプライン経由でlessコマンドに結果を渡すと、結果を自由にスクロールしながら落ち着いてゆっくり読むことができます。 しかし、「q」でlessを終了すると、その時表示されていた内容は画面から消えてしまいます。コマンドの出力結果を見ながら次の作業をしようと思うと、以下のような工夫をしないといけません。 Ctrl-Zでlessをバックグラウンドに切り替えて、また参照したくなったらその都度fgコマンドで復帰させる。 tmuxなどのターミナルマルチプレクサを使い、画面を分割して片方の画面でlessの結果を表示しながら、もう片方の画面で操作を行う。 コマンドの出力を直接lessに渡して表示するのではなく、一旦リダイレクトでファイルに保
GNU parallel is a shell tool for executing jobs in parallel using one or more computers. A job can be a single command or a small script that has to be run for each of the lines in the input. The typical input is a list of files, a list of hosts, a list of users, a list of URLs, or a list of tables. A job can also be a command that reads from a pipe. GNU parallel can then split the input and pipe
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く