r/linuxquestions • • Jul 29 '19

How did you (intermediate - expert level users) "learn" linux?

Hey reddit!

I've been using linux from time to time for alot of years, I love it because of the freedom it provides in terms of customization etc, however I do have to google quite alot when i run into problems, even the simpler ones.

Most of the time my googling takes me to a forum where the first post explains everything as if it was the most obvious thing in the world. I wish I had the knowledge to produce such a post, but the way the operating system works is so comprehensive and different from it's non UNIX competitor. And I can never settle with just understanding the shallow "high level" stuff. I want to truly understand how my computer works and how to operate it. Everything from commands and scripts to how the bios works.

So reddit, I'd love to hear from you guys how you educated yourself to your level of expertise in this.

EDIT: Thanks for the great and informative replies, keep em coming, they'll probably be of use to others with similar interests. So far I'm really into trying out LFS.

117 Upvotes

108 comments sorted by

12

u/ikanpar2 Jul 29 '19

Imho, you don't need to be "expert" on linux, you just need to understand the basic concept of how things work. As for commands, attributes to commands, etc, thats what man pages are for, or a bit of Google-fu.

If you are familiar with how things generally work, be it linux, ms etc you can just google or find a manual for the specific command.

For example, if you understand how web server works, the detail for configuring apache, or nginx, or even IIS is available everywhere, so why memorize it? Except if that's your day to day job (installing and configuring certain webservers) then memorizing commands will speed up your work. But it's better to understand the concept than memorizing commands.

2

u/BurnThePriest94 Jul 29 '19

Hello! Of course this is true for the everyday user, however, I'm just done with my first year in uni, and this autumn I'm starting my 5yr software engineering program, and I'm interested in eventually contributing to the amazing linux community, so I'd like to truly understand how it works.

3

u/kalpol Jul 29 '19

if you really want to understand nuts and bolts, go compile the system from scratch (I did this with Gentoo and it was very helpful). Do it all manually and figure out why each piece is required and how it does what it does.

1

u/ikanpar2 Jul 29 '19

This is also true for the job, as long as you understand how stuff works, linux windows, android are just tools. I am working on a mix environment, my internet facing servers are either centos or Ubuntu servers, Ubuntu daily driver, kali for pentest, windows server for company internals, and android and raspberry pis plus arduino here and there for iot projects. You just need to understand how stuff works, the strength and weaknesses of each system, then find a manual or Google for the times when you're stuck.

3

u/lumpenfreude Jul 29 '19

I mean the easiest way is to just dive write in and start doing all the things you want to learn. It's all just experience. Like everyone is saying, man is your best friend. Find a function you want to replace with a script and just figure out how to do it. Try figuring out how to do something like changing your monitor's brightness without using xbacklight or any other "easy" method. Write a script for that.

Also try switching to a window manager without a desktop environment (like i3 or bspwm, or openbox if you hate tiling [tiling rules tho]) and rather than using prebuilt tools try to write little scripts that take over all the functionality of a desktop environment. Ditch as many GUI tools as you can and rely on the CLI as much as possible.

Also also, try LFS, or if that seems too daunting right off the bat, try Arch. Installing Arch and really trying to get to grips with what each step of the installation process actually meant was a HUGE learning experience for me and made it so much easier to diagnose and fix problems when my Arch install inevitably broke after an update lol.

1

u/BurnThePriest94 Jul 29 '19

Hey mate, love this reply because I'm actually currently doing exactly as you wrote. My laptop is using arch as distro and i3 as WM. And tiling window managers do rule, so does sticking with the terminal, if you wanna deepen your understanding.

One thing I'd like to point out: alot of people are scared to use arch, yet I've found that arch is probably one of the friendliest distros to beginners who wants to understand unix/linux, due to the vast ocean of knowledge provided by the arch wiki.

1

u/lumpenfreude Jul 29 '19

Yeah, I decided to try i3 and Arch to learn more about Linux a few years ago and I honestly can't imagine using anything else at this point. And yes, the wiki is absolutely fantastic, even if you're not using Arch there's so much info there that's relevant to basically every distro. The Arch subreddit is also surprisingly friendly (especially compared to the forums lol).

1

u/[deleted] Jul 29 '19

[removed] — view removed comment

1

u/BurnThePriest94 Jul 29 '19

Trust me, I'm not an expert. For instance, I do not understand what grep is or what it does, why would you want to use anything else than netctl for WiFi, what's systemd and how does it work. What's initramfs? What does the computer do when you build a package from the aur? This is just random shit I'm throwing at you, I could name a thousand things that I don't truly understand.

1

u/abraxasknister Jul 30 '19

Well... As for grep and systemd there's the man pages, though you should indeed learn what grep and the findutils are. You can learn about the process of building a package from source by learning about PKGBUILD (the source tarball will be unpacked, configured and built via make, flags help to fine tune). The initramfs is a compressed file that will be decompressed and written initially to the RAM by the bootloader. This way there's access to vital commands even when the system root hasn't been mounted yet by systemd, which will be executed as the initial process shortly after that. Just connect somehow and be happy that it works, wireless is the devil's work...

2

u/brinkjames Jul 29 '19

Simple, use Linux daily and check out LFS http://www.linuxfromscratch.org/

2

u/BurnThePriest94 Aug 01 '19

Lfs is on top of my list!

2

u/wsppan Jul 29 '19

