
we have control and also does I change I don't like to do that and if it wouldn't be a representation about our mind if I had no mouse and just a keyboard so this was just the keyboard the pointer but we use movies so thanks for coming my time let's get started so you've seen me on the Internet that's my picture you'll see from me that's my name although it's especially no hmeymim so spell it right please thank you jump you look and you will see buying my stuff no thick sarkozy um so i am a reporter bread and i it's Burt I've been here my this burger my entire life and I don't plan
on going away anytime soon i co-founded a consulting company coatsy so from the CTO I organize a little memory somewhat of this call up these sites Pittsburgh I also started ran a group us to city a blue egg which is a monthly them for kind of getting hands-on with technical things which is kind of fun so we started a little bit sector project because I get bored sometimes I just need something to do so this is a community where who interested in nicholas ii kind of get together talk mark each other and also share things like challenges you're having chocolate inch-and-a-half adults but you might get what you're seeking job so check out my psychotic are
interested also a mattress topper foundation remember which means like people or lot and i have opinions so my right now so the rest of my presentation is pretty much just that I'm working on today so lovely my presentations are going to be very active so I could do this for you guys I don't affect my curator so let's see how this works all right so this is a bash shell they did one with Mac and version 3.2 I'm running script all the tests but I forget when I ran that for this fool yes I am so I don't think when it started okay document.write day before after intentional so run time before I read the script all right now that's the
point equation that did it error I don't know that's actually the exit code for date not for test so now I have to do something that's using the Associated rating so we know what everything so that's kind of knowing that the secret agent so she ready to put on the den information oh no seriously Mac your version of Bash from 2007 does not have certain functions that we want who would have thought who wouldn't look it so instead not let's install a new version of that because yeah if you're a Mac user you've got these through you don't have a suggested and I'm almost all Baxter let's try this again with a new shell this one is it's 5-3 a mom you know this
year declared a if Thompson actually works so I run this big old man which is a doozy tells you women when it started how long it takes it takes the account and puts the error code into something that's dynamic based on what you ran into you into the pop dinner I meant if the date of the end so I can see it exited with one and the time I ran it was this time I it's running again I can see that since you're above time there the there are the times for each one so now I can run the same thing over and over while debugging it and I gather all the exit code so I know but it's bail under how
this family sometimes it exits with one sometimes one 27:55 - this means different so that's interesting tassels of me hanging so probably solve this problem won't use it for shell that's what you do so that's perfect lace it with see it a little very different to you so this is stylistically kind of nice you think there are a lot of options but it's also very configurable there's my shell let's see what the version is see there we go test with SH we'll go ahead check that out I have time stamps down the Raven about my Erika's reach man there and I mean cut position in my history and everything that I'm doing over there so
a lot nicer I have all this information just by scrolling up for safety - 3,000 degree this is just one way that I kind of exemplify the business but there are numerous others and another thing I wanted to mention is you might have a song that I was purposely insistent I ran certain things in these examples so here you'll see dollar friend both shell ordem but in this version I do backticks I don't use the curly brackets and here I go pretty because it didn't actually have to do all that stuff but it works so pretty much the rest of my presentation you'll see you do the same thing off with the quays just to kind of
give ideas there's always way to be an awful waste of time so let's talk about category of different categories of the things you can do to mine one of my favorites is using the bang or the carrot so welcome to mash this creates an answer so that's text its new unlimited file so that's changed those two commas but if Mac OS it's this despicable demand which you'll see me struggle through typing last night or I should know that's this morning 10:19 this point and do something cool to go back to it but I'm running this command and it's not how mental it agrees well let me run that harkening again so bang bang where's your perfect and so let's do an LS DL of
the last arguments okay dollar is the last part minute apartment so I was able to do LCL about time I can also do both substitutions so I do thank and this extreme what I'm doing it or global substitution of changing with power go so this change our here's my heart and two other way that this one works is it will globally substitute it so if I have change these seven times in the power line every instant of that is now other thing and up here eat some carrots other thing me in this whole new to the first instance of it for the fireline so just different quick ways of changing parent lands without having to move your
time in scratch how cool is that and also about if you notice but things like that because just get that whole time all right let's talk about the easy servers so we're in talked about a little bit about shell expansion so that's unless example not accident start at the end so anything there's any other messages let's take a backup so I'm going to go see Pete example dot text curly bracket comma period backup really and so what that does is that actually expands they have to go back to see that does is actually different to expand it into two things examine our text space example that X dot ETA P and so we'll see here
that are kind of a background to this like any way of not having to retype the family and potentially get it wrong because of you done this manually you've got it wrong many times this that I did the for loop or exit curly bracket 1.25 for that just does it for loop over what did you for us to 708 it's a nice way to learn a bit like easy canon or something or something i'm gonna find and then the last thing I'm gonna talk about here is is some showing with these curly brackets braces so so you can see that it unless al something that doesn't exist and this double play means if not fail that's exited anything other than 0
do this if he's where ampersand ampersand it would only report those commands it exited successfully exit 0 but the one of the tricks with this is it's it's you cannot do multiple commands response but and then she started going into like an if-then-else statement so kind of a quick activated it is at the command line would be two but these curly braces here and here and then I can put any series of commands that I'd like to do in response to identify that this command may offer the heck away in some second semicolons and you'll see yes an error and then an error code my hair there and then it also echoed my sanity so or any through this so you can talk
more about maybe some of these things make minutes and we'll be done as questions personally exactly equal whatever you'd like tell me that that's better talk about see show or tell again good control is my favorite yeah so control he'll leave the terminal um you can see a pretty good thing we don't wanna plateau I'm gonna echo a bunch of things I wanted to the next thing but I am I tell this to be the promise of secrecy I suppress well whoever didn't want apply any of that then you get you'll see to say that sentence again you see right there second she's awesome and it's clear down the line but the public needs but don't we give after
that you don't offend everything little of the cursor without having an error control you so let's do something from you and actually press control you hold on top so I can paste it with control lot so that a place in line you can also use the toilet a and the jump will be getting into the end of the line so the title because they've been and the person will just jump back and forth that's just forty minute control it without a little bit dirty and really handy giving all I need to do that you don't assume and then or add this parameter you can also delete wherever instead of putting the backs bleep down on seeing on a specular he is up a
neutral W so it looks like us just label but his boxing to get to control enter but then also we do control wine cellar door the back and then you get to the end of wine
surprised how much higher all of us but we didn't alert easy to get there and you can jump five words using on to go forward and you go back through the expertise so you can jump around so it's a putting down left there or you're in great ever meet you can you can go a little bit faster you see I purposely picked some typos here so you can see how you can actually use this nitro a everywhere changed it and use control D descent and a transmission character which is late but it's not all these things so I expect a gel and I control the vector comes back and I actually set a trophy here as well with
it see she doesn't clutter and return the with thirty things like that does when it's unnecessary so check out it's just a note about control D have you ever been stuck in a femoral my hand what stuff how I can have this is it quick friend friend as it exits is it quit without friends what is it or usually it's visually you don't have to remember all of these things anymore that became really apparent to me when I started doing work for the touch stop sufferer foundation and working warned to do and there were all these different gels of all were slightly different and I've tried to remember let me just try and control Dean and you know like the
work I'd look into it and you know what that's pretty much the standard pressure injury so that's all start losing that okay it to be honest in to simplify states so much talk about here using ctrl s to pause when things are scrolling so if any of you guys work in systems you can probably tell it a lot I just kind of ran and ran and ran here I actually have something in the background ready to open it to a bottle because it's a great example it can't last that's wet upon kind of it causes them in his face sir cute but it kind of isn't it that is pretty full so so you don't have
to it's how to scroll up or in a hole with the bar to the right level with extracting to the bottom to follow the tail just possible and do whatever
No so if you drove s it stops really and you literally press any key or jump right at the bottom and start moving again that ctrl C at the end was my lead lazy way of exiting to the screen recording the song that's how this program that I use for first all right and I'll currently maybe you should even do that tailing - of this kind of a little way of doing it here this guy you could use less attack half of that so do this you can see if I hold shift G to work out with you it just kind of tells the fall at the bottom but I can also stop it and search around jumping top to
the bottom tail the end of it all dynamically keyboard out exiting or stopping the flow of the program it's generically lately a bitter fish tailing Ohio but I'll chose old school to zone let's go to kill us so a little money one for every or money yeah like I wonder how many times I have it was way more than I expected $62 so thoughts are generally away just for a computation for a given program analysis so you use VI of them the top MRC if you use get the duct tape to fade these long as long as there's there's all kinds of options that Spotify has planning things almost like generic us practice to distort configs
and that's foreplay that's specific to your account so I'm going to see Victoria like to get to big houses the rework that there was a penny so I'm go see them and my username and email up here as I specified and then you'll see a nobody uses here so as they get taxed because that but you get this as this big as he parted is this path people source see so git config include and Victor is source T so start start that means that if I put all the code that island in commit and on behalf of my employer ever see so I put all that under home directory SRC see so I put that
configure home directory I put this one in my other country I don't have to finish my name's anymore what a comment committee has it will not haven't identified that I'm under source II sell low ii get config file at you slender name and account it could use any alert in figures that have on is logging in the content of the game so it's really handy to not have to remember what to when to jump back and forth between you know persona a or it's going to be close are we to detect it if you want to get anonymous in some situations but you're okay for a being over and others you might want to have an honest directory
will you do something like this and you just make it yellow you also notice again follow the theme of doing everything in a slightly different way throughout this presentation that it would be honored pretty config which is infinite the whole way and a few which is the same thing is to behind a real code so if you're in a little bit of Parnevik not change it probably should be be eyeing it probably you have our lesson we even work so I want to talk about the rewards in the next was Nana notice bhai and I realized that that are somewhat of a caramel down in decided it was time to eyes when I cover of all things but I
use actually use the idle time so I have no idea if this is a surprisingly do you use external programs in yah and you can kind of change the text to be text so you'll see here that CSV toriel contents great pretty normal but down here I'm going to do send a xxd boom there next and how you do the same thing that that's our to get back a lot so kind of select that you're looking at on an actual X of this I'm gonna add anything I'll show my characters and regions like that so actually though because the x XD within beyond and I'm sure you can do this would be max and other things to
tell me if I would yeah yes do you know Damascus was pretty much common right so all right so I'm signed up little deadening minuting files API so see the bottom I'm kind of kind of put things here iron actually running home so that you see what I'm doing otherwise you wouldn't have any idea and he started over again we use the right careful indenting things to the right so example that JSON file because these brackets here I'm gonna angle percent not going to move everything within those brackets at the same time as they only lines just here at the end of it that I'm going to do a similar thing just for the section
so just bending the bow section there's other way to do this to you can just do this line which is just the character what I can do the next five lines for instance with character and you see I'll do that here and then there's something we're honest but if it was not aligned with the fact that oh this is an interesting kind of almost like backgrounds but a much simpler version of the other groups so you can interview on code and it used error code to select a bunch of things you'll see you'll be free August so I'm gonna select all of these ones at the beginning and I asked you to delete them it'll be fast but
even better you can slip on those lines and make the same change to all of them it parallels with a hood one comic down left one comment down I don't make a memory so I do the same will be I to go into desert road baby cheapskate you know a lot of tall so you'll see I'm gonna sweat bubble just on one comma yeah there we go I've done it's all about my hands it to the play a sec I didn't think I'm a curvy girl is so awesome so this is the way that you give it a disease in that there are very variable to do some other things and we need to talk about one specific thing which
often give us guidance to people ended up on a penthouse or something like that finding sensitive information in history so you can't do this hist ignore space and if you practice something with a space it's not on your history to see any to just remind students the last two commands which receives the whenever - no I do 7:08 cool it would just said it away to the end so I'm not far back when I go you'll see that they're sensitive to did you not make it in there because I am able to set up a so this ignore space and then I remain an analyst base in the beginning it didn't go into my sleep out
there just like you there are other original well we aren't in history police so the commands that this this is a really quick and easy way I'm gonna run - new username deputy password we just thrown the space of the beginning of it thought that was configured and that's not all I can't even think Delius that brought a lot of those things that has the station at my written so that I don't think I've remembered of the space and time to use materials SF which is easier isn't it when I turned it off for the demonstration it is on by default for Z she is off by default for bash and you have to set the environment variable oh
yeah yeah so I you live a slightly kind of do a lot of Sheldon emulation in order to illustrate some of these feathers and this is kind of the Cramton off you so I love fuses and I love being happy a little bit down I had a long day so you do really cool things like secondly this is a happiness which are a lot of troops and just give me something funny to look at so here we're going to do a bunch of fortunes that you play through hello cats and how safe and they will be sent by other things in America color or just do this infinitely enjoy go back to this bunny rabbit and a little nothing
severe so yeah there are little things that you can do with big one line yourself up like that and that's my presentation the depressions that's what our in any plans at the end I'll do that yeah alright so got a little text here but I might read commands I was talk to her what they do and how the publisher slice so say you have a JSON file and he has a - command-line man that sucker for information not really shoes it's about thank you but if you can't go take you you can use a lock so this essentially pulls under the host and then IP against the fourth field which is the idea graphs given that it has double quotes
in a way that's down the JSON that's kind of cool I didn't for whatever reason I didn't know this for like seven years but I hit it you can't elude me I am but directly to the line didn't want it so over in there and a little SPM in the binary this was cool seeing Tiffany on video scripts so when you run this lecture you run these two scripts take me input speak them into death didn't at home so you don't need a temporary comment kind of handy sometimes especially if you're trying to stay off this for something fun similarly you will originate fish if you want to send a file over the network and
quickly encrypt it and you have that half of it asses up do you run this so open itself cbc encrypted file your clouds are there in a half and on the other I'm sorry yes you said again this would keep receiving it you can see it over the cell at the Capitol innocent own when you run these commands to the Bastille you know that if we take there's an effort I'll do what everyone will be perfect on the wire and I ended up dropped with a partner also open this is Celtics client so I invited a couple years in the trenches of managing a lot mighty researcher or a letter bank and doing a lot of certificate based total
shooting and follow the TLS little boxing in things like that openness always connected by client they were cool in the world so if you ever need to figure out what's going on if you do that and actually this was the TLS negotiation and you can go wrong and you can interact with it from there I'm going to get down here this is a similar way to dinner for a mail server that has start ulis required running so if you just do as client develop start TLS SMTP cerebellar and connect to the mail server it will twelve and cheating and upgraded to start a list and use your TTL levels or details or whatever from there you can run something
completed be open up their box kind of handy if you want you to show that for something but you're not that half and that's trace which is like you know it's best practice to see what ended because I think that is doing regarding CPU just calls and and it also a little more money chocolates this is the JSON nominees we're here and this is just a club for a bit adventures pecan areas beyond you should probably put this is better than everything else and this is a whole little interactive game to use the command line interactive behind kind of right now the box of around the school guidance accurately those W bursaries color glass and you
just navigate the babies and then eventually you get to the phone I don't know what the game is written go ahead and check out