r/linuxquestions • u/Lukss_203 • 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!!
68
u/tshontikidis Nov 10 '19
Hack! I have used linux in one form or another for 15 years and I can honestly say that in the few months I have been messing around on hackthebox.eu I have really taken my skills and understanding to a new level. Getting on the machine might be a bit web app focused, but once you are in an need to escalate privileges you really get in it. I mean you really need to know how the architecture to be able to enumerate and find the holes. And it really forces you to leverage basic tools, I have taken my pipe/grep /sed/awk game to a new level and I freaking fly in vim.
12
u/Lukss_203 Nov 10 '19
Amazing!!! How can I get an invite code??
30
u/tshontikidis Nov 10 '19
That’s the first puzzle! This is the more web app side of it, so not quite a Linux centric puzzle, but still educational none the less. Little hint is start inspecting the website source and see if there is stuff you can leverage, pretty sure it can be done all from the browser but I think you could probably do it via cURL or wget. If you follow through and start cracking boxes check out ippsec on YouTube, great resource.
11
u/Lukss_203 Nov 10 '19
OMG!!! I'll do it ASAP, now I'm in mobile😔. That'll be really exciting!!!
13
u/Slash_Root Nov 10 '19
It is very fun. If you subscribe, you can do all of the old boxes with complete walkthroughs. I'm not in security, just a sysadmin, but it has been eye-opening in some cases. A word of warning, the VPN connects your system to a network with many other people, all of which have some degree of skill and interest in network security.
This could potentially open you up to some attacks. I would recommend that you connect to the VPN from within your (likely kali linux) VM. I also recommend you take a snapshot before first connecting and revert to it regularly. Finally, I would not leave the connection open when it is not in use. Other than that, it is an awesome site and community. Good luck!
2
3
u/Melon__Bread Nov 11 '19
Because of you I took the plunge and after a hour or two I got a invite code. Do you have a suggestion on where to progress next. Or just watch old solutions to learn tricks to try on new boxes?
7
u/Slash_Root Nov 11 '19
If you are still doing the free tier, you can try your hand on the currently open boxes. Get connected to the VPN using the instructions and then take a look at the open boxes to get their IP. You are given the IP and OS (Windows vs Linux no versions) and that is it.
Figuring out what could be vulnerable is the first half of the game. Vulnerabilities are generally not repeated from older boxes (though they are often new vulnerabilities on the same protocol). From here, you need to learn about the basics of discovery and enumeration. There are two goals for every box. A user flag (obtained by "popping a shell" on the box) and a root flag (obtained by elevating to root/admin and accessing a protected area). These flags are text files with a string inside. You can submit these to the site to prove you did it.
A hint: the first thing you should do is run nmap (if you aren't familiar with nmap, try zenmap. Great way to learn) against the host to find all open ports. Google the ports if you don't know what they are used for. Try curling them or opening them up in a browser to see if you there is a site for you. They often have some hints there. If you find a website, you might also read about "fuzzing" the site. This is an automated way of finding files/sites/pages that are served by the web server. Cracking hashes is a big theme. If you encounter a hash, you can probably crack it with hashcat or johntheripper.
In the end, you will not get anywhere without a browser open on another screen. Every time you find out new information, look for vulnerabilities for that thing. Keep in mind stuff like OS version, webserver and version, CMS, PHP, etc.
Also, if you are starting with low pentesting experience like I did (but hopefully some experience in OS, networking, and web technologies), you might need to google pieces of a solution. There is nothing wrong with that as you could be missing some key fundamentals specific to security (I definitely was). Try your best to get good and stuck before you do so. Also, tab away from the solution as soon as you learn something new. You don't want to spoil it. Good luck! I had a great time doing it and haven't slept as soundly since.
6
Nov 11 '19
Also try out overthewire.org - you ssh into a server (try Bandit first), and you solve a puzzle in order to find the password to a different user account.
1
2
u/Thmyris Nov 11 '19
I literally came in to write the same thing this guy did. Also I'd like to add, take constructed notes via a program like cherrytree. It really helps when you write your own little linux documentation. Seperate it by terminal, suggested programs, keywords, anything new you hear about, etc.
Cherrytree was incredibly helpful to me.
Also +1 to hackthebox.eu, you can also watch people like ippsec's fantastic walkthroughs on youtube if you want to get a feel for things first and don't know what to do.
1
3
1
u/vampatori Nov 10 '19
Thanks for the recommendation, this looks amazing. It was really fun working out how to get in. I've setup a Kali VM but I just want to double-check, no... triple-check!, the config before getting stuck in.
I'm going to try Networked first, seems like the best one to start with.
1
u/tshontikidis Nov 11 '19
Snapshot your VM and take regular snapshots as you build up your tool kit. Networked was a good one, nothing too crazy, I think craft is my favorite active box currently but maybe not a good first one. Google and YouTube are your friends and if you get stuck read through the forum, might help steer your searching. If you do reach out never straight up ask for the commands, always try and ask in a way that can help guide you but not up give you the answer, if that makes sense.
0
0
Nov 10 '19
[deleted]
3
u/Andonome Nov 11 '19
The love's in the speed.
Regular text editor:
hold shift
press down, down, down, down, down
Ctrl + X
Take mouse
Scroll up
Insert cursor
Ctrl + v
Vim:
d5j10kp
Regular Text Editor
Go to open bracked '('
Hold Shift+Ctrl
Right, right, right, right, right, right
Type your changed bracket changes
Vim
f(ci(
1
Nov 11 '19
I too love cherry picked examples.
1
u/Andonome Nov 11 '19
Aren't all examples cherry-picked?
1
Nov 11 '19
No, cherry picked exampled often pick the most favorable situation, or use a less optimal alternative compared to the software being compared against.
0
u/Andonome Nov 11 '19
OK. Well I'm not really sure what to do with that, since I can't show you the set of all possible things to do with text editors and then scroll down to the median.
It's not there as a proof, it's there as an explanation for people who might not know much.
It sounds like you're saying other editors might do things faster. Are you thinking emacs here, or proposing that Writer could do some common actions faster?
0
Nov 11 '19
For example, in IntelliJ, I can press CTRL+W to expand my selection to the nearest scope, for example, (^ is cursor/selection position):
namespace x { function abc(int y) { return y; } } ^ namespace x { function abc(int y) { return y; } } ^^^ namespace x { function abc(int y) { return y; } } ^^^^^ namespace x { function abc(int y) { return y; } } ^^^^^^^^^^ namespace x { function abc(int y) { return y; } } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ namespace x { function abc(int y) { return y; } } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ namespace x { function abc(int y) { return y; } } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Of course there is the fact IntelliJ uses predictive algorithms to give you suggestions you probably are intending to use, it has really powerful refactoring thanks to its AST parsing, and goes beyond showing errors; suggesting fixes to poorly formatted code, superior alternatives and simplifications of what you wrote.
That's just the tip of the iceberg.
-1
21
u/Fatboy125 Nov 10 '19
I’ve heard a lot of good things about Linux Journey. After taking a quick look seems really good. Haven’t used it myself though.
Also, I’d pick a goal and do whatever it takes to learn how to do it. Like maybe setting up a website using Wordpress. That’s how I got started and I’m now a Linux Sysadmin.
3
u/Lukss_203 Nov 10 '19
That website looks very interesting!!! I'll definitely take a look at it!!!! What you said about the goal is also a good practice, sometimes I get rid of trying something and just ignore it, and also by solving problems you learn a lot. Thanks!!!!!
5
u/Fatboy125 Nov 10 '19
Oh you know what would be really good to learn since you just get rid of something(kinda how I do things lol). Docker, it can be used separate applications and data. So you can chunk the application and keep the data or keep the data in the container and chunk the whole project.
2
2
u/rcook55 Nov 10 '19
This. Knowing that I wanted to do thing X and then saying ok I'm going to figure this out. Google can help you figure it out.
7
u/boseka Nov 10 '19
One word: Practice
Oh no these were 3 words
Shit i mean 8
Oh ....
Shit what a trap
2
u/Lukss_203 Nov 11 '19
Hahahaha. More than practice, shitting it all and fixing!!!
5
u/boseka Nov 11 '19 edited Nov 11 '19
Yes learning on your mistakes is a great way to learn something.
I would also recommend reading "The Linux Command Line" book, i started my jurny to linux with this book, its an amazing source for getting into linux command line, bash and some bash scripting.
Download the pdf, highlight what is important, add some notes to it and it will be yours forever.
Its available in many languages, i found it in Russian, Arabic and English (there is more languages available) anyway don't repeat my mistake and read the English version even if English is not your native language
http://www.linuxcommand.org/tlcl.php/
Good luck with linux, linux can be pleasantly annoying sometimes !! If that makes any sense !!
3
u/Lukss_203 Nov 11 '19
I'll download the book!!! Thanks!!
linux can be pleasantly annoying sometimes
I don't think so, the user bugs Linux. The OS that is annoying even when the user did everything OK, is Windows.
7
u/delowan Nov 11 '19
Install virtualbox or vmware workstation
Install archlinux and try to break it and recover (VM helps here)
Learn vim, bash and all the basic utilities
Learn from linuxacademy (the full paid one not the free one)
Install gentoo
Install a tiling WM
Install linux from scratch
Make or install a package manager for your LFS install
:) Oh and try to do everything you can from the terminal (making directories, moving files etc etc). It’s easy with a GUI, it’s challenging from a CLI. ;)
3
9
u/DaftPump Nov 10 '19
The best way is by watching it fail. Could be engine repair or linux.
Build it, break it, fix it, learn from it. Go.
Books and tutorials are nice until they are out of date. Then they are more a reference.
8
u/Lukss_203 Nov 10 '19
Build it, break it, fix it, learn from it. Go.
I loved that phrase!!
7
Nov 10 '19
[removed] — view removed comment
1
u/Lukss_203 Nov 11 '19
So, I need to go out of my comfort zone!!! Understood!! Actually loving that, experimenting!!
4
Nov 11 '19
[removed] — view removed comment
1
u/Lukss_203 Nov 11 '19
Yea, luckily I'm very curious when it comes with any technology!!! So I'm distrohopping a lot, that (The curiosity) is very helpful!!
4
u/a_wild_thing Nov 11 '19
I just checked out Hack the Box, solving the invite riddle involves what I would consider specialist knowledge. Stuff that I haven't seen before overthewire.org, or more importantly, since. Very pen-test oriented imo. By all means try to solve the invite challenge, but if you can't solve it, then google the solution, and in reading the solution, if a lot of it is new to you, I'd start with some over the wire challenges before continuing with Hack the Box.
For my part, I use Linux everyday at home but rarely do anything with it. On the work place side of things, I really wanted to use Linux more so I went and studied for the RHCSA, this is where I started to learn Linux in a meaningful way.
Good luck!
1
u/Lukss_203 Nov 11 '19
You mean Jack the box is more advanced than over the wire?? I'll take a look at both anyway!!!
Ohh!! And thanks for the advice!!
2
u/a_wild_thing Nov 11 '19
I can't speak for Hack the Box in general, all I can say is that the invite challenge requires some pre-requisite knowledge that I know is introduced and taught in some of the early overthewire 'Bandit' challenges.
Without that knowledge I don't think you will beat the invite challenge. There are many places to get that knowledge, however speaking for myself I was introduced to the concepts via overthewire.
Back to your original post, Linux is the swiss army knife of the computing world, it does almost everything and there is not a person alive who knows it all. When you say you want to really learn Linux, you might need to be a bit more specific, which is why I recommended the RHCSA (and RHCE if you're enjoying it) approach as it teaches what I feel are a good set of fundamentals, and puts you in a good position to decide where you want to furuther develop your knowledge.
4
u/thebadslime Nov 11 '19
Just use it as a daily driver, find a way to do EVERYTHING you need to do.
1
u/Lukss_203 Nov 11 '19
EVERYTHING
What if I wanna rule the world??
2
u/thebadslime Nov 11 '19
Learning how to do it in linux will let you really learn it.
1
u/Lukss_203 Nov 11 '19
Since most servers run Linux, and this is a connected world, I agree with you
2
u/Vladimir_Chrootin Nov 11 '19
If you try to rule the world using a Mac, that means Apple rules the world.
If you try to rule the world using Windows, they probably wouldn't give a shit because they're untouchable - but you might get opportunist coup attempts using Feature Updates as a cover.
3
u/blacksuan19 Nov 11 '19
Install it and use it, no dual boot
I did that 5 years ago when I didn't really have a reason to use windows and I still don't, I am now a sys admin by experience
1
u/Lukss_203 Nov 11 '19
no dual boot
I would love to do so, but my family used Windows, they won't understand nothing in Linux
6
Nov 10 '19
What was mentioned above already said it, build it, break it, fix it, etc.
But here is a good one that helped me tremendously. Instead of using a desktop, use a window manager like i3 or Suckless.
Why? Linux works best from command line while a desktop was made for ease and simplicity. Believe me that this will truly help you out. Give it six months and you'll know more than you could ever have imagined. Why? You'd use your terminal more and more.
3
u/Lukss_203 Nov 11 '19
Ohhh!! That's really hardcore (For a begginer, but also helpful, as you said)!! I'll take a try in VM!! Thanks!!
2
4
Nov 11 '19 edited Feb 06 '25
F reddit
2
u/Lukss_203 Nov 11 '19
I'd say avoid courses and books. Videos might be ok although I have no specific ones in mind.
Well, that varyes thought the person...
I'll do what I can afford...👩💻💸
1
u/Andonome Nov 11 '19
I got my first Linux-job (a one-off), and I started 2 years ago like this.
I do projects first, and only switch distros to help with projects. Arch is legitimately easier than most others if you don't want to plan ahead and you have a lot of disk space.
2
Nov 11 '19
Have a place to be able to keep and update notes. For me, I have a large wiki of everything I've done with Linux
Have an interest in learning how things work (in my case with games, I rather set games up with distro Wine manually instead of having it one-click with Proton or Lutris; helped me out with a lot of tweaks and optimal configurations)
1
u/Lukss_203 Nov 11 '19
Have a place to be able to keep and update notes. For me, I have a large wiki of everything I've done with Linux
Kinda personal diary?? And what's exactly that link??
2
Nov 11 '19
Kinda personal diary??
Sort of maybe, but I mostly use it to keep notes on how to re-configure software and Linux distros.
And what's exactly that link??
It's my own self-hosted deployment of DokuWiki that holds over a hundred pages on how I configure various Linux distros, games, and programs on Linux, along with other operating systems.
Linux-related notes are what make up most of the pages, but I also have all sorts of stuff like how I configured Coreboot on a KCMA-D8, how to use a Raspberry Pi to flash a BIOS chip, and even notes on how my DokuWiki instance is hosted.
Having this wiki for notes has helped me a lot with Linux, and continues to do so. If I figure out something new, I figure out a good way to implement it in my set-up, and then add it to my notes.
1
u/Lukss_203 Nov 11 '19 edited Nov 23 '19
So, a personal tutorial for future issues that you have already solved??
2
Nov 11 '19
Yeah
There's also been times where I've done some kind of command syntax in the past, and I reference my notes to see what I did in order to adapt it to whatever I'm trying to do.
For example, if I want to set-up a new game through Wine I haven't messed with before, I reference a page from my notes from another game, and generally copy and paste commands and change them for the new game as I go along. If it works, I then create a page for the new game, and add anything specific to it there.
I plan on trying to dump a BIOS flash chip in a few days; I'll definitely have to refer to my old notes page above on how to re-connect the pins to the Pi and what commands to use since it's been a while since I've done that. There's a good chance I'll have to update some notes and commands too.
I don't know what I'd do without my notes for a lot of things lol
2
u/FryBoyter Nov 11 '19
Use it (the distribution used is irrelevant in this case). Sooner or later you will encounter problems or have to solve certain tasks. Finding an appropriate solution here will do you more good than telling you to deal with configuring unbound, iptables, ACL or bind, for example. Because chances are good that you won't really use any of them.
1
u/Lukss_203 Nov 11 '19
Learning from mistakes is crucial
2
u/FryBoyter Nov 12 '19
Although you don't necessarily have to make mistakes in this case. Often solutions are easy to find on the internet. But I think it makes more sense to learn what you need and not what you might need sometime. How often have I heard that you have to learn vim? Too often. And what should I say? I am using Linux now for almost 20 years without any problems. And without vim.
1
u/Lukss_203 Nov 12 '19
you don't necessarily have to make mistakes
Of course not, but when you do is better if you learn from it.
it makes more sense to learn what you need
I agree, but for entertainment you can learn a lot even though you don't need that information/knowledge.
2
2
u/voncloft22 Nov 11 '19
Linux from scratch gives an in depth look under the hood
2
u/Lukss_203 Nov 11 '19
So many guys told me that, so it should be extremely good!!
2
u/voncloft22 Nov 11 '19
It's a great experience, it's my main distro on my pc's at home.
I have full control and no longer am at the mercy of package maintainers.
3
Nov 10 '19
I recommend watching some Luke Smith videos as he shows you a lot which can act as a nice jumping off point. For learning more sysadmin type things and standardized things for the job world I recommend watching tutoriallinux. Hope this helps
1
2
u/wk4327 Nov 10 '19
I would recommend just using it. When you don't know how to do something, figure it out. When something breaks, figure out how you b broke it and how to fix. When you upgrade computers, figure out how to copy system. When your Netflix doesn't load, figure it how to make it load. When the game you like playing has no Linux version, figure out how to run it in wine. When the program you use doesn't run on Linux, find an alternative that does, for example learn to use gimp instead of Photoshop. In no time you will realize you know Linux well enough
1
u/Lukss_203 Nov 11 '19
That's exactly what I trying doing everyday, but sometimes I give up😔. Today I promise to comply (With what you said)!! You have all the reason
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!!
3
2
u/boseka Nov 11 '19
May i ask may i learn python for shell scripting as it might be more useful (i mean its a cross platform programming language), or bash can't be replaced with python?
2
u/Ramin_HAL9001 Nov 11 '19 edited Nov 11 '19
Python is a good language to learn, in fact it is better than Bash in most ways, especially with structured data like JSON data, which Bash cannot handle.
But the fact that it is cross-platform does isolate you from some of the operating system specific details. It isn't all bad though, you definitely can learn more about the operating system by learning about Python's interface to the POSIX APIs (for example, the functions you get from
import os), and much of what you learn about POSIX in Python will translate over to other operating systems, like Mac OS (obviously, because Mac OS is a UNIX), but will also work in Windows as well, since Windows does provide POSIX compliance with regard to process pipelines.The biggest problem with Python is that (to my knowledge) they do not have a clean way of programming with "pipes" the way Bash does. For example Python does provide the pipes package which interfaces to POSIX pipes, but it isn't as nice as Bash. Take this code example:
>>> import pipes >>> t = pipes.Template() >>> t.append('tr a-z A-Z', '--') >>> f = t.open('pipefile', 'w') >>> f.write('hello world') >>> f.close() >>> open('pipefile').read()That is 7 lines of code. In Bash, this same 7 lines would be:
echo 'hello world' | tr a-z A-zNo import statement necessary, one line of code. Notice the
|character is the "pipe" operator, so Bash really has pipes built-in to it's syntax. The POSIX API was defined largely with process pipelines in mind, and Bash is kind of language-based user interface around POSIX.If you want to stick with Python and not Bash, learn about how the functions in the
osmodule work. The Python 3 subprocess package (import os.system,import os.spawn) is another good interface to POSIX processes, and thepipespackage I mentioned above: learning how these work will give you a better idea of how operating systems work, and you can do it in Python. And it is much easier than writing in C.But I still recommend you learn Bash. It is always good to learn one more programming language.
2
u/boseka Nov 11 '19
Thanks for the detailed reply i would learn bash at some moment its on my wishlist
1
u/ZalgoNoise Nov 11 '19
I'd say using it. For everything. Everyday. Overcoming every single obstacle you've faced on windows, MacOS, iOS or Android and even more, without losing hope (you've been there before maybe without knowing it).
Until you make it your system. That's what Linux is all about. Being your personal computer.
1
3
Nov 11 '19
Learn it by exploring in a VM, try whatever you want. The more you break, the faster you learn.
The KEY is to FIX what you did and NOT reinstall unless absolutely necessary.
2
u/playaspec Nov 11 '19
The KEY is to FIX what you did and NOT reinstall unless absolutely necessary.
This a million times. I've never once reinstalled because things were so broken they couldn't be fixed. I learned WAY more by figuring out what was wrong than just giving up and reinstalling.
1
u/sapunizator Nov 11 '19
I've been "distrohopping" and I think that it helps (at least a bit) to broaden the view on Linux as a whole. Trying out some window managers such as DWM, i3wm, etc. and configuring them gave me a somewhat decent boost. Ricing is good to start digging. Keep in mind that Linux is the perfect server OS, so why not try setting up a LAMP stack, or host a game server? As long as you hack and slash and take your time you should be fine!
Wish you the best of luck in the worlds largest MMORPG :P
1
2
u/TotesMessenger Nov 11 '19
2
u/uniqpotatohead Nov 11 '19
Use it. Don't be afraid of doing things differently. Don't be afraid to learn new things.
2
u/michaelrstute Nov 11 '19
Try the Toucan Linux Project which starts with LFS and goes into much detail on many subjects. You will definitely learn Linux. It is optimized for speed and custom tailored to your hardware. Tough? Yes, but also worth it.
2
u/WillCo_Gaming Nov 11 '19
I don't really remember how I learned Linux because I got started really young.
But I do remember a few things that have helped me immensely over the years.
Unix books. We just have a few old books on Unix lying around, and while they're a tad dated, books like that provide some valuable insight.
Google. If you have a question the answer is usually on Google.
Practice, practice! Use Linux normally, use it weirdly, mess around and tweak things to your use case. Also online articles can be very informative.
2
u/mridlen Nov 11 '19
Learn the stuff that never changes, linux one liners, bash scripting, man pages, etc.
The Sander van Vugt course in RHCSA/RHCE is pretty good, I'd recommend it.
1
1
1
1
1
u/n0b0dyc4r35 Nov 11 '19
not video but one of the most comprehensive friendly forums around for multiple variants and area's of interest.
1
u/Downvote_machine_AMA Nov 10 '19
In case you actually want to learn something useful: https://www.reddit.com/r/linuxadmin/comments/8wvowf/update_on_uiconrad_list_for_2018/
-1
u/brando56894 Nov 10 '19
Install Arch Linux. Seriously. The wiki tells you a lot about what you're doing and why you're doing it.
1
u/Lukss_203 Nov 11 '19
Hahahaha!!! Actually I made the question because yesterday I was installing Arch, and I started questioning a lot of things!!!
2
u/brando56894 Nov 11 '19
Arch is what I credit with teaching me how to use Linux. I've been using it for 11 years and I'm a Linux SysAdmin :)
2
0
0
0
43
u/tausciam Nov 10 '19
Linux from Scratch
and, before people start jumping in telling you to install Arch, Arch doesn't really teach you the ins and outs of linux, it teaches you the Arch way of doing things. Linux from Scratch will teach you the plain vanilla way of doing things and how everything fits together.