Delete file

Jmnote (토론 | 기여)님의 2014년 8월 31일 (일) 15:58 판 (→‎Bash)
unlink
rm

1 Bash

echo hello > /tmp/a.txt
if [ ! -f /tmp/a.txt ]; then echo 'File not found'; fi

rm -f /tmp/a.txt
if [ ! -f /tmp/a.txt ]; then echo 'File not found'; fi
# File not found

2 같이 보기

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