"Delete file"의 두 판 사이의 차이

6번째 줄: 6번째 줄:
[[category: Bash]]
[[category: Bash]]
<source lang='Bash'>
<source lang='Bash'>
touch /tmp/a.txt
echo hello > /tmp/a.txt
if [ ! -f /tmp/a.txt ]; then echo 'File not found'; fi
if [ ! -f /tmp/a.txt ]; then echo 'File not found'; fi
rm -f /tmp/a.txt
rm -f /tmp/a.txt

2014년 8월 31일 (일) 15:57 판

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 }}