Skip to content
0:00 / 0:00

#c#bsd#unix

Re-Writing BSD 4.4 Shell Commands: cat

Learn to Computer

858 subscribers • 2 videos on Hallway

YouTube
  • Recommended by 2 people: 1 on Lobsters and 1 in engineering communities.

Intermediate. Assumes working knowledge.

21K views9 years ago2 recommendations

Systems programmingProgramming languagesCOperating systemsLinux

A walkthrough of rewriting the classic BSD 4.4 Unix cat utility from scratch in C.

In an off-week from writing Git at rewritinghistorycasts.com, let's re-write a shell command from BSD Unix! ---- Watch the re-writing history casts! - rewritinghistorycasts.com/

Why it's here

2 people recommend this

What people say. Recommended for learning C by studying and rewriting classic Unix shell utilities.

u/nullballin r/C_Programming • Recommends

Re-Writing BSD 4.4 Shell Commands: cat

pushcxon Lobsters • Recommends

Re-Writing BSD 4.4 Shell Commands: cat

u/asswhooper-nepaliin r/C_Programming • Mentions

…++argv; // why is this used here again } cat(fd); } while (*argv); // how does this actually loops untils 0. and does it stop after 0? if (fd != fileno(stdin)) { close(fd); } } ``` i know this code is from video but i couldn't understand and i'm just learning so it is hard for me. here is the video link link to this video…

u/ijmacdin r/C_Programming • Mentions

On “Writing linux commands in C.”

You might find this interesting: link to this video