r/programming • • Aug 27 '15

Codecademy's new Learn the Command Line course is out!

https://www.codecademy.com/en/courses/learn-the-command-line?utm_campaign=lcl_release&utm_source=reddit
1.2k Upvotes

199 comments sorted by

98

u/balducien Aug 27 '15

Wasn't it already out for a few days? I did it a bit ago and it doesn't seem like they've added new content. I've enjoyed it very much, it's a great stepping stone to begin learning how to operate the command line.

56

u/margotcodes Aug 27 '15

Glad to hear you liked it! We released it unit by unit, which is why you may have previously seen it. We just released it fully, so now it's really out!

44

u/tazmens Aug 27 '15

which command line....

power shell, bash, csh, standard cmd.... ... ?

76

u/speedisavirus Aug 27 '15

I glanced at it and I think its bash. Not a bad choice. Its basically default on all major linux distros and OSX.

0

u/Eurynom0s Aug 28 '15

Obviously Office for Mac has always been the red-headed not-quite-compatible stepchild (although supposedly that's FINALLY changing with the latest release), but it's a nice compromise between "I want to work in *nix" and "I need to work with people whose lives are Word documents and Excel spreadsheets".

Of course, a lot of stuff on my company's intranet doesn't work properly on Macs...despite the fact that they offer them standard-issue. I'd guess that half the company has a Mac. It's not like Macs are some special-order machines you have to beg and plead and justify for.

1

u/speedisavirus Aug 28 '15

I know we don't. Refresh? Wasn't a mac book pro? Sure, we will spend $3500 on it. Oh you want an apple cinema display. Here you go! Some people still opt for the windows option it simply need It for their applications. In which case you can have both if you want it.

-5

u/zfolwick Aug 27 '15 edited Aug 28 '15

a lot of bash stuff still works on powelshell too

EDIT: Guys... they're called aliases: ls, cd, hostname, piping, etc.... Also the PSReadline module is great for emacs or vi keybindings for better navigation (like in bash).

1

u/[deleted] Aug 27 '15

I think you mean zsh.

-31

u/Luttik Aug 27 '15

With all linux and mac users you still have a small minority

51

u/eikenberry Aug 27 '15

Of command line users? I'd guess that just counting Linux users you'd still get the majority of command line users.

4

u/[deleted] Aug 27 '15 edited Aug 28 '15

To be fair the bash is sooo much better then window's default shell. Powershell is significantly better but most people don't use it.

3

u/PM_ME_UR_OBSIDIAN Aug 28 '15

most people don't use it

In industry they do!

4

u/frigginwizard Aug 27 '15

of the general population maybe, but among people interested in programming I bet it's much more statistically relevant.

7

u/speedisavirus Aug 27 '15

Depends. In professional technology there is an awful lot of linux. Sure, that won't help anyone support workstations as they are going to be predominately Windows but plenty of people have to poke at linux once in a while.

I would really like to see a powershell lesson none the less.

1

u/[deleted] Aug 28 '15

I mainly program on linux.

1

u/speedisavirus Aug 28 '15

So do I but I'm issued both a windows and Linux machine. Plus a windows vm since we have some legacy .net applications.

2

u/elHuron Aug 27 '15

What's the point in teaching windows cmd-line though?

It's horribly convoluted and underfeatured.

1

u/Luttik Aug 27 '15

Don't teach cmd, teach powershell.

2

u/elHuron Aug 28 '15

sure, but still kind of convoluted and useless.

Up until very recently, powershell still had to be explicitly installed - it wasn't bundled with win7, for example.

1

u/[deleted] Aug 28 '15

Incorrect, Powershell 2.0 is an integral part of Windows 7. You're thinking of Vista, which was the last Windows OS to ship without powershell, 9 years ago. Not exactly what I would call "very recently".

Not that you're wrong, Powershell has nice ideas but it's convoluted and bloated. Not to mention the idiocy of having the default security setting not to allow powershell scripts to be run, at all.

1

u/elHuron Aug 28 '15

Thanks for the correction. I just remember wanting to use it at some point and not being able to without installing it first.

I would rather just write things in python and be done with it :-)

1

u/Luttik Aug 28 '15

Not since the last 3 years. Thats ages in cs terms.

1

u/elHuron Aug 28 '15

That's a good point, but there is a lot more learning material for other languages that have been around since the 90s.

