tubeshowcase●1,668,121 videos♡ My collection 0
← Learn to Code

Learn to Code31:41

How to Actually Learn C (2027 Edition)

tony ↗

From the creator

This is a quick and painless tutorial on starting to impelement Coreutils 'ls' in C. *Repo:* https://github.com/tonybanters/lsbtw *XMPP Room* xmpp:[email protected]?join *Ko-Fi:* https://ko-fi.com/tonybtw *Music:* https://www.youtube.com/watch?v=RPrgNFnbAhQ https://www.youtube.com/watch?v=Jy7FMagiTFk Chapters 0:00 Intro 1:15 The Plan: ls, ls -a, ls -l 2:10 Your First C Program: main() 2:45 Compiling with GCC 3:27 printf and Header Files 4:13 Command-Line Args: argc & argv 5:59 Handling a Missing Argument 6:53 Opening a Directory: opendir 8:21 Error Handling with perror 9:36 Reading Entries: readdir 11:23 Looping Over the Directory 12:01 Hiding Dotfiles & closedir 13:18 Parsing -a with getopt 16:47 Implementing -l: The stat Syscall 17:44 Building the Permission String 21:20 Owner & Group Lookups 22:26 print_long & lstat 25:57 First Test: Permissions, User, Group 26:49 Formatting the Date with strftime 28:43 Adding Size & Link Count 29:33 Wiring Up the -l Flag 30:34 Final Demo: ls -l and ls -la 31:06 Obligatory Neofetch #linux #c #programming

Published 2026-06-05 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code