$
리눅스 연습
연습
튜토리얼
English
한국어
日本語
中文
terminal
Welcome to Linux Practice Terminal!
Type "help" to see available commands.
user
@linux:
~
$
리다이렉트 심화
레슨 초기화
>와 >>를 사용하여 명령어 출력을 파일로 리다이렉트하는 방법을 배웁니다.
단계 1
리다이렉트를 사용하여 "Hello World"를 새 파일에 쓰세요.
입력: echo Hello World > output.txt
echo Hello World > output.txt
단계 2
같은 파일에 "Second line"을 추가하세요.
단계 3
ls의 출력을 filelist.txt 파일로 리다이렉트하세요.
단계 4
filelist.txt의 내용을 확인하세요.
단계 5
date의 출력을 timestamp.txt로 리다이렉트하세요.
단계 6
타임스탬프가 저장되었는지 확인하세요.