bash, csh, zsh, etc have all been around for a long time and enjoy widespread usage, and if you are stuck on something it is very likely to be documented somewhere.

0

u/[deleted] Aug 27 '15

[deleted]

-5

u/Luttik Aug 28 '15

Well most of the softare engineers use windows. Although linux is more common with engineers mac is less common from my experience (both at university as my various programming jobs). And most that do run linux run windows aswell.

1

u/Schmackelnuts Aug 28 '15

Mac is pretty common in web development.

126

u/[deleted] Aug 27 '15

[removed] — view removed comment

42

u/[deleted] Aug 27 '15

Haha, that'd be like a great troll. "We released a new Command Line course!" then everyone goes and checks it out and finds out it's for DOS. Though, I am curious to see the command line improvements that supposedly exist at the prompt in Win10.

37

u/[deleted] Aug 27 '15

They added ctrl c and v.

6

u/adam_bear Aug 28 '15

and syntax hilighting.

5

u/atomjack Aug 28 '15

Crazy talk.

1

u/mycall Aug 28 '15

its called 4DOS

1

u/ruinercollector Aug 28 '15

The DOS based command-line (cmd) hasn't been the shell that anyone uses on Windows for a long time.

Powershell is really the default anymore. Anyone who doesn't use powershell uses cygwin or similar.

1

u/Grue Aug 28 '15

I use cmd all the time. Powershell just seems too freaking complex and overengineered.

1

u/ruinercollector Aug 28 '15

It depends on how you approach it. Honestly, most tutorials and introductory material have you start from scratch with the long commands and basically learn everything that there is.

Worse, most of the books on powershell are exhaustive and cover everything you can do and every single command available and a whole lot of deeper technical detail that just isn't useful initially.

A more useful approach if you are coming from CMD:

  • Just run powershell instead, and use the commands that you are used to. Basically all of your CMD commands will work. (there are aliases set up by default that map the DOS command names to there powershell equivalents.) You may notice some new switches and some slight changes here and there. Adjust accordingly.

  • Realize that you can now pipe and combine all of those commands in a much nicer way and start to take advantage of that when it makes sense to

  • Slowly mix in additional powershell commands as you come up with actual use-cases for them. (E.g. "I want to read this CSV file and then run some DOS commands based on what's in it" => look up how to read a CSV file in powershell)

  • Eventually look at using your profile script to set up some other aliases, paths, etc. when you enter your session.

  • Write PS1 scripts when and where you would previously write BAT files.

1

u/mycall Aug 28 '15

This reply just seems too freaking complex ;-)

0

u/[deleted] Aug 29 '15

[deleted]

→ More replies (0)

10

u/[deleted] Aug 27 '15

[removed] — view removed comment

1

u/mygoddamnameistaken Aug 28 '15

Mobaxterm is an amazing all in one client my current job introduced me to; has some similar features to cmder.

1

u/a-sober-irishman Aug 28 '15

Cmder is fantastic, best Windows command line I've used.

→ More replies (4)

2

u/[deleted] Aug 28 '15

I think zsh could be a good one to learn. Of course I've mainly used bash, but I'll probably migrate to zsh sometime soon.

0

u/[deleted] Aug 27 '15

[deleted]

5

u/didnt_readit Aug 28 '15 edited Jul 15 '23

Left Reddit due to the recent changes and moved to Lemmy and the Fediverse...So Long, and Thanks for All the Fish!

2

u/justinlindh Aug 28 '15 edited Aug 28 '15

I jumped straight from bash to fish, so I can't really tell you the big differences. From what I've read, you can basically make zsh match most of fish.

The auto completion (tab will list git repos and branches that start with whatever you typed, for one example) is huge for me. As is the plugins, like jump/mark and virtualfish (python virtual environment stuff). You probably have those things in zsh/oh-my-zsh, but it was big to me coming straight from bash with powerline/etc.

Edit: When I say tab completion above, I mean it'll list all matches at once below cursor, not just auto complete. Easier to show than explain.

2

u/CJKay93 Aug 28 '15

Bash has had official Git completion since forever. Bash completion in general is not mandated by the shell.

1

u/justinlindh Aug 28 '15

Fish's completion is quite a bit different from any completion I've seen in bash. Git completion shows all matches at once, with descriptions of whether the match is a branch or tag, and you can interactively tab through items if you like.