I started with slackware and installed it using floppies. No dual booting. Used O'Reilly books, comp.os.linux, man pages. Forced myself to learn by trying and researching. Nowadays you have so many resources at your finger tips and with user friendly distros like Ubuntu and Mint and dual booting/VM options you just need to just do it. Dive in. Lots of books, tutorials, etc out there.

1

u/BurnThePriest94 Aug 01 '19

Awesome! I however feel that the user-friendly fully flexed distros take the need to understand away from you. I use arch and the arch-wiki to learn but that only teaches me new things when I "get stuck". As someone else said, man pages are great but they are written for people who already have a pretty good understanding of unix. But yeah, diving in ;)

2

u/captainstormy Jul 29 '19

The same way you learned windows. You use it (100% of the time) and you just handle issues as they come up.

1

u/BurnThePriest94 Aug 01 '19

Don't really have a profound understanding of windows either, better than the average user of course, but windows doesn't interest me in the same way as it will never be as customizable as Linux. It's closed source software that I rely on to play games.

1

u/captainstormy Aug 01 '19

That's kind of my point. You aren't going to have to be an expert to start using it. Just dive in and take things as they come.

As for deeper understanding, when I get a chance later I'll try to come back and give a few video suggestions on YouTube that explain a good deal of info for you to get going.

79

u/computer-machine Jul 29 '19

I did

using linux from time to time

not that.

When I discovered that there was an alternative to Windows, I reformat all of my machines and never looked back.

I learned how to type man and --help, and I learned how to search for problems, solutions, and situations.

I want to truly understand how my computer works and how to operate it.

Take a look at Linux From Scratch. You won't really want to use it, but it will teach you intimately how everything works.

12

u/aleosaur Jul 29 '19

One of the things I've found that helps, once you've done the migration into "full time linux" is to continuously modify the system --- try new stuff. New configurations. New packages. Etc.

One way to do this is by doing software development entirely in Linux on your new system. Whatever language, working in an environment 100% of the time will get you "intermediate" pretty quickly. Even if it is only doing shell scripts for repetitive tasks.

If you're not a developer, you can try system admin type stuff. It can be adding new hardware, moving partitions around. Changing to dual boot (or multi boot) systems is a really good way to see how the different distros are, and you really do learn how stuff works under the hood when you are debugging issues. It can be quite frustrating, though.

2

u/SlightlyCyborg Jul 29 '19

Take a look at Linux From Scratch. You won't really want to use it

In theory I want to use it. In practice I haven't ever booted it. Haha.

0

u/[deleted] Jul 29 '19

[deleted]

4

u/alter2000 Jul 29 '19

DISCLAIMER: this only works on GNU/Linux and other unices which may or may not have a decent relationship with GNU projects or the organization. In *BSDs you have everything in the man pages, which are far more detailed than most.

0

u/[deleted] Jul 29 '19

[deleted]

8

u/alter2000 Jul 29 '19

OpenBSD ones are a heaven send. They treat misdocumentation (or lack thereof) as a safety-critical bug and it gets fixed with the same speed.

It's not a big difference with some pages, but if it's been in official OpenBSD ports repos, then it almost definitely (barring some new or niche software) has all you need to know how to interact with the tool.

0

u/[deleted] Jul 29 '19

[deleted]

2

u/alter2000 Jul 30 '19

gem

Yes and no: yes because it's arguably one of the most secure by default UNIX distributions, together with relative ease of use; no because it's a PITA to get something either approved or running, yet you can rest assured that if it runs perfectly there, it will run there, given all dependencies are included.

4

u/rkoberlin Jul 29 '19

Yes. FreeBSD is BSD for Linux guys, and you can expect man pages of similar quality. OpenBSD/NetBSD projects however, believe that the man pages are the _only_ documentation you should ever need. They're all available online if you're interested in looking.

57

u/TheChozoKnight Jul 29 '19

I learnt the hard way by diving in the deep end, and learning how to fix stuff that broke.

Real world skills outstrip some industry course.

7

u/bigfig Jul 29 '19

I will say that courses offer the possibility of covering topics you might not have needed to learn or thought you needed to learn. For example a seminar on NoSQL showed me how prevalent Node.js is.

Google searches seem to have decayed in utility over the last 15 years. There's too much SEO steering everyone to products over knowledge. Forums like Reddit are still good though.

1

u/TheChozoKnight Jul 29 '19

That is most definitely true. I always thought of courses where Im already versed in the subject material as ways to confirm and validate my skills and reasoning while adding new ways of doing and thinking.

16

u/henry_kr Jul 29 '19

Like most things in life, my knowledge comes through experience. The more you use something, the better you get at using it.

There's also a massive amount of documentation, the best thing you can do at first is learn how to use the man command, and get used to reading man pages. Once you're used to that then it can be quicker than googling things.

Good pages to get started with are man man to learn about the man command itself, then things like man hier for the filesystem hierarchy, and man bash for stuff about the bash shell, which is the default in most distros I've used.

It's not possible for everyone but I personally learnt the most about Linux and other UNIX based systems by getting a job working on such systems - having good colleagues you can ask questions about stuff goes a really long way. But I understand not everyone wants to go down that route, or is likely to get the break I got by being in the right place at the right time.

5

u/spryfigure Jul 29 '19

To tag on that: Also you need to be curious and try to find new things on the computer which you would like to have. Implementing this makes you learn like nothing else, it's not just fixing broken stuff, but building things.

Sometimes, just things like trying to get colored man output the easiest way lets you learn a ton.


