"리눅스 시간 확인"의 두 판 사이의 차이

1번째 줄: 1번째 줄:
==개요==
;리눅스 현재 시각 보기
;리눅스 현재 시각 보기
;리눅스 현재 시간 보기
;리눅스 현재 시간 보기
;리눅스 시간 확인
;리눅스 시간 확인
;리눅스 date 출력 형식
;리눅스 date 출력 형식
* [[date]]


==1회 확인==
{{소스헤더|기본 형식}}
; date
<source lang='console'>
<source lang='bash'>
[guru@station1 ~]$ date
[guru@station1 MY]$ date
Tue Oct 21 18:48:01 MDT 2014
Tue Oct 21 18:48:01 MDT 2014
</source>
</source>


==mm/dd/yy 형식==
{{소스헤더|mm/dd/yyyy 형식}}
; date +%x
<source lang='console'>
<source lang='bash'>
[guru@station1 ~]$ date +%x
[guru@station1 MY]$ date +%x
10/21/2014
10/21/2014
</source>
</source>


==hh:mm:ss 형식==
{{소스헤더|hh:mm:ss 형식}}
; date +%r
<source lang='console'>
<source lang='bash'>
[guru@station1 ~]$ date +%r
[guru@station1 MY]$ date +%r
06:40:54 PM
06:40:54 PM
</source>
</source>

2020년 2월 27일 (목) 22:00 판

1 개요

리눅스 현재 시각 보기
리눅스 현재 시간 보기
리눅스 시간 확인
리눅스 date 출력 형식
기본 형식
[guru@station1 ~]$ date
Tue Oct 21 18:48:01 MDT 2014
mm/dd/yyyy 형식
[guru@station1 ~]$ date +%x
10/21/2014
hh:mm:ss 형식
[guru@station1 ~]$ date +%r
06:40:54 PM

2 연속 확인

while true; do date; sleep 1; done

3 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}