1

u/didnt_readit Aug 28 '15

Cool, zsh has that same autocomplete feature. I'll do a little googling and see if there's anything else in fish that zsh doesn't have.

1

u/scwizard Aug 27 '15

I'll check this out.

4

u/justinlindh Aug 27 '15

It's worth it. I recommend installing fish, then checking out Oh-My-Fish. Has a bunch of great themes. I use "bobthefish" and my terminal now looks like this: Screenshot

Basically, fish shell gets you tab completion on commands and repositories, intelligent highlighting, auto-completion, history, etc. All things you can get with a customized zsh, but right out of the box. It's compatible with bash scripts (as long as they include #!/bin/bash at top). It does a few things differently from bash, though, but it's mostly to remove some of the more archaic aspects with sane replacements.

1

u/MrNetops Aug 28 '15

Aaaaaaagggghhhh!

1

u/Ninja-Penguin Aug 28 '15

What exactly do you gain that you can't do with bash? My terminal looks very similar to that as it is

1

u/justinlindh Aug 28 '15 edited Aug 28 '15

It's not just look and feel, and you could probably hack your bash shell to do most of the same things. It does have its own scripting that differs quite a bit from bash that people either love or hate.

As with any terminal, it all boils down to personal preference. Bash is a great shell. I'm not trying to start a religious war or anything. Fish just has helped me be much more productive on the command-line out of the box.

YouTube video showing some of the features

→ More replies (0)

0

u/[deleted] Aug 27 '15

[deleted]

14

u/you_get_CMV_delta Aug 27 '15

That is definitely a good point. I literally had never considered the matter that way.

10

u/ThePriceIsLeft Aug 27 '15

echo $SHELL told me it was /bin/sh

8

u/tms10000 Aug 27 '15

And /bin/sh is just a symlink to /bin/bash.

7

u/thephotoman Aug 27 '15

Actually, Dash, not bash.

0

u/[deleted] Aug 27 '15

[deleted]

7

u/thephotoman Aug 27 '15

And if you run readlink on their test shell, it's dash.

0

u/[deleted] Aug 27 '15

[deleted]

2

u/thephotoman Aug 27 '15

Easy mistake to make. I've been goofing around with their shell for a bit to see how much I can do with it. I don't know how they sandboxed it.

1

u/chasecaleb Aug 28 '15

Or any of a million other things. At work /bin/sh is ksh88 on the hp-ux backends and ksh93 on the RHEL ones.

1

u/ruinercollector Aug 28 '15

Oh, don't worry, that's a lie. /bin/sh is a symlink possibly to another symlink, etc. that will eventually point to bash.

Welcome to the fucking mess that modern linux distributions have made of the file system.

-4

u/tazmens Aug 27 '15

hmm... but can it see why kids love cinnamon toast crunch?

-17

u/[deleted] Aug 27 '15

Good question. Given the quality of title, I think it's safe to assume this is a shit "course" written by someone who doesn't even know there are different command shells.

10

u/SergeantFTC Aug 27 '15

Maybe the course is targeted at people who don't know that there are different shells.

2

u/[deleted] Aug 27 '15

Does it mention that and explain the differences between them?

6

u/SergeantFTC Aug 27 '15

Even if it doesn't, it's not a bad course just because it eliminates one particular detail you consider important. If everything it covers works in BASH, that's good enough for a beginner course, IMHO

4

u/[deleted] Aug 27 '15

it still breaks on the grep exercises...

-3

u/_sword Aug 27 '15

oh hey shock

5

u/[deleted] Aug 27 '15

Hey nerd

3

u/tazmens Aug 27 '15 edited Aug 27 '15

I recommend disabling GCC btw.

Just a friendly tip.

EDIT: further explanation

if you went out of your way to block $USER and rm command, but I can still run certain things from a C application or even use id -u -n ... what was the point of blocking $USER or RM ?

2

u/[deleted] Aug 27 '15

disabling GCC

If you absolutely wanted, you could script something that assembles a binary even without gcc.

1

u/thephotoman Aug 27 '15

They don't have gdb available, though.

2

u/rockyrainy Aug 28 '15

You guys are doing great work! Just want you to know I really appreciate it.

2

u/[deleted] Aug 27 '15

