r/learnprogramming • • Nov 07 '19

Neat website to learn Linux/Bash

https://linuxjourney.com/

Not sure if this was mentioned before, but it helped me a lot.

1.9k Upvotes

99 comments sorted by

View all comments

6

u/[deleted] Nov 07 '19

https://gist.github.com/LeCoupa/122b12050f5fb267e75f

Here's a cheatsheet for bash commands that everyone who uses linux should know

5

u/billdietrich1 Nov 07 '19

Nice.

But this explanation, while technically accurate, is not very helpful:

statement1 && statement2  # and operator

statement1 || statement2  # or operator

2

u/[deleted] Nov 07 '19

This might not be for a novice. If you want more detailed explanations you can ask me what some stuff means and i'll do the best I can to answer

3

u/billdietrich1 Nov 07 '19

No, I understand how those work, the explanation just is not good.

1

u/[deleted] Nov 08 '19

I think what he means is that anyone who knows what an and operator does knows what the code does. Kind of useless description. Like saying "statement = statement # equal statements"

1

u/billdietrich1 Nov 10 '19

Better explanations would be:

statement1 && statement2  # if statement1 returns success (0), execute statement2

statement1 || statement2  # if statement1 returns fail (non-0), execute statement2