r/linuxquestions • • Nov 10 '19

How to Really Learn Linux?? NSFW

After using Linux for let's say 5 months...

I wanted to know if there's any course/book/video or any other recommendation you know for learning more about Linux and so being more confident in getting things done and also getting a better understanding of how everything works.

Thanks in advance!!

155 Upvotes

125 comments sorted by

View all comments

2

u/Ramin_HAL9001 Nov 11 '19

People think Bash is just a shell, it is so much more: Bash is a programming language. Learn Bash as a programming language, learn how to actually write programs in it. This is my advice to anyone who asks, "how do I learn more about Linux?" Start going over Bash tutorials, learn how to write conditional logic and loops, learn how to loop over the lines in a file (hint: while read LINE; do something --with "${LINE}"; done <'file.txt' ;), learn how to write functions, learn how to manipulate strings (Try this code out; F='hello.txt'; echo $F; echo ${F%%.txt};).

Another good thing to learn about: all the tools in the GNU Coreutils package. If you use Emacs, the Info pages tend to be better than the Man pages.

Another good thing to learn about is just the POSIX standard, especially the parts about processes, file streams, file systems, and sockets. A long time ago (like 15 years ago) I found a book called "Linux Programming by Example" by Arnold Robbins, who was the maintainer of Gawk, which taught the fundamental concepts of C programming for Linux applications with respect to the POSIX-compatible APIs, and this book completely changed my understanding of Linux, and operating systems in general. The book is still relevant today, but you can probably find more up-to-date resources or tutorials online, and for free.

2

u/Lukss_203 Nov 11 '19

That's too much information and homework!!! Hahaha. I'll search for a begginer course of bash, thanks!! The book I'll leave it for later.

4

u/tausciam Nov 11 '19

I'll second that. The first time you write a little bash script that saves you hours of time, you'll feel like a king

2

u/Lukss_203 Nov 11 '19

Yes!!! That's what happen when you learn a new skill!!! It happens to me mostly when learning a new programming language!!