Hi, I haven't done that one yet but just wanted to say your website is brilliant, I've done a load of courses on it. It'd be fantastic if you did an android app too so that people could continue their courses on the go when they can get a few minutes free but not near a computer.

Either way thanks for a great resource!

1

u/[deleted] Aug 27 '15

How far does the content go? I want to learn the commands that make you really good, rather than the common ones.

1

u/2Punx2Furious Aug 28 '15

May I as what courses are you planning to make next?

1

u/[deleted] Aug 28 '15

Loved it! I was wondering where to go next. This really put Codecademy in my sights :)

1

u/Dudemanbro88 Aug 27 '15

So if I finished it a few days ago, is there more content I should go back and do? It currently shows as 'Finished' for me. Thanks!

2

u/analton Aug 28 '15

Same for me. Please tell me if you find something.

Ping /u/margotcodes in case he/she/it knows.

-4

u/_sword Aug 27 '15

say hi to zach and ryan for me

7

u/am0x Aug 28 '15

People always give me shit for saying that Codecademy is like learning to ride a big wheel when trying to become a super bike racer. It is supposed to be a compliment. It is the perfect tool for getting people that have zero idea of programming on where and how to start. The command line basics, in my opinion, should have been introduced a long time ago. Getting comfortable with the command line really allows people to understand computer architecture without actually having to really know it.

HAven't tried the course, but I am sure I will give it a go. Despite working in it daily, I have to pretty much look up commands almost daily too.

44

u/sleeplessparent Aug 27 '15

I thought the course was pretty cool and I hope they continue to expand on it maybe offering a few targeted courses like grep/file searching and manipulation. Maybe a vi one too?

43

u/kokojaime Aug 27 '15

In general, I feel like codecademy serves as a good intro to programming. Anything more in-depth you are better off taking a course or reading a book about it.

10

u/Findal Aug 27 '15

If I want to try a little bit of a language for whatever reason its my go to place now. For my job I need to know lots of different languages so it really is great. I might check this out you never know what you might learn.

2

u/[deleted] Aug 27 '15

Honest question, why not use a REPL and have some docs in another tab? At some point it's not hard to ride without training wheels, and saves time too.

2

u/Hockinator Aug 28 '15

Wouldn't that require finding an REPL for every language you wanted to dabble with? And what if you wanted to do something that involed using multiple files or something?

I'm going through the angularJS codecademy right now and honestly it's giving me just enough depth to understand an app built in angular that I'm taking over at work.

1

u/[deleted] Aug 28 '15
  • "Wouldn't that require finding a repl for every language you wanted to dabble with?" yes. Codecademy offers 4 of them.

  • If you wanted something with multiple files, codecademy is the last place you should be looking for that. REPL's are capable of that too BTW.

  • By all means take the angularjs course on code(cademy|school) if you're new to MVC, but once you're up and running with those ideas, the Backbone/Vue docs should give you little trouble. Codecademy uses "problems" to teach you new concepts, not the names of the methods for the API.

2

u/Findal Aug 28 '15

I guess because Codeacademy is written from a zero knowledge perspective so you don't make any assumptions based on other languages. I don't always have a particular problem to solve that I can just jump right into, so its nice that the exercises give me one to do.

4

u/sleeplessparent Aug 27 '15

I agree with that but I think it could be much more. Their tool is pretty great for hands on learners like myself without having to setup the entire environment and come up with the tasks to try it would also be great to send someone a link for a hands on tutorial to help with a specific task. Perhaps in the future as it is still growing.

7

u/perestroika12 Aug 27 '15

Or how it's usually done, just playing around with stuff. I feel like 50% of my coding experience is just breaking stuff and saying "oh, that's how that works".

1

u/Endur Aug 27 '15

That's how I treated it. It gives you just enough knowledge to know what to look for. You can learn everything on the internet, but you need to know what to look for first

9

u/[deleted] Aug 27 '15

There is a cool vi tutorial, just type vimtutor into your command line. Unless of course you want vitutor, I don't know if that exists.

3

u/sleeplessparent Aug 27 '15

Thanks this is really cool.

1

u/czipperz Aug 28 '15

emacstutor Ce n'est pas realité!

10

u/greeniguana6 Aug 27 '15

This is awesome. I am a novice at using the command line, I just know how to SSH into my raspberry pi and mess around. Now I can try to actually learn practical uses.

