The amount of info he squeezed in this short amount time is staggering. These tips will save you countless hours. His accent is rough but English captions work well. Got a beautiful terminal now with loads of nifty tools after a day of intense googling
@vods71264 жыл бұрын
If anyone here is having difficulties understanding him, you can turn on English captions which work perfectly.
@whiskeyburns52304 жыл бұрын
2x speed :(
@SKTTWkartrider4 жыл бұрын
Basically I can’t understand what he had said without captions....
@luispedraza44694 жыл бұрын
I can understand well
@m_fadhln4 жыл бұрын
the lecture notes saved me
@drwblkfact72864 жыл бұрын
why did i scroll down at 47:40 time stamp
@NahinAndroid4 жыл бұрын
It's good to mention that 'cat' is a command that concatenates files that are specified in the arguments, but also when no arguments are passed it takes STDIN as the (sole) "input file". By mixing examples between Lecture 1 and 2 where both use cases are shown, students may be confused about the role of process substitution "
@nicolal.11713 жыл бұрын
This lecture requires time to be digested but its content is extremely valuable. When starting learning Linux and scripting the topic is so broad that you can easily get lost. This lecture is a solid list of things that can be used to start the journey. Thanks!
@OliNorwell4 жыл бұрын
The series is fantastic - but I fear that after Lecture 1 the jump in difficulty here will put off a huge number of people. If you're struggling with this, move on to the following lectures, they are all much easier to follow.
@PoeLemic4 жыл бұрын
Yeah, I hope so. This one was really STREAM OF CONSCIOUSNESS feel. Thought I was learned from James Joyce. But, yes, I did enjoy it and learn so much. I just wish that I could have had a little more arrangement, because I had to pause so much -- to look up what he was talking about ... because there were no screenshots nor references on screen. And, I couldn't really understand what he was saying exactly -- in some places.
@ConorJTobin4 жыл бұрын
Thanks a lot for providing your reassurance in this comment - I've been trying to follow along with the exercises at home, and I've been messing around for an hour, but that's only translated to five minutes in the video!
@LordSantiagor4 жыл бұрын
It really helped to look at the lecture notes at missing.csail.mit.edu/2020/shell-tools/
@PoeLemic4 жыл бұрын
@@ConorJTobin Yeah, same with me, when I watched it first time, it took me long time to keep up with Speaker. Because, I actually tried and verified everything that he did.
@LearnWithBahman4 жыл бұрын
Thanks man
@mwat564 жыл бұрын
There should have been made a distinction between standard/shell commands and individually installed tools (like e.g. 'convert' or 'tldr').
@ashwinkraghu16464 жыл бұрын
It took me two days to grasp the contents covered in this 48 min lecture :'). Thank You so much for this course!
@Belgarathe4 жыл бұрын
Thank you for making these videos available. These really do help expose all the critical loose ends of computer science. I’ve been lucky to have some professor who quickly went over a tool or two but never a dedicated lecture on the basics in and out.
@Spenito4 жыл бұрын
Wow, I thought I knew the shell quite well, but clearly there's still so much more to learn. This is a great lecture, even if the instructor can be a little tough to understand at times (although the captions are pretty well spot on so that helps).
@PoeLemic4 жыл бұрын
This was a really incredible presentation. It took me twice as long or more, because I had to keep pausing it, thinking about what he said, and reviewing to understand the wording/s. It'd have been nice if he would have paused, said it clearly in some places, and then began a new topic. But, I wish it'd be a little more arranged, like a sequential presentation versus stream of consciousness. Yet, don't take what I said negative. I got more from this than sitting through a week of college lectures. Thanks for sharing these videos. I hope to find more like this from the MissingSemester. Also, let me add that I looked up EVERY SINGLE REFERENCE that he gave to other tools, read about them, and thought how they would be used. So, I just wish that I had a download of this presentation in (like) a PDF or Powerpoint, where it could useful to review later. But, I wasted 2 to 3 times as long to make all of the notes myself to make sure that I could remember it.
@MissingSemester4 жыл бұрын
Glad you found it useful! FYI lectures notes are online with the examples and links to mentioned tools and concepts. missing.csail.mit.edu/2020/shell-tools
@PoeLemic4 жыл бұрын
@@MissingSemester Again, I loved it. I learned so much from this guy. He did a really good job, but I just wished that I could walk-away with less effort than I did. If that makes sense. Because, honestly, I paused and reviewed every website that he suggested, and MAN OH MAN is there some good tools out there. New to Linux, but man, I see what I was missing from the world of Windows.
@nicobzz14 жыл бұрын
I didn't know tldr, what a great progrom which make linux and unix lot easier, thanks for sharing!
@stevevail11105 жыл бұрын
He is explaining bash but using zsh -- similar but not the same. This may be confusing for beginners. His examples are also unnecessarily complex.
@OrcFriedRice5 жыл бұрын
Yeah, between the over complicated examples, his accent, and the break neck speed, I was having a hard time following along.
@OrcFriedRice5 жыл бұрын
Oh, I definitely appreciate that it's free! My purpose wasn't to just complain, but to let them know so they can adjust their content in the future. If I'm not being effective at teaching something, I 'd like to know so I can adjust; and not waste my or the learner's time.
@2fast4uspartan5 жыл бұрын
@Dat Nguyen There's nothing wrong with someone stating they're having a difficult time understanding the lecture; feedback isn't always positive. Everyone appreciates that they're providing free lectures, but without honest feedback, how can they improve?
@thechronic4twenty4 жыл бұрын
@@OrcFriedRice And that's why you didn't get into MIT. Remember that the lecture is actually not for us.
@OrcFriedRice4 жыл бұрын
@@thechronic4twenty I don't see the need to insult me. Nothing I have said has been rude like your statement. Please understand that even those who accomplish great things also have room for improvement. My intention here is not to hurt anyone's feelings.
@kamalrajvinay74714 жыл бұрын
Thank you very much team@missingsemester for improving my skills! Keep up the good work🙏
@RitchieFlick4 жыл бұрын
This is such an amazing series. Administrating Linux servers is one of my many responsibilities at my job, but I have been stuck for quite a while now on my existing workflows and commands I know. This opened my eyes for many techniques and commands I did not know about.
@joestevenson55684 жыл бұрын
For how clear, structured and beginner friendly parts one and then three are, this is really quite a poor followup. A great resource in its own right, but as part of a series it seem quite out of place. When Lecture 1 opens with explaining what a terminal is and how ls works, this is a heck of a jump. Using a customised zsh shell when teaching a bash lecture is a bit of a no to me too.
@whiskeyburns52304 жыл бұрын
missing.csail.mit.edu/2020/shell-tools/
@Blackwhite22774 жыл бұрын
WhiskeyBurns thanks. I was also struggling a bit with his exposition
@brucejimenez8144 жыл бұрын
The lectures weren't meant for complete beginners. It is meant for people who have work with the shell before and wanted to deepen their understanding.
@infavorofdemocracy57704 жыл бұрын
@@brucejimenez814 But the structure is questionable.
@samuelabreu43494 жыл бұрын
These lectures are not for beginners. It feels more like a compilation of things that you can learn, you know. You won't finish these playlist mastering version control nor shell scripting, but you will know that those tools exists, are quite handful and that if you follow the tips they gave, you can learn those things.
@scottbrewer4744 жыл бұрын
If you're on a Mac, some of the tools he mentioned (tldr, shellcheck, ripgrep, etc) aren't installed by default - easy to fix tho! While it may be possible to download and install them via a browser and the finder, please don't do that. Instead, instead install the homebrew package manager (brew.sh) and then use it to install all of your command line apps. ie I installed tldr with "brew install tldr". Even better, you can easily manage your installs with "brew list" or "brew uninstall".
@71sephiroth2 жыл бұрын
Scott BREWer :P
@zaheeruddinfaiz70643 жыл бұрын
Initially, I was having a little difficulty understanding (because of different accent). However, I tried a little bit more and now I feel pretty comfortable :) Great job
@PanConPatecito4 жыл бұрын
The best channel in KZbin
@ml_serenity4 жыл бұрын
Lecture was really good, but without captions was really hard to understand lecturer's speech..
@frankwoodtiger4 жыл бұрын
The lecturer actually comes up these very good interactive examples to demonstrate the quirk of shell. For example, the conditional execution using && and || is based on the fact that 1 is treated as failure and 0 is treated as successful which is counter intuitive for beginner. His example actually shows the reasoning behind this. I have seen most other tutorials just showing some commands without explaining why. If others feels this lecture is unclear, then it is because it requires you to actually think. Not a cookbook style lecture, but fundamental understanding of why. If you are struggling, then you have not spent enough time or have done enough hard work to think. As for the English part, his English is pretty understandable by US standard. In the real world software development workplace culture, especially the outsourcing culture, you will inevitably communicate with Indian, east European, Chinese, etc that speak imperfect English.This is also part of thing we need to learn and accept.
@earth2saka8 ай бұрын
It's not counterintuitive at all, it's computer science 101. Exit codes/statuses are one of the first things you should ever learn when you deal with scripting and programming of any kind. A program or piece of code that exits with code 0 has run successfully. Any other number indicates some kind of failure. As the name of the course suggests, this should not be your first brush with these tools and technologies. Ideally, you've studied in this field and this course completes your missing knowledge.
@gergerger533 жыл бұрын
Thanks for the tips on the subtitles. I thought only auto generated would be available but happy it's the real deal there. I really didn't want to miss out on all the cool information. Took me far too long to realise what 'bass' and 'cell' were meant to be and that it's actually 'command' and not 'comment' that he is saying. Great teacher, just added an extra layer of confusion with some of the pronunciations.
@christophehkg60563 жыл бұрын
very nice series - big jump in difficulty from the first lecture, could have been a bit more progressive. Also it would be great if we could download some ample files to be able to replicate in real time
@Goncinious5 жыл бұрын
Great lecture! What websites do you use to keep up-to-date with new tools for shell, etc.?
@thinkGrey_4 жыл бұрын
missing.csail.mit.edu/2020/shell-tools/
@UTube2K64 жыл бұрын
well, that escalated quickly
@CrazyY6373 жыл бұрын
Tips: if this accent is kinda hard to understand immediately, you can use CC. This will make it much easier to follow.
@maxwellnderitu4 жыл бұрын
Amazing talk. Which theme are you using in your zsh terminal
@pabloosorio66474 жыл бұрын
Great work! Thank you for making this content free! Since this is an introductory course I would have preferred he used simple bash and not zsh since I do not really get the difference, or teach us how to do it and make the terminal as pretty as his.
@xrafter4 жыл бұрын
Its the same with zsh have more human friendly collors .
@edoardomosca6976 Жыл бұрын
What keyboard shortcut are they using to preview the expanded command? For instance how does he visualize "touch foo1 foo2" after typing "touch foo{1,2}"?
@streetfoodbox24114 жыл бұрын
Awesome Lecture! The Instructor has good knowledge on the topic. People here are complaining about his accent. But its fine to me! The Amount of Knowledge shared in this short video is so amazing! Kudos to the instructor and @missingsemester to sharing these lectures to students who can't experience such quality of lectures! Heartly Thanks!
@swiftlearnstuff Жыл бұрын
What shortcut used in 20:30 to expand foo{,1} to foo foo1?
@MFKologlu4 жыл бұрын
It makes me sad to admit, that I struggled to understand what he was saying and that he was making unnecessary references (such as the $-sign and its representation in other languages) here and there.
@SuperMarkusparkus4 жыл бұрын
You will get used after a while. There are also excellent subtitles.
@brucejimenez8144 жыл бұрын
The "unnecessary" references you say aren't unnecessary at all.
@MFKologlu4 жыл бұрын
You can have your opinion. :)
@SuperMarkusparkus4 жыл бұрын
@Username More people speak spanish in America.
@bgjhgjghkjuhgbg4 жыл бұрын
I don't understand what the teacher does to expand what's in between the {}. For example, at 21:31, how is touch {foo bar}/{a..j} expended in all the variations foo/a... bar/j before he executes the command ?
@eez Жыл бұрын
tab key
@lowercaseguy35784 жыл бұрын
Every lesson I've started was with the same complain, 'too much to learn'....... But becoms easier as I keep on trying .... Thanks for the great lesson .
@CarlosAlbertoSilvaJunior Жыл бұрын
Fantastic class. Although it's a little difficult for someone who is just starting with bash in my opinion. I was able follow along probably because I'm already familiar with many of the concepts that are explained. But the explanation is really awesome. It's definitely my go to reference of bash for now on. Congratulations MIT and thanks for opening this to the World.
@bartsimpson23242 жыл бұрын
20:23 is there a keyboard shortcut in bash to expand this curly brackets as in zsh to see the combine command ?
@eez Жыл бұрын
tab key
@c2ras2265 жыл бұрын
Nice lecture!..... If possible can you post the zsh config file please, your terminal looks cool!
@MissingSemester5 жыл бұрын
Thanks! All of the instructors' dotfiles are already online and linked in the lecture notes under missing.csail.mit.edu/2020/command-line/#dotfiles
@c2ras2265 жыл бұрын
Thanks for the reply! What I'm looking for is instructor's computer terminal setup file(zsh config - theme, plugins etc.). I couldn't find them in lecture notes.
@MissingSemester5 жыл бұрын
They are linked at the bottom of the section I linked to. Look for the text "All of the class instructors have their dotfiles publicly accessible on GitHub: Anish, Jon, Jose."
@jsnadrian4 жыл бұрын
im struggling to keep up but can infer most of what's taught from prior knowledge - this lecture needs more explanation of basic concepts. but i do appreciate the lecturer's efforts in the sheer amount of information provided: all those examples means he spent a lot of time putting the lecture together, but i think he's taking a bit too much of his own knowledge for granted ;)
@AnirudhBagri4 жыл бұрын
Great Lecture, Wondering how can I set up my shell like the one you have? I have "oh my zsh", how can I update the prompt like yours?
@abdoulayebalde21394 жыл бұрын
Hey I can help you to do so I have done something similar
@AnirudhBagri4 жыл бұрын
@@abdoulayebalde2139 please tell me..
@paudelvishal2 жыл бұрын
Hi, I also want to know. I have used OhMyZsh with powerLevel10k. @Abdoulaye Balde Please help
@paudelvishal2 жыл бұрын
Someone said zprezto, somebody else said ohmyzsh with floating around
@charlesmyers29024 жыл бұрын
I'm rather new to Unix. I tried the commands (shellcheck, tldr, rg, fd) and none of them are on my system. I know that I can install them, but I don't understand the mindset that it is "OK" to blindly install packages on production servers. In the Windows world, I wouldn't even consider installing some unknown software (viruses, etc.). Why is it OK to install these utilities? Especially when it requires sudo to install (which again tells me it's something you should give serious thought to before doing).
@murtazaraja75104 жыл бұрын
Well Welcome to Unix. Everything is open source here. If there would've been issues, people would have reported and stopped using it. Moreover, you can always build the tools from the source just to be safe :D
@k4r4m310.5 күн бұрын
@barisdenizsaglam4 жыл бұрын
Thanks a lot for sharing such a great series. I have learned many useful things from this lecture. I think the comments complaining about his speech are unfair.
@kellybmackenzie2 жыл бұрын
This is awesome, thank you so much! I really appreciate this!!
@riccho864 жыл бұрын
At 16:55 in line 7 there is “$@“. In the resource file $@. In line 11 in the video there is “$?” in the condition, in the source code at the homepage only $?. I tried both ways, but the first 5 rows worked for me. I installed then ZSH and them changed the first row to #!/bin/zsh, but it didn’t help. No offense, but I found the first video easier to understand (the accent). It was well planned becoming step by step a bit more complex. The pace was better there as well. Here we suddenly jump into a lot of new commands, not testing them separately first. (I have Ubuntu 18.04.4 LTS)
@xrafter4 жыл бұрын
The [[ and ]] is a built-in operator so maybe zsh won't work with it.
@vladgrad71214 жыл бұрын
@@puneetgupta87 love your song choices mate
@animeshsingh42904 жыл бұрын
you don't need to install all of these or learn all of them, when these tools come inside your daily use and eventually you'll get the hang of it.
@surajshrestha78254 жыл бұрын
Can you please tell me exact details about this setup? Zsh? Themes? Plugins? specially l liked the git plugin, command highlighting even inside man page there. Wow
@babbupandey4 жыл бұрын
look for zprezto
@sirakzeray45434 жыл бұрын
I really like the lectures, thanks @missingsemester. Is there a way to find the solutions for the questions/homework in the lecture for comparing and guide if we are stuck?
@hobgoblin46144 жыл бұрын
Solution set would be cool!
@05xpeter4 жыл бұрын
Anyone know what formater he is using in his terminal? I really like the colors and the code completion and execution status.
@DivicNikola3 жыл бұрын
Most likely zsh and oh-my-zsh
@casparvolquardsen67614 жыл бұрын
How is this "history substring search" (min 44:00) called?
@destsk4 жыл бұрын
it's history-substring-search plugin for Zsh. github.com/zsh-users/zsh-history-substring-search . Or if you install oh-my-zsh (ohmyz.sh/), it comes with this and many other plugins, themes etc for Zsh out of the box.
@casparvolquardsen67614 жыл бұрын
@@destsk Thanks
@JackieCodes4 жыл бұрын
Does anyone know what terminal he's using? I know it's in linux..
@danielkaczmarczyk24824 жыл бұрын
It looks like he's running macOS, and the shell is zsh.
@chuhaoliu5050 Жыл бұрын
Thanks for this amazingly useful lecture!
@lizhihuang33125 ай бұрын
this is a bit difficult to follow
@SunggukLim4 жыл бұрын
is it worth to studying bash script? nowadays python is heavily being used.
@herrpez4 жыл бұрын
Yes, it's worth it. Bash relies on the standalone utilities (like ls, cat, and so on) to a much greater extent than Python ever would, and it's actually designed to do so. Python replaces all that, usually with much slower alternatives. Python was also never intended to be used as a replacement for Bash/any other shell. An analogy would be if you were asking whether you should use a shopping cart or a truck. It depends on the task at hand. ;)
@xrafter4 жыл бұрын
@@herrpez Unknown refrence .
@thomassun30464 жыл бұрын
i'm wondering how -exec rm {} \; i mean after rm works, not mentioned
@user-sd2en6pn3z4 жыл бұрын
`-exec` runs the following command on each of the results of the `find` command, substituted at each `{}`. You need to tell bash where the end of the command is with a semicolon, but since semicolon has special meaning in bash, it needs to be escaped here as `\;`
@elfaidii5 ай бұрын
thank you, this was very helpful
@tprankul4 жыл бұрын
Hi, can someone explain how at 15.06 "2" is used? I did not understand how it is used for the standard error. Thanks
@kemalbidzhiev19484 жыл бұрын
I think that idea is very simple: each program has 2 output streams (may have more). The first one is stdout, which usually gives output on the screen, for example, echo "Hello" gives Hello. The second is stderr (standard error), the stream that says about execution is succeeded or not. If yes it gives 0, which means 0 errors, else gives 1. So simply echo "Hello" has 2 output streams. stdout is Hello, stderr is 0. The 2> /dev/null means redirect stderr to the /dev/null The > /dev/null means redirect stdout to the /dev/null
@tprankul4 жыл бұрын
@@kemalbidzhiev1948 Thanks. Makes sense now :)
@yyc34914 жыл бұрын
Does anyone know what shell he was using? It's colorful and could automatically complete the commands.
@xrafter4 жыл бұрын
Zsh the name is floating around.
@paudelvishal2 жыл бұрын
Same question
@paudelvishal2 жыл бұрын
ZSh, but Theme?
@churchilldu8261 Жыл бұрын
Sir, what's your oh my zsh theme, please?
@Dhadheechi4 ай бұрын
Same question. The theme look really simple!
@Anandpasunoori4 жыл бұрын
What is the shell being used in this class and what is the theme ?
@jimmoriarty33814 жыл бұрын
pretty sure they said the shell being used was bash but I don’t know the theme
@xrafter4 жыл бұрын
@@jimmoriarty3381 No it was zsh. Z shell
@jimmoriarty33814 жыл бұрын
@@xrafter true didn't they use bash in the first vid tho? and I know for sure when they redid this lecture they used bash
@xrafter4 жыл бұрын
@@jimmoriarty3381 Bash was the target however this guy for some reason uses zsh
@lgninjalo4 жыл бұрын
I'm working through these. Thank you.
@fedemoreno6134 жыл бұрын
anyone knows how to use the letters of the bash with that colours?? In his bash diferent commands has diferent colours.
@tomasmatusek62928 ай бұрын
Im traing use the commad for last argument as he said the $_ and it didnt work, i must store something as name of the file in any variable and then where I ware using command: cd $nameOfVariable, then it work well, but not as: cd $_ Hmmm, do I something wrong??
@kwangee4 жыл бұрын
6:39 sudo !!, where the !! auto replace with previous command does not work on my bash, after i type !! and press enter, its execute previous command and output the result, it's only work on zsh?
@xrafter4 жыл бұрын
You don't have a history file like .bash_history . Usually when you start bash and zsh for the first time it will ask you do you want it to setup this for you usually you will say yes.
@blue_name_warrior4 жыл бұрын
why "mcd test" gives you the "~/m/t/test" while the pwd is "~/m/tools"? Shouldn't that be "~/m/tools/test"?
@the-ok-stuff4 жыл бұрын
It's probably a matter of his terminal, in that it shortens the paths. When he does cd .. he goes back to m/tools, meaning that the test directory was indeed created inside the m/tools directory. Cheers!
@HamzaFouads4 жыл бұрын
I think that he abbreviated his $(pwd) in .bashrc file like the one here check this unix.stackexchange.com/questions/381113/how-do-i-shorten-the-current-directory-path-shown-on-terminal check this too if you interested, he showed how to customize your own terminal and how you can use other peoples dotfiles kzbin.info/www/bejne/mWa1i4p6gdacnKM
@doplydo-66232 жыл бұрын
Where he was clicking to expand the globing pattern Inline ?
@eez Жыл бұрын
tab key
@himanshutank54774 жыл бұрын
which theme are you using over zsh?
@MissingSemester4 жыл бұрын
Jose is using github.com/sorin-ionescu/prezto. His configuration of prezto is available here, in his dotfiles: github.com/JJGO/dotfiles
@himanshutank54774 жыл бұрын
@@MissingSemester Thanks!
@김준혁-r3e Жыл бұрын
Just wondering... How did Google fully understand what he said and generate captions? Marvelous technology....
@enisten Жыл бұрын
It's probably a human being who edited the transcript.
@bang94274 жыл бұрын
I think this was great, and bash is just weird, so do not blame the lecturer. There is only one way to learn the shell and that is to use the shell.
@jenibites4 жыл бұрын
The OS parse #!, NOT the shell.
@MissingSemester4 жыл бұрын
Good catch, it is indeed the kernel that reads the #! part to determine what program to use. I updated the notes to reflect this.
@EconomicsDomain4 жыл бұрын
Great initiative and superb work by Anish, Jose, and Jon. Quick question though, is there a solutions page to the questions? Would be great if there was
@casedup Жыл бұрын
Any updated stuff?
@chuhaoliu5050 Жыл бұрын
42:22 Control+R, command history search
@thecoderguy_00012 жыл бұрын
```pip install tldr``` , to install tldr. Hope you will find this helpful.
@prosy17194 жыл бұрын
awesome lectures again. Thank you
@veerendrasaraswathi11 ай бұрын
Can somebody confirm if the ~/m/tools >>> ...{master } screen is git repository from git hub? {I am new to vim, git and Linux).
@markswain14 жыл бұрын
Jose - good job! and Thank You! BTW, ignore those complaining about your speech. I'll bet most of the people criticising can't speak a second language half as well as you. Press On
@fhajji4 жыл бұрын
True! However, Jose will eventually have to do some talks at conferences, and he needs to know the three sins that make even the best presentation look less than perfect: speaking too fast, trying to cram too much details in too short a time frame, and the last sin (which doesn't apply to this series of lectures): relying on the demo gods. :) Accent is NOT an issue though, so don't sweat it.
@acidCat-lv2 жыл бұрын
at least ppl can understand us without subtitles
@橙崽留学说4 жыл бұрын
Hello guys, how to make it display the whole command when I input like touch {1..9}.sh I can only run it but can't see the whole command. Thanks~
@beetlenut69804 жыл бұрын
I think he's using some sort of extension, I don't know which one but if you are interested in an good extension for python programming there's one called as "KITE AI" which auto completes the code for you, it supports editors like vim,vscode,pycharm etc
@dogukanyazar84 жыл бұрын
That autocomplete in the command tool is just annoying.
@zuhail3394 жыл бұрын
I love this lecture
@sobevj3 жыл бұрын
this is concentrated essence
@SHUBHAMJAISWAL7864 жыл бұрын
which keyboard stroke expands curly brackets command?
@MissingSemester4 жыл бұрын
With the right completion setup, tab completion expands ${variables} along with other things, like $(commands)
@user-sd2en6pn3z4 жыл бұрын
Not sure about parameter expansion (curly brackets), but ALT-8,SHFT-8 will expand glob patterns.
@makecsx3 жыл бұрын
if you use zsh, then add setopt BRACE_CCL to .zshrc file, after that you just press TAB and brackets will expand
@LearnWithBahman4 жыл бұрын
I almost did everything in lecture 1 in Mac, Can I do the rest of the course in Mac book?or I need Linux?
@linuxatheist53614 жыл бұрын
As far as I know most of this bash stuff will work because Mac and Linux are Unix-like, but if you want to be sure you can do all of it, I recommend trying Linux in a virtual machine or through some other method, it's very easy if you look on KZbin. If you don't want to I'm sure you'll be completely fine though, good luck!
@GabeTheYabe3 жыл бұрын
Sure, I have windows but I use Git Bash or Ubuntu from the Windows Store to follow along on my machine.
@pvmilk4 жыл бұрын
Any way to get the author shell configure? (theme)
@matthewmechtly50264 жыл бұрын
Ditto that! I'm a big fan of the theme they're using
@emma707074 жыл бұрын
Email and ask for that portion of his .bashrc file.
@skirata31444 жыл бұрын
Milk Phongtharin The theme looks pretty darn similar to what you can get with prezto (github.com/sorin-ionescu/prezto)
@qpicpicxxz35692 жыл бұрын
anyone know that where i could config this teachter's shell color?
@shiffterCL4 жыл бұрын
Total beginner when it comes to bash scripting, but I had to figure out why his program was not working for me. I had to rewrite that if statement as if(("$?" != 0)) ; then #rest of the statement It took me a bit to figure this out but I can imagine some other students interested in learning shell scripting and then getting discouraged at this point :(..
@maggiexiao15914 жыл бұрын
Awesome content!
@swagatochatterjee71045 жыл бұрын
Please please please share your dotfiles. The shell is awesome
@MissingSemester5 жыл бұрын
All of the instructors' dotfiles are already online and linked in the lecture notes under missing.csail.mit.edu/2020/command-line/#dotfiles
@mtomazza4 жыл бұрын
@@MissingSemester this course is amazing, I can't believe it
@hamedgholami261 Жыл бұрын
man this session was hard!
@fhajji4 жыл бұрын
Too bad xargs(1) wasn't covered, together with find -exec. It is VERY common in shell scripts.
@joelwillis20433 жыл бұрын
what language is this in?
@anthonyz91974 жыл бұрын
Is anyone doing the exercises for these? I am stuck on number two. Is there an answer guide anywhere?
@noway45174 жыл бұрын
You could try storing the path in a file with the marco-program and read it from the file(with it's absolute path) with the polo-program. If you don't know how to store and read variables from files with bash, read this: stackoverflow.com/questions/5965737/how-can-one-store-a-variable-in-a-file-using-bash
@anthonyz91974 жыл бұрын
@@noway4517 Thanks a lot! I was trying to do something similar to that but didn't have exactly the right idea. Appreciate your help.
@yixianwang8634 жыл бұрын
Hi guys, how to understand 2> in the sentence "grep foobar "$file" > /dev/null 2> /dev/null". I tried many different ways in my shell, there is nothing special.
@shaarifkhan3794 жыл бұрын
there are two streams, one is standard output and other is stderr, the regular output gets printed to the stdout and errors will be send to stderr stream. so 2> is for directing the stderr output to /dev/null which is like a black hole in linux. Still curious why 2> just replace the /dev/null to some file on you disk and see the ouput. **for more detailed comparison refer to this answer** stackoverflow.com/questions/3385201/confused-about-stdin-stdout-and-stderr#:~:text=If%20my%20understanding%20is%20correct,all%20the%20exceptions%20are%20entered.
@martianbilal4 жыл бұрын
how is he fish like autocompletions etc while using the bash
@martianbilal4 жыл бұрын
how is he getting*
@xrafter4 жыл бұрын
Zsh not bash Zsh have plugins for that
@xrafter4 жыл бұрын
How da f*ck did diff work in 22:08? Diff can't take input from the stdin.
@lth99154 жыл бұрын
"A lesser known similar feature is process substitution,
@xrafter4 жыл бұрын
@@lth9915 Thanks
@andriy55074 жыл бұрын
What is that zsh theme?
@ahmedmimo92743 жыл бұрын
How to install broot on linux ubuntu 20.04 ?
@WysiRys4 жыл бұрын
anyone know what theme he is using?
@riteshsrivastav75984 жыл бұрын
if you want to convert multiple png files to jpg. find . -name '*.png' -exec convert {} "{}.jpg" \;
@PoeLemic4 жыл бұрын
Impressive. Wish I was better at Linux, like some of you guys in this lecture. But, I hope to get there.
@manavsaxena55794 жыл бұрын
Wouldn’t this convert let’s say abc.png into abc.png.jpg?
@steveroger45704 жыл бұрын
you know it is not easy to follow when he use foo bar as example.
@OviedoSaul4 жыл бұрын
AWESOME!
@rayquaza1vs1deoxys4 жыл бұрын
anybody know how i can make my bash as pretty as his?
@aminbohio21894 жыл бұрын
Ισίδωρος Τσαούσης He is not using BASH. He is using ZSH. You can install zsh and then use oh-my-zsh scripts to make it pretty as his. Zsh provides a lot more features than BASH to make your work easier.
@utkarshmaurya68773 жыл бұрын
There is Oh-my-bash available on Github too...you can use it for bash