Skip to content

Files

Latest commit

d26dfe0 · May 15, 2023

History

History

0x02-shell_redirections

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 5, 2022
Sep 5, 2022
Sep 5, 2022
Jan 7, 2023
Jan 7, 2023
Jan 7, 2023
Jan 7, 2023
Sep 5, 2022
Sep 5, 2022
Sep 5, 2022
Sep 5, 2022
Sep 5, 2022
Sep 5, 2022
Sep 5, 2022
Sep 6, 2022
Sep 6, 2022
Sep 5, 2022
Sep 6, 2022
Sep 6, 2022
Sep 6, 2022
Sep 5, 2022
Sep 5, 2022
Sep 5, 2022
Sep 5, 2022
Sep 5, 2022
Sep 5, 2022
Sep 5, 2022
May 15, 2023
Jan 7, 2023

README.md

img

shell I/O redirections and filters

Intro

Deep dive into shell I/O redirection, special characters and filters

Resources

  1. Shell IO
  2. Special characters

Man or Help

  • echo
  • cat
  • head
  • tail
  • find
  • wc
  • sort
  • uniq
  • grep
  • tr
  • rev
  • cut
  • passwd (5) (i.e. man 5 passwd)

Learning objectives

By the end of this project, you should be able to explain to anyone Without the help of google the following concepts

Shell I/O redirection

  • What do the commands head, tail, find, wc, sort, uniq, grep, tr do
  • How to redirect standard output to a file
  • How to get standard input from a file instead of the keyboard
  • How to send the output from one program to the input of another program
  • How to combine commands and filters with redirections

Special characters

  • What are special characters
  • Understand what do the white spaces, single quotes, double quotes, backslash, comment, pipe, command separator, tilde and how and when to use them

Other man pages

  • How to display a line of text
  • How to concatenate files and print on the standard output
  • How to reverse a string
  • How to remove sections from each line of files
  • What is the /etc/passwd file and what is its format
  • What is the /etc/shadow file and what is its format

Quizes

Quiz

More info

Read your /etc/passwd and /etc/shadow files.

Note: You do not have to learn about fmt, pr, du, gzip, tar, lpr, sed and awk yet.