For the interested: On a Debian/Ubuntu system, apt install most followed by sudo update-alternatives --config pager and selecting most instead of less will do the trick.

5

u/OneTurnMore Jul 29 '19

Not the only way, you can do it in less, just set these env vars (below are my preferences):

export LESS_TERMCAP_mb=$'\e[1;31m' 
export LESS_TERMCAP_md=$'\e[1;31m' 
export LESS_TERMCAP_me=$'\e[0m' 
export LESS_TERMCAP_se=$'\e[0m' 
export LESS_TERMCAP_so=$'\e[1;44;33m' 
export LESS_TERMCAP_ue=$'\e[0m' 
export LESS_TERMCAP_us=$'\e[1;32m' 

I much prefer less because of vi keybinds.

2

u/spryfigure Jul 29 '19

Thanks! I knew that you could do it several ways, including less, but having the vi keybinds is a good reason to stick with it, despite the cumbersome setup.

3

u/Wyatt-Oil Jul 29 '19

he best thing you can do at first is learn how to use the man command, and get used to reading man pages.

The most repeated, yet worst advice in a linux forum

man pages are written by those who already know a subject inside and out and geared to an audience that also already knows the subject inside and out.

They are near impossible for a novice to grasp.

4

u/bits_of_entropy Jul 29 '19

I second this. Man became very useful, once I got to being comfortable/intermediate with Linux. It's great if you want a definitive answer for the what a program's different flags do. Not great if you're trying to answer "how do I use <program>?".

I still find man pages that are too much for me. The explanations will refer to things that I haven't heard of before. I'm just not familiar enough with what the program does to understand. Once familiar, I'm sure the man page is great.

1

u/Wyatt-Oil Jul 30 '19

Yes, exactly

1

u/[deleted] Jul 30 '19 edited Jul 30 '19

I think you are confusing learning and using. For example, when you are studying mathematics, you are not taught how to use X to get Y, you are studying the properties of X and why X has those properties and after that you study examples on how to use those properties to get to Y.

If you want to just use <program>, any of the other resources is fine, but you are opening yourself up to misinformation and basically what you learn is how to get Y, not what X can do. This might be enough for some cases, at least until something goes awfully wrong. That's why when documentation refers to something unknown, it means that you need to resolve the unknown first and then proceed.

At the same time, I think OP asked how to 'learn' Linux, not how to use something in Linux.

6

u/my-fav-show-canceled Jul 29 '19

Learn by doing, by studying, by exploring. It's not just one thing and a diet of web searches is not balanced.

Here's the thing. A web search is only going to get you skin deep at best. It's going to take you right to the solution with none of the wholesome peripheral discovery. You're going to get that one chunk of information you were after and then you'll stop. That's great for "getting the job done" but you're not necessarily going to learn that much.

Old geezers, who didn't have instant answers from Google all their life, know the value of reading thick two inch books and the documentation that comes with a product. Don't get me wrong we still do a lot of web searching. However, when we go to learning mode we are definitely reading (not scanning) man/info pages. A few good books will round out your education letting you learn more and put things together.

Don't ask me what books are good--you don't want my list from '97. Pick something with a lot of stars that doesn't go out of its way to push the point of being "for beginners". If my experiences with books from other subjects are any indication, books for beginners tend to leave you as a beginner. You want books to round out your education and fill in the gaps rather than decide what's too much for a beginner to learn. Don't go hog wild looking for the most advanced books either. You just want a book that doesn't assume you're stupid and have a cap on what you can understand. (Somewhat ranty here.)