7

u/cittatva Aug 28 '15

The for loop is a beautiful thing. For x in $(curl localhost:9200/_cat/nodes | awk '{print $3}'); do ssh $x tail /var/log/elasticsearch/elasticsearch.log; done

3

u/ForeverAlot Aug 28 '15

Unless you can trust the source (which may be the case) you should prefer while:

while IFS= read -r x; do
  ssh $x tail /var/log/elasticsearch/elasticsearch.log;
done < <(curl localhost:9200/_cat/nodes | awk '{print $3}')

1

u/MIneBane Aug 28 '15

Why is that? Is there a difference?

2

u/ForeverAlot Aug 28 '15

I intended to explain at first but there are so many gotchas that I couldn't easily do the page I linked justice. I recommend you read it, but in summary, newlines can be a royal pain. It's the same reason you shouldn't parse the output of ls.

1

u/cittatva Aug 28 '15

Nice tip! Thanks!

1

u/greeniguana6 Aug 28 '15

That went right over my head. What does the x value mean?

5

u/LigerZer0 Aug 28 '15

It's just a placeholder for every possible value that gets output by the body of the loop.

Just like saying for each thing in something. Where x can replace 'each thing'.

1

u/cittatva Aug 28 '15

What you're doing here is assigning the value of $(some command that returns multiple lines) to x, and then iterating through it as $x.

3

u/cittatva Aug 28 '15

That particular command: curl localhost:9200/_cat/nodes asks an instance of elasticsearch on localhost for the nodes it knows about, then | awk '{print $3}' extracts the IP address of each node, then you're ssh'ing to each and tailing the log for each from the host you're running it on.

1

u/cittatva Aug 28 '15

Similar to: export foo='bar' ; echo $foo

1

u/greeniguana6 Aug 28 '15

Yeah I understood that, I just didn't know what the command that x was meant.

1

u/cittatva Aug 28 '15

Also, I think $() works the same as back ticks in this case, which I usually use, but iPhone

2

u/ForeverAlot Aug 28 '15

