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.

이 글을 쓴 사람은 아마도 왜 범위 부정이 작동하지 않는지 이해하는 것을 포기하고(나처럼) 이렇게 썼을 것입니다.

관련 정보