"I'm not good at book learning" is almost always "I don't LIKE book learning." Set a goal (x pages/chapters a day) and get started. No pain no gain (but also you're writing your own report card--liberating!).

2

u/rootuser_ Jul 29 '19

- Install Arch Linux
- Read the wiki
- Read the "The Linux Command Line" Book

be happy

2

u/BurnThePriest94 Aug 01 '19

"Linux command line" sounds like an interesting tip. Will check that out for sure

17

u/wizard10000 Jul 29 '19
  1. Install Linux

  2. Quit using Windows

  3. ???

  4. Profit!

0

u/[deleted] Jul 29 '19

[deleted]

11

u/kalpol Jul 29 '19

That's why it's profitable

4

u/[deleted] Jul 29 '19

Stonks!

5

u/[deleted] Jul 29 '19

I started in 2007 by installing Ubuntu and have used it as my desktop OS ever since

In 2008 I opened a web hosting company until 2011

My home media server is Linux and I learned a lot through that.

There is also this Youtube playlist that I saw someone else recommend. I watched it recently in case there were some things that I'd missed and there of course was - https://www.youtube.com/watch?v=bju_FdCo42w&list=PLtK75qxsQaMLZSo7KL-PmiRarU7hrpnwK

My most recent gain of knowledge has been from switching to Gentoo as my main operating system - the install is quite challenging!

3

u/WantDebianThanks Jul 29 '19

I'd consider myself an intermediate Linux user.

I did this online course, then this online course (I think). Those are both probably sufficient for an end user. For a power user, I would next read The Linux Command Line from No Starch Press

To get the knowledge to be a Linux administrator I would work through equivalent sections of The Linux Bible and Jang's RHCSA/RHCE guide. And then do The iConrad list, which has had update requests in 2017 and 2018. I'm also proud of my comment on one of the "update please" posts

LinuxAcademy is also pretty good, but I have a terrible time with lecture-based learning and ended up cancelling my plan with them.

2

u/bednar1988 Jul 29 '19

I have been using from time to time as well. Until time I decided to learn it for real. I decided to prepare for Red Hat certifications, starting with RHCSA. I made a VM-based lab to go through the required material and then practiced and practiced until I felt ready for the exam. I went to exam and passed it, then I started to learn for RHCE using the same method and passed it as well. After that I started to work as Linux admin and made some additional certifications. But the one thing that is important, If I don't have too much to do at work or have lot of free time I pick up a new Linux based technology and learn it by doing. I also read a lot of technical stuff. If I need to do somethig I try to figure out myself by reading man pages and documentation.

This all gives me overall good grasp how Linux works, how do do anything on it, why things are not working and how to fix them.

You can also use Linux Academy, as they have lot of entry and advanced level courses + cloud based labs, where you can create multiple VMs for your needs.

2

u/lattenwald Jul 29 '19

If you manage to find answers to your problems using google, that means you know enough about your problem to consider yourself at least an intermediate user.

Also one tends to learn tools one uses. This year I started using find without reading man find in another terminal window, and I've jumped from Windows to Linux 15 years ago. Didn't have to use find so oftern as I do now.

So… use stuff you want to learn.

Oh, and one more thing: when I find an answer to a complex problem that I feel I might experience sometime later, but not soon enough to remember the solution, I push it into my git repo. I called it til, and there are files like udev.md, shell.md, and it helps when few years later you need that knowledge you have now.

2

u/lattenwald Jul 29 '19

As a "swim or drown" way I suggest you install Gentoo and use it for a couple months. First installation might take you a week or more, this is normal.

Make it as fast as you can, meaning, compile your kernel and set your own USE-flags. This is only recommended if you want to learn some more, not if you have life. For a more life/linux balanced approach Arch is recommended.

2

u/sigtrap Jul 29 '19

Install Linux, break it, then learn how to troubleshoot and fix it. I self-taught myself everything and never touched a Linux book. After a while you start to know where the root cause of a problem is coming from, or at lease where to start looking.

2

u/[deleted] Jul 29 '19

I just ran GNU/Linux. If I ran into an issue, I researched it and fixed it. I did a lot of stupid things, and broke my system multiple times. Never used any guides or tutorials for GNU/Linux. Honestly, user experience and distro hopping is the way to learn.

3

u/CaptianHuggyFace Jul 29 '19

Learned from Level1tech, Linus Tech Tips, Chris Titus Tech, Distro Tube, Arch/Manjaro wiki.

8

u/thexavier666 Jul 29 '19

Learning Linux from Linus Tech Tips?

You will be killed! (Unless it's Anthony)

4

u/CaptianHuggyFace Jul 29 '19

Yea its mostly Anthony.

2

u/[deleted] Jul 29 '19

There is someone else other than Anthony that knows linux?

2

u/thexavier666 Jul 29 '19

I think the engineer guy knows some linux (the one who has the cool CNC cutter)

3

u/[deleted] Jul 29 '19 edited Jul 30 '19

Honestly? By Reading The Fucking Manual. Documentation is your only source of accurate information except of the code. Noone is expected to read the code unless they really want to get into it, but documentation is a must. RTFM is not the meme reply that is has become, it is honestly the best possible source of information to understand what is going on. Youtube, forums, reddit etc is a great resource if you want to get the initial concept really fast, but you have to remember that what you are reading/watching is distilled through the experiences of a source of unknown quality, and it is not a way to learn or understand what is going on.

1

u/abraxasknister Jul 30 '19

That's a valid point. And in fact the only thing one needs. I'd still like to point out that sometimes you just don't know enough to even know where to start in the manual. For instance if you didn't know that systemd existed you'd have a hard time to know where to start in the manuals. That's why others sourced YouTube series.

2

u/smudgepost Jul 29 '19

CompTIA Linux + and Lynda.com for overall structure and sysadmin stuff and youtube for specific apps like rclone, tmux..

1

u/FryBoyter Jul 29 '19

I've been using Linux for about 20 years. I still learn new things on a regular basis. You can't know everything in my opinion.

Basically I only use Linux. At some point I run into problems. Or I have to do a certain task. Or I am interested in a certain topic. Then I deal with it by reading documentations and practicing Google-Fu and so on.

Personally, I don't think it's advisable to want to know everything. This usually only leads to you becoming a "Jack of all trades, master of none".

1

u/aris_boch Jul 29 '19

Mostly stuff on the net such as fora, tutorials and the various wikis about Ubuntu.

1

u/funkden Jul 29 '19

man pages, if too dense, google and the man pages. Stack overflow. Just get a job and start working with it, get whatever you can get, there are lots of Linux jobs out there. If you use it daily you will build up a toolkit in your head. Also if your forced to use windows at work then install cygwin.

1

u/geekdad4L Jul 29 '19

Just by doing it! Take an old PC and make it usable again with Linux. Then pick up a book or ebook and just try their examples. Some junior colleges offer courses as well. Just remember this os costs nothing to get started in.

1

u/voncloft22 Jul 29 '19

Immersion

1

u/truh Jul 29 '19

I think I have to thank Nvidia for this one. Their crappy drivers gave me plenty of opportunities to practice using the shell.

Use it as your daily driver, I never really got it from just using it in the VM.

1

u/heavyjoe Jul 29 '19

i am no advanced user. My suggestion is to buy a raspberry pi and set up some home services (without monitor attached to pi ofc), e.g. ssh only with keys, webserver, local network mail, cloud, git, etc. Thats the way i learned the most. After that arch linux with i3 (or no sway-wm). But this way is mostley for private linux use...

1

u/kalpol Jul 29 '19

I set goals for functionality I wanted and figured it out, using online resources and man pages. Once you get the basics down it helps a lot to know what you're looking for with help - command line options, ports, standard configurations? But yeah, mostly a lot of googling.

1

u/[deleted] Jul 29 '19

I didn't learnt anything .... Google educated me.

1

u/soulless_ape Jul 29 '19

It's like learning to walk, at first you new help and people holding your hands. After you learn to lean on things (ever watch a baby learn to walk?) The things you lean on are books, reference material, forums and online videos. Then you're off running on your own. If you want to become a professional runner, you have to get a coach to help you train and give you pointers here and there. If you are disciplined enough once you learn proper form and technique, you can continue on your own training.

1

u/anregungen Jul 29 '19

Started with VDR http://www.tvdr.de/ as a project. Which led me to learn Linux, OpenSource, programming, debugging, compiling, packaging, etc etc. So if I were to start over again , I would go the same way! Search some interesting project you like to realize and go from there

1

u/kalpakdt Jul 11 '23

whats this vdr and hows thats usefull for a linux user who is still learning?

1

u/anregungen Jul 12 '23

Ui, this is an old post :-)

VDR is, if you maybe took a look at the link I provided, a software video recorder for satellite or cable TV. It was a thing, and for me it is still, to watch and record TV. As it's a Linux software project, it was ideal to have a goal (use a pc in my living room for video, music, TV) where I needed to learn linux.

It was ideal as it in the beginning wasn't packaged, so installation needed to be done with the classical 3 step (configure, make, make install) with installing dependencies by hand, etc....

But it's not relevant what you take as your goal. If you want to learn mechanics, restoring an old bike or car gives enough opportunities to learn how to use a wrench, grease or a screwdriver. Just find something you'd like to realize. Without a goal, linux is just overwhelming and opportunities are endless :-)

