Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux [2018/07/02 06:07] – [하위 디렉토리까지 연쇄 삭제] ledyxlinux [2021/02/07 03:15] (current) – external edit 127.0.0.1
Line 192: Line 192:
 mysql -u USERID -p DBNAME < FILENAME.sql  mysql -u USERID -p DBNAME < FILENAME.sql 
 </code> </code>
 +
 +
 += Crontab =
 +
 +__**C**__h__**ron**__(time)__**tab**__le
 +
 +<code bash>
 +* * * * * COMMAND
 +# m(0 ~ 59) h(0~23) d(1~31) M(1~12) DayOfWeek(0~6, 0 : Sunday)
 +</code>
 +
 +<sxh bash>
 +# 등록
 +crontab -e
 +
 +# 삭제
 +crontab -r
 +</sxh>
 +
 +<sxh bash>
 +# 1분마다 date 출력
 +* * * * * date >> /tmp/greet.txt
 +## */1 * * * * date >> /tmp/greet.txt
 +
 +# 매시 15,45분 "Hello, world" 출력
 +15,45 * * * * echo "Hello, world!" >> /tmp/greet.txt
 +</sxh>
 +
 +== File Descriptor ==
 +
 +|<100%>|
 +^  STDIN    0  |
 +^  STDOUT  |  1  |
 +^  STDERR  |  2  |
 +
 +<sxh bash>
 +# crontab 예시
 +
 +## 표준 출력, 표준 오류 모두 출력
 +* * * * * /bin/echo "foobar" >> /file_you_own 2>&1
 +</sxh>
 +
 +
 +
linux.1530508079.txt.gz · Last modified: 2021/02/07 03:15 (external edit)