ユーザ用ツール

サイト用ツール


command

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
command [2013/03/28 17:14] – 作成 nullponcommand [2025/12/25 15:02] (現在) nullpon
行 9: 行 9:
  
 更新対象のファイル一覧は --include-from オプションで指定する。--includeオプションで指定してもいいが、こういうケースでは対象が多くあると思われるのでファイルに記述するのが楽だろう。 更新対象のファイル一覧は --include-from オプションで指定する。--includeオプションで指定してもいいが、こういうケースでは対象が多くあると思われるのでファイルに記述するのが楽だろう。
 +
 +時間がかかりそうならば、nohup付けてログをリダイレクト
 +
 +  nohup rsync -a --include=*/ --include-from=list.txt --exclude=* hoge@192.168.1.2:~/syncdir/ ~/syncdir/ > rsync.log
 +
 +Ctrl-Zでサスペンドして
 +
 +  [1]+  停止                  nohup rsync -a --include=*/ --include-from=list.txt --exclude=* hoge@192.168.1.2:~/syncdir/ ~/syncdir/ > rsync.log
 +
 +バックグラウンドジョブに
 +
 +  bg %1
 +  
 +nohup付け忘れた場合はジョブ番号指定してdisown
 +
 +  disown %1
  
 ===== date ===== ===== date =====
行 38: 行 54:
  
   zcat auth.log.2.gz | less   zcat auth.log.2.gz | less
 +  
 +===== file =====
 +
 +ファイルの詳細を得る
 +
 +<code shell>
 +$ file node
 +node: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64]
 +node (for architecture x86_64): Mach-O 64-bit executable x86_64
 +node (for architecture arm64): Mach-O 64-bit executable arm64
 +</code>
 +
 +===== strings ======
 +
 +バイナリに埋め込まれている文字列を得る
 +
 +<code shell>
 +$ strings /usr/bin/java
 +@(#)PROGRAM:java_home  PROJECT:JavaApplicationSupport-326
 +JAVA_LAUNCHER_VERBOSE
 +java_home
 +JAVA_HOME
 +about to exec %s using JAVA_HOME="%s"
 +exec failed: %s
 +JAVA_VERSION
 +JAVA_ARCH
 +v:a:XFVh
 +version
 +arch
 +failfast
 +exec
 +verbose
 +help
 +Usage: %s [options...]
 +    Returns the path to a Java home directory from the current user's settings.
 +Options:
 +    [-v/--version   <version>      Filter versions (as if JAVA_VERSION had been set in the environment).
 +    [-a/--arch      <architecture> Filter architecture (as if JAVA_ARCH had been set in the environment).
 +    [-F/--failfast]                  Fail when filters return no JVMs, do not continue with default.
 +    [   --exec      <command> ...]   Execute the $JAVA_HOME/bin/<command> with the remaining arguments.
 +    [-X/--xml]                       Print full JVM list and additional data as XML plist.
 +    [-V/--verbose]                   Print full JVM list with architectures.
 +    [-h/--help]                      This usage information.
 +Matching Java Virtual Machines (%ld):
 +    %s
 +JVMArch
 +# ... 以下略
 +</code>
command.1364490863.txt.gz · 最終更新: by nullpon