1

u/kalpakdt Jul 12 '23

oh ok thanks . also what basic projects u might advice me as linux noobie .

1

u/naebulys Jul 29 '19

Using it full time and breaking it many time

1

u/SilentDis Jul 29 '19

"The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!' but 'That's funny...'"

--Issac Asimov

It's similar to that. Discovering a problem, researching how everything works, figuring out what tools are available, creating new tools.

Having the mind of a child when it comes to "play" helps, as well. What I mean is stuff like not being full of yourself when it comes to the systems you are able to break. Sure, you don't want to destroy what hundreds or thousands are depending on; but test environments, break-me boxes are best left in tatters, barely functional, so you can explore and do weird new things without worry. Let the strange questions bubble up and figure out how to solve them. "What happens, exactly, if /bin/ls disappears?" is a dumb, simple one. How would you recover from that? "What, exactly, would you do if the primary database had its first 1k overritten with random characters? Can it be fixed in place, or is there a backup you can grab? Do you need to grab the whole backup... or can you grab just that first 1k and kinda finagle it in there?"

Basically, play, and don't be put off by weirdness.

1

u/pythor Jul 29 '19

My first exposure to Unix was System V, running on a machine at work that I logged into to do data entry. I had a lot of free time at that job, and poked around until I discovered a shell, and played with what I found. man is your friend in the command line, and google everywhere else (though this was actually before Google).

Then, one day, I got sick of my Windows machine. It would blue screen and fail to boot for hours at a time, then randomly start working again. I installed Ubuntu as a troubleshooting step, and never went back. Ubuntu didn't crash on me. A few months went by before I realized what the problem was (a bad SSD), because Ubuntu just dealt with it smoothly, while Windows would crash every time.

That was 8-9 years ago. I only use Windows at work, and Ubuntu has just gotten easier to use over the years.

1

u/SlightlyCyborg Jul 29 '19

It is pretty basic. I write code, read code, and use code at all fractal levels of my system.

Every person has a different distribution of competency across all modules of a computing system. The person writing an indepth article about how to do or fix component x is probably a person who has spent more time than average working on x at the cost of not spending time on module y.

1

u/[deleted] Jul 29 '19

I just kept borking my system, then googling how to fix said bork for each distro, when it boils down to it, they're really all the same.

Most definitely read the man pages!

The discord server not as helpful as the IRC channels, the subreddits, and forums / archwiki.

Except gentoo, that's it's own monster, but it's great for personalized customization.

1

u/dgmulf Jul 29 '19

Using Arch as a daily driver was helpful, because it encourages you to work "closer to the metal", as I like to say, and the official wiki is a fantastic resource for learning how to do that. Otherwise, I read a shitload of man pages and documentation.

1

u/[deleted] Jul 29 '19

Not a pro or expert but 3 things help me the most.

Man , Whatis,
Cat,

These are one of the many commands I use to find out it works and how to fix stuff. Also as you said googling and asking for help on reddit or forums also works.

Good luck with LFS. Hope you don't have much trouble as I did.

1

u/sturdy55 Jul 29 '19

I read linux for dummies. Then I installed linux, it was rough. But I could navigate, work with files, etc but little understanding of what all the files/folders were for.

Then I read oreilly's learning the bash shell. Still the greatest book I've ever read. The shell is your interface to everything, you should become fluent with it. This one book helped a ton.

Finally I read oreilly's essential system administration. This taught me system level things, what all those conf files were for and by this point I could do most whatever I needed and look up anything else.