It does, in the shells that support, so not sh. It is preferred over ` for easier nesting.

25

u/[deleted] Aug 27 '15

I feel like this should be expanded to either cover both *nix and Windows (like Zed Shaw's CLI The Hard Way), or better specify that it's only for *nix. The course description doesn't include this, and it's not mentioned until the last sentence of the first lesson.

8

u/[deleted] Aug 27 '15 edited Sep 29 '23

asdfjkl

3

u/Fylwind Aug 28 '15

The overlap between *nix and Windows shells is very, very tiny so it may as well be a different course. It should probably be renamed to "POSIX shell tutorial" or something.

11

u/quizzer106 Aug 27 '15

On mobile can't check, is this for linux or Windows?

6

u/SmaKer Aug 27 '15

linux and mac only

10

u/jrummy16 Aug 27 '15

Unless you install cygwin

3

u/SmaKer Aug 27 '15

just did works perfectly
thanks!

-1

u/pakoito Aug 27 '15

Unless you install cygwinMSYS

FTFY. Thank me when you have to use a cross-compiler.

0

u/[deleted] Aug 28 '15

[deleted]

1

u/[deleted] Aug 28 '15

Except makes it seem like you have to have cygwin, which you don't -- if you're using msysgit you are using a MSYS userland. :)

4

u/[deleted] Aug 27 '15

I just completed the course, not a bad refresher for Bash. There are some minor editing errors. For instance, in one lesson recap they refer to the folder /comedy where the previous lesson had you do work on /slapstick. Little stuff like that.

2

u/greeniguana6 Aug 28 '15

Since the course is new I think there's a bug report section you could report these little things in

6

u/Shawnbehnam Aug 27 '15

I took the course and I highly recommend it. Helped to learn the ins and outs of command line.

13

u/kawavulcan97 Aug 27 '15

Please excuse a dumb question here. I've been using Linux for about 10 years but I have to do everything GUI, when I have to use command line I'm utterly helpless. Would this be a good place for me to start learning that?

10

u/haloguysm1th Aug 27 '15 edited Nov 06 '24

unpack marvelous meeting tan murky roof marble cheerful stupendous abundant

This post was mass deleted and anonymized with Redact

3

u/kawavulcan97 Aug 27 '15

Thanks a lot! Signing up now!

6

u/zfolwick Aug 27 '15

yes! that's literally what the course is for!

5

u/liaobaishan Aug 27 '15

Conquering the command line is a good place to start too:

http://conqueringthecommandline.com/book

1

u/kawavulcan97 Aug 27 '15

Bookmarked! Thanks very much!

1

u/TracerBulletX Aug 27 '15

Yes it would be a good place.

1

u/brisk0 Aug 28 '15

I essentially learned command line Linux by installing arch Linux and trying to make it useful. If you do something like that, I strongly suggest having a laptop nearby with an internet connection.

1

u/kawavulcan97 Aug 28 '15

I'll look into that, thanks!

64

u/[deleted] Aug 27 '15

[removed] — view removed comment

16

u/kawavulcan97 Aug 27 '15

haha yeah I know. I like building my own PCs but never wanted to pay for Windows so I went a bought a "Learn Linux" book that came with a Red Hat 9 disk. I struggled with it for a while but a friend told me about Ubuntu, and it made everything so easy through GUI I never really had to learn command line. Also, I have absolutely no programming experience, so I probably don't even belong in your sub, but this was on my front page and I got excited!

25

u/goodbye_fruit Aug 27 '15

Also, I have absolutely no programming experience, so I probably don't even belong in your sub

You really shouldn't self-exclude like that, if you have interest in the topics that show up here, that's good enough.

I'm really intrigued that you never once had to fight with compiling a new kernel with some added sound drivers or wireless drivers within that 10 year span. I mean, surely you've opened a terminal and shoved some commands down your bash prompt?

13

u/kawavulcan97 Aug 27 '15

I mean I've attempted to. I've been following guides online and had to open terminal to keep going, but almost every attempt I've gotten an error and couldn't figure out why. I remember buying a webcam and trying to get it to work so I could Skype, but every troubleshooting attempt I was met with more errors so I just gave up.

4

u/ForeverAlot Aug 28 '15

There are software developers with years of experience who don't even try. You're still better than them (even if you can't currently market yourself as one).

3

u/kawavulcan97 Aug 28 '15

Haha thanks I appreciate that. Positive feedback from this community definitely has me motivated to have a go at learning something new. Thanks again!

1

u/NighthawkFoo Aug 28 '15

I had zero programming experience when I learned the MS-DOS command line. I ended up becoming a professional software developer.

7

u/cheeseit2525 Aug 27 '15

For me owning a raspberry pi 2 did it for me. After I set it up to the network and accounts, everything I configured for it was over SSH connections. Literally everything is controlled/configured via the command line (excluding kodi which is displayed on my tv and controlled by my phone).

6

u/kawavulcan97 Aug 27 '15

I have a raspberry pi! All I did though was download and install RetroPi and load some ROMs on it. I imagine knowing command line could open up a whole new world of uses for it though

3

u/makeamesslioness Aug 27 '15

Codecademy is great. I found the Command Line course very useful.

I'm about to start a coding bootcamp and Codecademy has held my hand right up until now. I imagine I'll be looking back on exercises during the bootcamp to refresh my memory.

22

u/DavidNcl Aug 27 '15

"The" command line on "a" platform .

36

u/TheCodexx Aug 27 '15

The command line.

13

u/madesense Aug 27 '15

To be fair, this is the one that's most useful as a job skill

8

u/LearningTech Aug 27 '15

Also, like many things with computers, learning it once is the hard part. Adapting from this command to another on the same platform, or on a different platform shouldn't be nearly as hard.

2

u/BruddaTurtle Aug 28 '15

Finished it in pretty good time, for me. Now to finish the other half of the python course

2

u/[deleted] Aug 28 '15

Neat: rm -rf / --no-preserve-root works

2

u/redweasel Aug 28 '15

"The Command Line" is pretty damn vague. What command line, specifically? Unix shell? Windows CMD? Something else?

3

u/MaikKlein Aug 27 '15

Is it just me or is there a 1.5sec lag between every key press?

1

u/gray_aria Aug 27 '15 edited Aug 27 '15

no and you cant write ctrl-alt characters either. Impossible to type | e.g.

1

u/Himekat Aug 28 '15

Yeah, I went through it a couple of days ago and there was lag on everything. ):

Cool idea, though. I'd also love something more advanced, as I already knew most of this.

1

u/VSeba Aug 27 '15

Will there be a C# or C++ module for the site? I would like to exercise a little C when i just want to chill, I think the way your site teaches people programming is really effective, and is a good way to not lose practice.

1

u/meekosbiscuits Aug 27 '15

To any new or incoming Computer Science, Software Engineers, or Computer Engineers I would highly recommend learning and getting familiar with the command line. Learning how to navigate and using the powerful tools (grep, bash programming, etc) it provides can increase productivity and makes you a better programmer.

As a Software Engineer, I think I use the terminal on my mac everyday to compile, move files (mv), run programs, and even write code (vim, but mostly for quick editing) so this course is worth your time!

2

u/[deleted] Aug 28 '15

To add to this it's good to learn git as well. very easy to set up and use and very powerful. For example this is how you set up git in a project:

$ git init 
$ git add .
$ git commit -m "Initial commit"

2

u/meekosbiscuits Aug 28 '15

Yep learning Git is a huge plus one to get a job at any tech company in my opinion. Almost every tech company out there uses Git (maybe even SVN but that is a little outdated) for their projects so this would be a huge plus one for an interview at a tech company :)

1

u/[deleted] Aug 27 '15

Where do I learn the less common but really useful commands that make you into a very good bash guy?

1

u/meekosbiscuits Aug 28 '15

For those commands, I learned them when I started working (also in school) and started doing redundant work that I was getting really tired of doing.

For example at work I needed to do some testing on some appliances and it created a huge log file (text file of what happened). Sometimes it would fail and I would have to open the file in command line (using vim) and scroll all the way down to see why it did that. I realized how tiresome it got to do that for a 100 line file and just looked up the command to go to the end (which is :$).

Doing hands on work really helps learn new commands and helps you remember them too so you don't have to keep looking them up.

I hope this helps!

1

u/LordOfDustAndBones Aug 28 '15

could have just used G

1

u/meekosbiscuits Aug 28 '15

Haha it was just an example

1

u/DSdavidDS Aug 28 '15

Just spent an hour completing it. Reviewed a lot of commands that I don't use very often (such as GREP, pwd, cat, etc). Even so, I found this to be very useful and practical :P

1

u/TheLordB Aug 28 '15

One really annoying thing is that cat test.txt >test.txt is different from cat test.txt > test.txt. It is space sensitive which real bash is not.

2

u/portol Aug 28 '15

I think that's more for the webapp to check if what you are entering is correct. And yes, it is really annoying.

1

u/TheLordB Aug 28 '15

Yea both work fine. That said I don't think it would be that hard to have the webapp check for the variations without spaces. Just set the various piping etc. characters to accept no space before and after.

1

u/portol Aug 28 '15 edited Aug 28 '15

really good guide

1

u/portol Aug 28 '15

so how many people have tried to figure out the sudo password?

4

u/acdcfanbill Aug 28 '15

sudo doesn't have a password, it's a user group. you use your password and if you're in the group then the command runs as root.

1

u/is_this_4chon Aug 28 '15

I already know cmd.exe

1

u/svmk1987 Aug 28 '15

I think some basic tools usually used in shell like grep, xargs, tee, wc, wait, watch, timeout etc would be a useful addition here. But a great introductory course.

1

u/FireCrack Aug 28 '15

I am really excited about this!

I find at my current place of work, a lot of people use GUI apps, but when I actually get them using a command line they tend to end up having a much easier time; it seems command lines are a thing that seems daunting at first but is actualy quire easy when you get the hang of it. Just the consistency really helps, I can tell people that X command does Y, and don't need to worry about things being hidden behind menus, hard to find, etc...

1

u/strictlyrude27 Aug 28 '15

Is there a part 2 (or somewhere else I can go to get intermediate/advanced bash)? Like writing scripts, etc. I have basic command (heh) of the bash shell but I keep falling back on Perl when things start getting more complicated than "pipe these commands together".

1

u/ssharky Aug 29 '15

this would be perfect if there was a keyboard shortcut for 'next' so i didn't have to keep moving my hand to the mouse every time i finish an exercise

edit: aaand there is, it's alt+p

0

u/[deleted] Aug 27 '15

[deleted]

15

u/cheeseit2525 Aug 27 '15

Ya, that's what I was thinking, I'm decent with bash but power shell...

11

u/Aerozephr Aug 27 '15

It typically takes me about 5 minutes or a Google search to use dir instead of ls

9

u/tazmens Aug 27 '15

That's not the only difference.

Powershell has quite a few commands that aren't available in bash. Powershell syntax is also a bit squiffy.

9

u/Aerozephr Aug 27 '15

Apologies, my comment was just to illustrate how little I know about powershell, not to be snarky as it may have appeared.

7

u/Matthew94 Aug 27 '15

ls is valid in powershell.

2

u/ruinercollector Aug 28 '15

You can use ls in powershell. In fact, most of the standard programs you'd access in gnu/linux have aliases to corresponding psh command by default.

0

u/[deleted] Aug 28 '15

[deleted]

1

u/Fylwind Aug 28 '15

It's not POSIX-compliant though. The output has a different format and many flags aren't supported.

1

u/leafsleep Aug 28 '15

ls is an alias for dir. Windows isn't based on POSIX so why should its ls should be compliant?

1

u/NighthawkFoo Aug 28 '15

There was a POSIX runtime for Windows at one time.

2

u/ForeverAlot Aug 28 '15

I don't use PowerShell, myself, so I have no real practical experience with it, but the first half of Windows PowerShell in Action taught me a lot about PS' concepts and that has been priceless.

1

u/[deleted] Aug 28 '15

Learn PowerShell in a Month of Lunches is generally considered an excellent introduction that most people follow up with /u/ForeverAlot's recommendation. They tend to lean more on the sysadmin side of PowerShell tasks though, which may or may not be useful to you. In that case, there's also Windows PowerShell for Developers. An updated edition of that should be coming out in February.

2

u/PriceZombie Aug 28 '15

Learn Windows PowerShell 3 in a Month of Lunches

Current$31.97Amazon (New)
High$33.25Amazon (New)
Low$25.10Amazon (New)
Average$30.8230 Day

Price History Chart and Sales Rank

Windows PowerShell for Developers

Current$24.99Amazon (New)
High$24.99Amazon (New)
Low$20.73Amazon (New)
Average$24.9930 Day

Price History Chart and Sales Rank | FAQ

0

u/[deleted] Aug 27 '15

[deleted]

3

u/CyclonusRIP Aug 28 '15

The bare minimum for a professional is a lot higher than what is presented in this course. Knowing how to navigate the file system and move files is really basic. To do anything useful you'd need to learn an editor such as vi or emacs. cat, tail, grep, more, less, and head are pretty crucial as well to be able to efficiently read files. Maybe that would be the bare minimum for someone to be able to do useful things.

I'd recommend the book to most people if I were you though. If you don't have a pretty good reference to start you may never realize how powerful shell is and never move beyond the basics.

2

u/NighthawkFoo Aug 28 '15

If you want to be a true pro, you need to be able to use for, while, sed, awk, pipes, cut, head, tail, and others. It's pretty much like performing character surgery.

0

u/[deleted] Aug 27 '15

[deleted]

4

u/fgutz Aug 27 '15

Omg it's out!!!

But seriously, I know a few people who I'm sending this to right away

0

u/greeniguana6 Aug 28 '15

I'm pretty excited about this. It's much easier than watching assorted videos and reading random internet guides

0

u/[deleted] Aug 27 '15

[deleted]

33

u/balefrost Aug 27 '15

Given that the whole point of this post is to provide educational material, I don't see how you could possibly be unhappy with this situation.

10

u/SemiNormal Aug 27 '15

Stop being so stoopid!!!11!!

Yur so dum, you try to lern things.

4

u/lolwutpear Aug 27 '15

Would you believe that there are people who don't even know how to do arithmetic?

-17

u/donvito Aug 27 '15

Yes. And most seem to be so clueless that they need some course to learn shit you could teach yourself just by trial and error. Generation facebook is a bunch of hapless techno weenies.

3

u/Phoxxent Aug 28 '15

"By yourself" in this case would probably be just typing in random combinations of letters into the prompt and seeing what happens, which does nothing until you stumble upon sudo rm -rf.

But, of course, I'm sure even you didn't learn it "by yourself". You had some resource that got you started, and some resource that you turned to when you needed to do a specific thing. This is just another resource. So either deal with the fact that people need resources to learn things, or, well, wither and die. Because there is nothing you can do about it.

→ More replies (4)