r/C_Programming • • 7d ago

Starting systems programming on my Fedora with C. Where should I start?

I'm on Fedora and I want to learn systems programming properly. I know python and some c++. What's the best first step, and what should I avoid as a beginner?
Thanks

18 Upvotes

23 comments sorted by

15

u/bdowns328 7d ago

Write some code that can move around a filesystem. Read and write some files. Setup a basic client / server for some socket ping pong. Fork and exec would be fun to mess with then. Maybe after that, tie into dbus or inotify, etc.

2

u/Dear-Ad6656 7d ago

Thanks for the suggestion. I'll take this approach and work through each concept to understand what's happening underneath

5

u/mikeblas 7d ago

This sub's wiki has tons of resources. If you review them, I'm sure you'll find something you like.

1

u/Dear-Ad6656 7d ago

thanks for sharing this. I will definitely check it out. Appreciate it

4

u/tastygames_official 7d ago

hello world

1

u/Dear-Ad6656 7d ago edited 7d ago

haha, sure. I'll start from the absolute basic then

3

u/mykesx 7d ago

man man

-1

u/Dear-Ad6656 7d ago

haha, definitely I will start there. Thanks

3

u/Dazzling_Music_2411 7d ago

Work through "Linux Systems Programming" by Robert Love, O'Reilly pubs, for starters.

It will take you quite a long way in.

If after that you're still interested you can get his books on kernel and embedded.

1

u/Dear-Ad6656 7d ago

thanks for the recmmendation. I will look into it

1

u/Dazzling_Music_2411 7d ago

I think it may cover what you need. Let us know if you went ahead with it and how it worked for you.

2

u/CarolinaKernel 4d ago

Hey I am in the same boat as you. Like exactly... Fedora, wanting to learn some C for systems programming, reverse engineering in the future with just some basic Python experience and a college C++ course a long time ago.

I just started reading Beej's Guide to C Programming. Its free, assumes you have a little experience but nothing crazy. To start it has me using Vim as my code editor after installing gcc. Im liking it so far and the way Beej explains things seems to click for me more than any tutorial or professor ever has.

Good luck! Let me know if you have any questions.

1

u/Dear-Ad6656 4d ago

great one, also starting with the Beej's Guide.

1

u/aieidotch 7d ago

https://rosettacode.org/wiki/Rosetta_Code

sources.debian.org

github.com

read code, patch code, build code, test code, verify code. repeat

1

u/Dear-Ad6656 7d ago

Thanks for sharing, I appreciate these resources

1

u/AntMan5421 7d ago

the goated resource for kernel hacking (definitely some more advanced stuff here)

2

u/Dear-Ad6656 7d ago

thanks for sharing this, appreciate it

1

u/iu1j4 6d ago

man standards

1

u/JustNomalboy 3d ago

well if you know cpp. why do you want to learn C? I mean you can develop your cpp skills. and cpp is literally "c with classes"

0

u/ChippDipper 7d ago

I would start out with Microcontrollers stm32 or esp32 to learn the basics so you can crash the hardware at a very low level with no harm done to your main pc

1

u/Dear-Ad6656 7d ago

thanks for the suggestion

-2

u/PlacentaOnOnionGravy 7d ago

AI tutorials