lsof -ad3-999 -c rsyncは何をしますか?

lsof -ad3-999 -c rsyncは何をしますか?

すでに実行されているrsyncおよびcpジョブの進行状況を表示しようとした結果これ回答では、現在何が起こっているのかを確認できます。

ページに移動して、表示するmanプロセスを選択するために使用されるlsofことを確認します(下記の例を参照)。-ccp

   -a       causes list selection options to be ANDed, as described above.

   -b       causes lsof to avoid kernel functions that might block - lstat(2), readlink(2), and stat(2).

ところで、よく理解できませんね。3-999

lsof -ad3-999 -c cp効果は何ですか?

ベストアンサー1

-d3-999リストから標準ファイル記述子(0,1,2)を除外します。 fdを指定するためのリストまたは範囲-d

-d s     specifies  a list of file descriptors (FDs) to exclude from or
         include in the output listing.  The file descriptors are spec-
         ified  in  the  comma-separated  set  s  -  e.g., ``cwd,1,3'',
         ``^6,^2''.  (There should be no spaces in the set.)

         The list is an exclusion list if all entries of the set  begin
         with  `^'.   It  is  an inclusion list if no entry begins with
         `^'.  Mixed lists are not permitted.

         A file descriptor number range may be in the set  as  long  as
         neither  member  is  empty,  both members are numbers, and the
         ending member is larger than the starting one - e.g.,  ``0-7''
         or  ``3-10''.   Ranges  may be specified for exclusion if they
         have the  `^'  prefix  -  e.g.,  ``^0-7''  excludes  all  file
         descriptors 0 through 7.

この記事を書いた人は、おそらくなぜスコープの否定がうまくいかないのかを理解することをあきらめて(私のように)このように書いたでしょう。

おすすめ記事