Free
CourseLearn the Command Line: Redirecting Input and Output
Learn to redirect input and output to and from files and programs.
This course includes
This course includes
Skill level
BeginnerTime to complete
Average based on combined completion rates — individual pacing in lessons, projects, and quizzes may vary1 hourProjects
1Prerequisites
1 courseWe suggest you complete the following courses before you get started with Learn the Command Line: Redirecting Input and Output:- Learn the Command Line: Viewing and Changing the File System
About this course
Continue your command line learning journey! In this course, you will learn how to redirect standard input, standard output, and standard error messages. You’ll learn how to display the contents of a file, write to that file, search through directories, and more.
Skills you'll gain
Use grep to search
Use sed to modify input
Sort lines of text
Syllabus
Redirecting Input and Output
Learn to redirect input and output to and from files and programs.
Certificate of completion available with Plus or Pro
Earn a certificate of completion and showcase your accomplishment on your resume or LinkedIn.
Earn a certificate of completion
Show your network you've done the work by earning a certificate of completion for each course or path you finish.- Show proofReceive a certificate that demonstrates you've completed a course or path.
- Build a collectionThe more courses and paths you complete, the more certificates you collect.
- Share with your networkEasily add certificates of completion to your LinkedIn profile to share your accomplishments.
Learn the Command Line: Redirecting Input and Output course ratings and reviews
166 ratings
- 5 stars
- 4 stars
- 3 stars
- 2 stars
- 1 star
- The progress I have made since starting to use codecademy is immense! I can study for short periods or long periods at my own convenience - mostly late in the evenings.ChrisCodecademy Learner @ USA
- I felt like I learned months in a week. I love how Codecademy uses learning by practice and gives great challenges to help the learner to understand a new concept and subject.RodrigoCodecademy Learner @ UK
- Brilliant learning experience. Very interactive. Literally a game changer if you're learning on your own.John-AndrewCodecademy Learner @ USA
Our learners work at
Join over 50 million learners and start Learn the Command Line: Redirecting Input and Output today!
Looking for something else?
Related resources
- Article
List of Command Line Commands
Glossary of commonly used commands - Article
Complete List: Command Line Prompt (CMD)
Learn key command line and CMD commands for file handling, navigation, and environment setup. Master redirection, search, aliases, and more. - Article
Command Line Interface
Getting started with the command line
Related courses and paths
- Learn about the command line, starting with navigating and manipulating the file system, and ending with redirection and configuring the environment.
- With Certificate
- Beginner Friendly.4 hours
- This course shows how programmers can code a Java program that considers, interprets, and responds to input and output.
- Intermediate.1 hour
- Learn how to manage filesystems and manipulate directories from the command line.
- Beginner Friendly.1 hour
Browse more topics
- Computer science7,039,337 learners enrolled
- Bash/Shell399,166 learners enrolled
- Code foundations8,545,010 learners enrolled
- Web development5,735,231 learners enrolled
- Data science5,335,148 learners enrolled
- Python4,316,059 learners enrolled
- For business4,114,645 learners enrolled
- Data analytics3,219,406 learners enrolled
- JavaScript3,215,265 learners enrolled
Unlock additional features with a paid plan
Practice Projects
Guided projects that help you solidify the skills and concepts you're learning.Assessments
Auto-graded quizzes and immediate feedback help you reinforce your skills as you learn.Certificate of Completion
Earn a document to prove you've completed a course or path that you can share with your network.







