$
Linux Practice
Practice
Tutorials
English
한국어
日本語
中文
terminal
Welcome to Linux Practice Terminal!
Type "help" to see available commands.
user
@linux:
~
$
Redirect Mastery
Reset Lesson
Learn to redirect command output to files using > and >>.
Step 1
Write "Hello World" to a new file using redirect.
Type: echo Hello World > output.txt
echo Hello World > output.txt
Step 2
Append "Second line" to the same file.
Step 3
Redirect the output of ls to a file called filelist.txt.
Step 4
View the contents of filelist.txt to verify.
Step 5
Redirect the output of date to timestamp.txt.
Step 6
Verify the timestamp was saved.