r/linuxquestions • • Jul 20 '24

Why Linux?

I am a first year CS college student, and i hear everyone talking about Linux, but for me, right now, what are the advantages? I focus myself on C++, learning Modern C++, building projects that are not that big, the biggest one is at maximum 1000 lines of code. Why would i want to switch to Linux? Why do people use NeoVim or Vim, which as i understand are mostly Linux based over the basic Visual Studio? This is very genuine and I'd love a in- depth response, i know the question may be dumb but i do not understand why Linux, should i switch to Linux and learn it because it will help me later? I already did a OS course which forced us to use Linux, but it wasn't much, it didn't showcase why it's so good

157 Upvotes

418 comments sorted by

View all comments

140

u/Amazing-Champion-858 Jul 20 '24 edited Jul 20 '24

Linux kernel is opensource, lightweight, well studied and therefore a kernel commonly chosen by developers for backend related projects. Linux is also cheap, very stable and offers customisation that Windows can't duplicate.

I.e With Linux, you can fork your own OS if you really want, make a server/system that behaves in very unique and specific ways.

Windows is still the most adopted for servers designed for user/file centralisation management because of their flagship software known as Active Directory and Windows Group Policy.

79

u/[deleted] Jul 20 '24

[removed] — view removed comment

20

u/Additional-Sky-7436 Jul 20 '24

Linux is free like a puppy is free

→ More replies (6)

10

u/[deleted] Jul 20 '24

Not all distros. Redhat is a whole thing. You CAN get versions of almost everything for free, but not literally everything.

7

u/SynchronousMantle Jul 20 '24

Developer licenses are still free. You only need to pay for production hosts.

2

u/the_MOONster Jul 20 '24

Same as VMware, yada yada if you have Dev account and/or a bunch of certs. Very nice for a homelab, they at least make it easy on you.

34

u/CantWeAllGetAlongNF Jul 20 '24

You're paying for support and commercial tools. Linux itself is still free. They did fuck up centos though. Fuck you IBM.

9

u/yall_gotta_move Jul 20 '24

This is misinformation -- they didn't fuck up CentOS, they made it better. I'll quote u/carlwgeorge from this post as I'm somewhat limited on time this afternoon

The development model was changed substantially, but the resulting distro is still extremely close to RHEL. Instead of being rebuilt by a handful of people after RHEL, now RHEL maintainers build CentOS directly, and RHEL is branched from that for each minor version. This opens the door for actual contributions from the community and is a huge improvement. But the resulting distro still has to follow the RHEL compatibility rules so that RHEL doesn't change too much between minor versions. That means it's not that radical from the user perspective.

→ More replies (20)

3

u/[deleted] Jul 20 '24

That’s fair. You’re right.

3

u/fargenable Jul 20 '24

You can get Red Hat developer subscriptions for free, likely if you apart of a university they have a relationship with Red Hat for free products.

1

u/Gabe_Isko Jul 21 '24

There is still commercial software that isn't free, but in this particular case Fedora is essentially the free edition of Redhat.

→ More replies (1)

1

u/Hour_Ad5398 Jul 21 '24

I think he meant cheap in resources. You don't need a machine with many gbs of ram and a relatively modern cpu that has certain functionalities that microsoft makes mandatory. It runs on a toaster, basically.

1

u/Hour_Ad5398 Jul 21 '24

I think he meant cheap in resources. You don't need a machine with many gbs of ram and a relatively modern cpu that has certain functionalities that microsoft makes mandatory. It runs on a toaster, basically.

1

u/[deleted] Jul 21 '24

Anyone doing anything important with it is paying for it.

1

u/GrepTech Jul 21 '24

Linux is free not as in free beer.

It’s more like free beer and you decide the taste, the alcohol level, the form of the bottle, the color of the liquid, the temperature.

It’s freaking free and we freaking love it

→ More replies (29)

11

u/sje46 Jul 20 '24

I think it's important here to note the "linux/unix philosophy", a loose connection of values that control a lot of the design of the modern linux ecosystem.

  1. Each program should do one thing and do it well.

  2. output of a program should be in a very basic plain text format , and could be redirected into other, arbitrary programs (that is, plain text being a universal format)

  3. programs should be light weight and effiicent.

(people add other things to linux philosophy, and I'm not sure they're all still relevant today)

All this stuff applies most to core utilities, especially the most ancient and fundamental ones, and on the command line. It changes how you interact with data, and things start to "slot together" in a very satisfying and very reliable way, that you can automate with ease.

Combine this with other values introduced by the Stallman contigent...FOSS, which is free and open source software, which emphasizes customizability, contributing to your favorite projects, privacy, and so on. Although not strictly FOSS, software being free as in beer is a big part of FOSS culture as well.

All of this results in a very user-focused, responsive, and frankly fun operating system. Dealing with small and reliable micro-programs instead of gigantic suites that are prone to bugs and using up memory is very refreshing.

1

u/yottabit42 Jul 21 '24

systemd enters the chat...

1

u/Cleecz Jul 22 '24

systemd/gnu/Linux

Where does it end

1

u/kangarujack Jul 21 '24

Also, Linux has more servers running than Windows. Desktop, Windows has most but servers absolutely not.

To the OP, Vim is great for inline editing if you will, but VS is better for writing in depth code.

Linux is life. Gg.

1

u/Bob_Spud Jul 21 '24

Microsoft found out early on that that Linux servers outnumber Window servers in their Azure cloud.

→ More replies (1)