From there I played around on linux a lot and still read books that interested me: dns&bind, sendmail, vi... don't want to start a flame war but ALWAYS vi.

Once you start using linux for things you find cool and interesting, the learning part comes natural. Hell I'm a sysadmin now with 20 yrs experience and I still can't wait to get off work and get home to play and work with my own pet projects.

1

u/aoeudhtns Jul 29 '19

"There has to be a better way."

^--- repeat this mantra every time you think you've solved a problem on your Linux box(en). Find out what that way is.

1

u/ialexs_ Jul 29 '19

To make it short: by using it every single day

1

u/[deleted] Jul 29 '19

So reddit, I'd love to hear from you guys how you educated yourself to your level of expertise in this.

It's been a long and winding road, and most of my knowledge has come from needing to solve a problem or playing around with things because I was curious. :)

Probably the best thing you can do is get some spare equipment to play with and build networks. I would start with a desktop with some room for expansion. It doesn't have to be the fastest thing, or have the most RAM, but having a supported NIC is necessary. Also, having integrated graphics is nice too.

You can start out with some pretty low requirements. I had a Dell Optiplex 760 (Core 2 Duo, 4GB RAM, 2x 160GB HDs in a soft mirror) as a home server for the longest time, and I really didn't stress the thing.

Once you have the equipment, start installing stuff. Setup a static webpage, setup a database, setup a web app, setup an XMPP server, setup DNS, setup DHCP with Dynamic DNS, setup LDAP, setup Kerberos, setup a VPN to get to your network.

Next, add hardware. Add a new disk, add a new NIC (this obviously won't work if it's a laptop :) ), setup softRAID.

When you're ready, setup the server as a VM server with KVM. You will need RAM and storage for this. I would say 8GB RAM with dedicated 120GB SSD is probably the low end for a VM server with a couple of VMs. 32GB RAM and 4x 500GB SSDs in a RAID 10 would be a higher end home setup. Linux VMs don't take a lot of resources. 1x proc, 1GB ram, and 10GB disk is pretty decent for CentOS, and 1x proc, 128MB, and 5.25GB disk will work for Alpine Linux.

Start compiling software from source, and try a Gentoo/Funtoo install.

1

u/caetydid Jul 29 '19

To me it seems pointless to "learn" Linux. This would be like drinking an ocean using a thimble. Since 1999 I am using Linux every day and almost entirely quit MS Windows (except some VMs). I measure my proficiency level in Linux in "how often/how fast can I get a particular job done using Linux".

This measure of mine definitely improved over years. Most stuff I do this way I would not have the slightest clue on how to get that done under Windows! I avoid "man" and "info" pages if possible, rather search for good online documentation. I don't see much sense in reading up information in books which I probably won't need anytime soon.

That's mostly because I find that I forget 90% of things I looked up and needed only once and I want to reuse it maybe months or years later. Which is also why I started documenting stuff (just for myself) .

What I find useful is reading tutorials or howtos randomly about stuff which looks interesting to me. I can learn from it even if I do not reproduce the stuff written there - simply by trying to get what certain commands do.

Great sources to me are arch/ubuntu/linux mint wiki, reddit and stackoverflow.

1

u/beejays3 Jul 29 '19

Jumping from distro to distro, but mostly from Slackware and Arch.

1

u/raptorbluez Jul 29 '19

I beat my head against the wall until the wall finally gave way.

Only slightly kidding.

1

u/[deleted] Jul 29 '19 edited Jul 29 '19

Linux from Scratch I'd say is more of an intermediate project.

Overall you start with baby steps, but you will need immersion. Off again on again doesn't work for long-term retention.

There are a couple paths for learning the stuff, I think initially you'll want to hunt and peck for useful tidbits; write them down in a compo book and refer back as you forget with the main targets being decomposing what common tasks you had to do previously and then translating for the linux equivalent as well as identifying new things that you don't have to do with windows (like sync).

After that the RHCSA is a good foundation. It explains many of the systems you wouldn't normally touch on a day to day basis and it does run redhat which is not debian based so there is an additional learning curve.

After that you can look at kernel internals if you feel up to it.

Edit: Also, there are so many things in linux that are manual; if you aren't automating things as you go you end up wasting a lot of time.

1

u/[deleted] Jul 29 '19

Go full Linux, or at least dual boot using Linux more often than the other partition.

1

u/Linux4ever_Leo Jul 29 '19

I'm a long-time Linux user (16+ years.) I switched over when Windows XP debuted with 'Product Activation'. Back then it was more primitive than it is now. Your Windows could be flagged as not genuine by adding more RAM or upgrading a video card. I was like, no thank you Microsoft. I simple dove in head first. I started with a Debian based distribution (Mepis, Lord rest its soul...) I kept a 3-ring binder so that when something broke or didn't work as expected, I put all of the research related to that problem in the binder along with the solution so that I could reference it later. I was also very active on the forums and I lurked on other Debian distros forums to learn about what other issues users had and how they solved them. When you post an issue in a forum, always be respectful, list all of your hardware specifications including the version of Linux you're using, clearly describe the problem, attach supporting logs and be an active participant in solving the problem instead of simply expecting others to provide the answer. I learned how to setup my own NFS server for use in my home. I later configured a SAMBA server for the same purpose. I learned how to do things on the command line but welcomed GUI tools when they eventually became available. Back then, video was a pain point and almost everyone knew how to edit and configure an xorg.conf file. Also back then, Network Manager didn't exist so if you wanted to join mobile networks you had to configure a custom script file yourself for each network you frequently joined. Installation was also much more manual so I learned about file systems, partitioning, etc. Once I became an experienced, intermediate user I graduated to more complicated systems so that I could better learn the inner workings of Linux. I used Sabayon (a Gentoo derived system) for a number of years. Now I use Manjaro (an Arch derived distribution.)

