posted by 구름너머 2013. 6. 7. 15:28

유닉스 명령어 : cp

파일복사시 원본과 동일 날짜로 복사하기

 

cp -f 소스파일 목적파일

 

-p  Preserves for the copy the modification time, access time, file mode,
      user ID, and group ID of the original, as allowed by permissions.  If
      the user ID and group ID cannot be preserved, no error message is
      displayed and the exit value is not altered.  If the original is set-
      user-ID or set-group-ID, and either the user ID or the group ID cannot
      be preserved, the set-user-ID and set-group-ID bits are not preserved
      in the copy's permissions. [Tru64 UNIX]  Preserves the extended file
      attributes (property list), including the access control list (ACL) if
      any.

'UNIX' 카테고리의 다른 글

디렉토리 생성하기  (0) 2014.02.15
/dev/null 2>&1  (0) 2013.11.18
Shared Memory vs Semaphore  (0) 2013.04.26
버퍼 오버 플로우 방지  (0) 2013.04.08
wc cat awk 의 조화  (0) 2013.02.28