River Rooks

Project Crimson Week 2

Let's Practice!

This week I want to practice implementing what we talked about last time.

Recap:

The Linux Kernel, What is an Operating System? Linux exists as a robust series of choices and opinions implemented over a basic foundation: The Linux Kernel. The Kernel is whats responsible for turning our code into commands to our computers hardware. Linux has many quirks and we discussed some of the basic programming structures.

Component Explanation Example
Variables Set with a $ Echo $1
Arguments Passed to a command that you run ls -la
Path The location of a file on your system /home/venus
File Descriptors Std out and Std error cat file | grep hello
Getting Help Man and Help Pages Man ls and ls --help

We also covered a few basic commands you need to know.

Command Explanation
ls list files
cat print the contents of a file to stdout
echo print the arguments to stdout
man read a commands documentation
sh run the bourn shell

Practice

pwn.college is a great resource for hands-on learning about Linux. That's what we're going to do today.

Link Challenges
First Shell Script Your First Shell Script, Executable Shell Scripts, Scripting With Arguments
Piping Redirection
Commands Cat , An Epic Filesystem Quest
Paths Program and absoulte paths , relative paths