TL;DR: Use Linux as your daily driver and force yourself to research how to troubleshoot, fix and maintain your system. Keep good notes that you can refer back to later. Be respectful when posting problems to forums and provide as much information about your hardware and the error as you can. Learn how to work comfortably on the command line as well as how to use GUI tools. Learn how to configure config files and make basic shell scripts for customized tasks or to automate tasks. Once you're comfortable using a common, beginner friendly Linux system, try one of the more complicated distros to increase and improve your skills. Good luck!

1

u/aim2free Jul 29 '19

I learned Linux by using it. I've used it since 1996. Nowadays it's not so much about learning Linux, but learning the changes, which I do not always accept (like e.g. Wayland). However there are many alternatives, so I think there is a Linux distro for every taste.

1

u/quiet0n3 Jul 29 '19

Swapped my PC at home over to dual boot Ubuntu. Basically said to myself, if you have to boot windows that's 10 pushups.

So over the next few months I got all my personal stuff up and running, games, word/email processing, ide's for the little bits of Dev work I do. Stuff like that, once I had that all working I started trying to replicate my usual took kit onto Linux.

Basic boot/performance issue troubleshooting, so how to check disk space, how to check swap is working, event logs, network status, system info. That kinda stuff.

Now it's been 9 months I'm never going back to windows and I just finished my first "from scratch" install.

Also only had to do 10 pushups total.

1

u/[deleted] Jul 29 '19

By using it.

1

u/Igloo32 Jul 30 '19

I joined a company that used a Linux variant as the basis for their video encoders. Tons of video hardware use ffmpeg under the hood.

I just don't see how you can become expert level at home. It's gotta be at work and the main attraction.

1

u/greengobblin911 Jul 30 '19

Many people may disagree with me, but as a Linux user on the younger side of the spectrum, I have to say there was one thing that really worked for me to finally switch for good- books.

There's tons of wikis and forums and of course Reddit to ask questions, but it is hard to get good answers. You may end up paying for books (unless you look on the internet for books) but it doesn't beat having a hard copy in front of you. It boils down to a time vs money trade off. The only wiki I would follow is one directly from the developers that act as documentation, not a community wiki. Also worth nothing certain wikis are more tied to linux and the kernel than others, meaning some are comparable/interchangable with the distro you may be using. Still, a novice would not easily put this together.

Forums are also useless unless you have the configuration mentioned in the post or that forum curates tutorials from a specific build they showcase and you as a user decided to build your system to their specifications. There's way too many variables trying to follow online guides, some of which may be out of date.

This i've realized is very true with things like Iommu grouping and PCI Passthrough for kernel based virtual machines. At that point you start modifying in your root directory, things like your kernel booting parameters and what drivers or hardware you're gonna bind or unbind from your system. While that does boil down to having the right hardware, you have to know what you're digging into your kernel for if you dont follow a guide with the same exact parts that are being passthrough or the cpus or chipsets are different.

Books are especially handy when you have a borked system, like you're in a bash prompt or an initramfs prompt or grub and need to get into a bootable part of the system. Linux takes practice. Sometimes its easier to page through a book than to search through forums.

Another thing about being an intermediate or expert Linux user is that you don't care much about distros or what other users or communities do. It wont matter as under the hood it's all the same, spare the desktop and the package managers. Once you're out of that mentality you just care about getting whatever you want done. I'm not one of those guys that's super gung-ho FOSS and open source. I just use what gets the job done. Also from a security perspective, yes Linux is in theory MORE secure but anything can be hardened or left vulnerable. It's more configuration tied than many uses and forums or threads lead it on to be.

My workload involves talking to servers and quite a bit of programming and scripting, in a variety of capacities. That's what led me to linux over the competitors, but I'm not so prudent to never ever want to use the competitor again or have a computer with it. With understanding Linux more, I use it more as a tool than to be part of the philosophy or community, though that enthusiasm pushes for new developments in the kernel.

I'm assuming you're a novice but comfortable enough in linux to get through certain things:

In any computer related thing, always TEST a deployment or feature first- From your linux system, use KVM or Virtualbox/vmware to spin up a few linux VMs, could even be a copy of your current image. This way any tweaks or things you want to test or try out is in an environment you can start over in.

The quickest way to "intermediate-expert" Linux IMO is learning system administration.

My go to book for this is "The Unix and Linux System Administration Handbook 5th edition"

https://www.amazon.com/UNIX-Linux-System-Administration-Handbook/dp/0134277554/ref=sr_1_1?keywords=The+Unix+and+Linux+System+Administration+Handbook+5th+edition&qid=1564448656&s=books&sr=1-1

This edition is updated recently to cover newer kernel features such as could environments and virtualization. This book also helps when learning BSD based stuff such as MacOS or FreeBSD.

Another good read for a "quick and dirty" understanding of Linux is "Linux Basics for Hackers" It does focus on a very niche distro and talks about tools that are not on all Linux systems BUT it does a good concise overview of intermediate things related to Linux (despite being called a beginners book).

https://www.amazon.com/Linux-Basics-Hackers-Networking-Scripting/dp/1593278551/ref=sr_1_3?crid=396AV036T1Y0Q&keywords=linux+basics+for+hackers&qid=1564448845&s=books&sprefix=linux+bas%2Cstripbooks%2C119&sr=1-3

There's also "How Linux works" but I cannot vouch for this book from personal use, I see it posted across various threads often. Never read this particular one myself.

https://www.amazon.com/How-Linux-Works-2nd-Superuser/dp/1593275676/ref=pd_bxgy_14_img_2/137-6604082-4373447?_encoding=UTF8&pd_rd_i=1593275676&pd_rd_r=feffef24-d3c3-400d-a807-24d8fa39cd1e&pd_rd_w=8GX0o&pd_rd_wg=3AMRB&pf_rd_p=a2006322-0bc0-4db9-a08e-d168c18ce6f0&pf_rd_r=WBQKPADCVSABMCMSRRA1&psc=1&refRID=WBQKPADCVSABMCMSRRA1

If you want a more programming oriented approach, if you're confortable with the C language, then you can always look at these books:

The Linux Programming Interface

https://www.amazon.com/Linux-Programming-Interface-System-Handbook/dp/1593272200/ref=zg_bs_3866_1?_encoding=UTF8&psc=1&refRID=5YN3316W22YQ4TSMM967

Unix Network Programming VOL 1.

https://www.amazon.com/Unix-Network-Programming-Sockets-Networking/dp/0131411551/ref=sr_1_1?keywords=Unix+Network+Programming+VOL+1.&qid=1564448362&s=books&sr=1-1

Advanced Programming in the Unix Environment

https://www.amazon.com/Advanced-Programming-UNIX-Environment-3rd/dp/0321637739/ref=zg_bs_3866_2?_encoding=UTF8&psc=1&refRID=5YN3316W22YQ4TSMM967

These books would take you to understanding the kernel level processes and make your own and modify your own system.

As many have mentioned, you can go into these things with "Linux from scratch" but it's also feasible to do Linux from scratch by copy/pasting commands. Unless you tinker and fail at certain things (hence do it on a vm before doing it to the main system) you won't learn properly. I think the sysadmin approach is "safer" of the two options but to each their own.

1

u/sirrkitt Jul 30 '19

I learned Linux by somehow stumbling upon Ubuntu and then later on Debian Unstable when I was like 10 or 11. Then when our Windows XP machine died and we replaced it, I revived it with Debian and commandeered it since my parents had given up on it anyway.

I remember ssh'ing into my computer from school and randomly playing music with mpd to mess with my parents.

I wouldn't consider myself an expert but I can usually figure whatever I need out.

1

u/[deleted] Jul 30 '19
  • Installed a dual boot system

  • Rented servers for web hosting and or shared hosting with command line access

  • bought tons of books on stuff that interested me

  • lots of forums and then google took off and life got easier

1

u/TheCharon77 Jul 30 '19

since you use arch, try reading the man page of every single program in 'base' and 'base-devel' package and try them out

There are some stuffs I didn't even know it's there, like the command 'rename'. (who use it btw?)

I'd advise against looking into the source code of a program you barely understand. so read the man first before diving in

learn awk and sed. you'll feel like god

1

u/[deleted] Jul 30 '19

Read a book and/or take a class on operating system concepts. After that read a book on the kernel. Get started with an embedded RTOS and move into embedded Linux. Of course if all you care about is distro hoping and pimping out your terminal with colors and bullshit prompts then disregard everything I just said.

1

u/starcorelabs Jul 30 '19

There are free Linux Admin courses on YouTube that will give you a good overview of the system. Some even teach terminal and scripting. The best way to learn is to use Linux as your daily OS if you can. As some people have pointed out learning where and how to find documentation to solve problems is part of the process.

1

u/DexterInAI Jul 30 '19

So best advice I can give is use it as your primary OS and just try messing your system up! That's how I learned uses of different commands. (I know if this is the best way to learn but I like get my hands dirty)

1

u/chmod--777 Jul 30 '19

Lots of playing with it, developing software for it, etc.

But then I found the book The Linux Programming Interface (Google it, free PDF) and I found all I knew and more. That book is amazing and not just for programmers. It'll teach you a lot of how it works and stuff like the exact checklist of how Linux might check permissions if you can read a file and stuff like that.

Highly recommended for people getting deep into Linux.

1

u/Edgar_Allan_Thoreau Jul 30 '19

I installed Arch

1

u/[deleted] Jul 30 '19

I suppose I’ve been using it for about 15 or 16 years now. Got started on red hat 9, learned a bit there. Then started playing with gentoo. Learned quite a bit there as well. Then for many years I worked with red hat or centos. I wound up taking a class with sander van vugt a few years back as a refresher and to learn the newer ways. I suppose that’s how.

Mostly though, I learned by googling things like you for a long time. If you don’t need to look something up, you’re not learning something new.

1

u/JobDestroyer Jul 30 '19

I think the biggest thing for me was learning to read logs and output. Learn how to use the terminal commands to parse text. Learn where logs are.

cat grep less find zgrep etc

1

u/[deleted] Jul 30 '19

People say arch wiki is amazing.

0

u/[deleted] Jul 29 '19

[deleted]

1

u/BurnThePriest94 Aug 01 '19

Oh how I wish I could do PCI pass through! Sadly however my Asus z87a motherboard doesn't sand up to the requirements. I think it's quemu (or whatever it's called) support it's lacking.

Next time I'm upping my setup I'll purchase gear specifically to support PCI pass through.