Shawn Powers
Shawn Powers
  • 263
  • 1 191 502
Linux Loops: FOR, WHILE, and UNTIL (Linux+ Objective 3.1.2)
Loops are SO important for a Linux user, because it makes the commandline work FOR you instead of against you.
This video covers WHILE, UNTIL, and FOR loops. The syntax, the methods you can use for looping, and even why you might want to use the various loop constructs. Plus, it's just fun to learn about BASH scripting!
The CompTIA Linux+ objectives are available here: snar.co/plusobjectives
WAYS TO SUPPORT SHAWN
---------------------------------------------
Patreon: patreon.com/shawnp0wers
Merch: store.nerdlings.net
SuperStickers, etc!
WAYS TO SUPPORT EACH OTHER
-------------------------------------------------------
1) Be Kind
2) Answer comments/questions here
3) Ask/Answer questions on our Discord: snar.co/discord
WAYS TO FIND SHAWN OTHER PLACES
----------------------------------------------------------------
Landing Page: shawnp0wers.com
Join this channel to get access to perks:
ua-cam.com/channels/bUTB3bVg3cmeyJUtUC9DPA.htmljoin
#linux #comptia #bashscripting
Переглядів: 1 429

Відео

Buntu Family Theater
Переглядів 4636 місяців тому
Buntu Family Theater
BeOS Journal? (Throwback Video)
Переглядів 3956 місяців тому
BeOS Journal? (Throwback Video)
Variables, Conditionals, and BASH (Linux+ Objective 3.1.1)
Переглядів 1,8 тис.7 місяців тому
Variables, Conditionals, and BASH (Linux Objective 3.1.1)
Burying Network Cable In Your Lawn
Переглядів 4737 місяців тому
Burying Network Cable In Your Lawn
Lonely People Talk to Cameras
Переглядів 2967 місяців тому
Lonely People Talk to Cameras
Permissions, ACLs, and Attributes. (Linux+ Objective 2.5.3)
Переглядів 2,4 тис.9 місяців тому
Permissions, ACLs, and Attributes. (Linux Objective 2.5.3)
AppArmor Sucks Less! (Linux+ Objective 2.5.2)
Переглядів 3,4 тис.9 місяців тому
AppArmor Sucks Less! (Linux Objective 2.5.2)
A Nerdy Getaway!
Переглядів 34410 місяців тому
A Nerdy Getaway!
I Hate SELinux. You Can Too. (Linux+ Objective 2.5.1)
Переглядів 7 тис.10 місяців тому
I Hate SELinux. You Can Too. (Linux Objective 2.5.1)
BECOME ROOT! ish... (Linux+ Objective 2.4.2)
Переглядів 1,3 тис.10 місяців тому
BECOME ROOT! ish... (Linux Objective 2.4.2)
Configure SSH. Sorta... (Linux+ Objective 2.4.1)
Переглядів 1,8 тис.11 місяців тому
Configure SSH. Sorta... (Linux Objective 2.4.1)
Linux Firewalls (Linux+ Objective 2.3)
Переглядів 2 тис.11 місяців тому
Linux Firewalls (Linux Objective 2.3)
Account Tweaking! (Linux+ Objective 2.2.2)
Переглядів 1,6 тис.11 місяців тому
Account Tweaking! (Linux Objective 2.2.2)
Redhat: But About People
Переглядів 2 тис.Рік тому
Redhat: But About People
Account Creation & Management (Linux+ Objective 2.2.1)
Переглядів 1,6 тис.Рік тому
Account Creation & Management (Linux Objective 2.2.1)
Linux Hardening (Linux+ Objective 2.1.3)
Переглядів 2,6 тис.Рік тому
Linux Hardening (Linux Objective 2.1.3)
System Authentication Services (Linux+ Objective 2.1.2)
Переглядів 1,8 тис.Рік тому
System Authentication Services (Linux Objective 2.1.2)
Encryption, Hashing, Digital Signatures?!? (Linux+ Objective 2.1.1)
Переглядів 1,9 тис.Рік тому
Encryption, Hashing, Digital Signatures?!? (Linux Objective 2.1.1)
Be a Time Lord! (Linux+ Objective 1.7.3)
Переглядів 945Рік тому
Be a Time Lord! (Linux Objective 1.7.3)
Fiddle with the Kernel! (Linux+ Objective 1.7.2)
Переглядів 2,3 тис.Рік тому
Fiddle with the Kernel! (Linux Objective 1.7.2)
Linux Services RELOADED! (Linux+ Objective 1.7.1)
Переглядів 1,9 тис.Рік тому
Linux Services RELOADED! (Linux Objective 1.7.1)
Sandboxed Apps? (Linux+ Objective 1.6.2)
Переглядів 1,9 тис.Рік тому
Sandboxed Apps? (Linux Objective 1.6.2)
Linux Package Managers (Linux+ Objective 1.6.1)
Переглядів 2,5 тис.Рік тому
Linux Package Managers (Linux Objective 1.6.1)
Remote Networking! (Linux+ Objective 1.5.4)
Переглядів 2,3 тис.Рік тому
Remote Networking! (Linux Objective 1.5.4)
Weekend Assignment 20 - SOLUTION
Переглядів 198Рік тому
Weekend Assignment 20 - SOLUTION
Network Monitoring Tools! (CompTIA Linux+ Objective 1.5.3)
Переглядів 2,5 тис.Рік тому
Network Monitoring Tools! (CompTIA Linux Objective 1.5.3)
Weekend Assignment SOLUTIONS! (Intro)
Переглядів 211Рік тому
Weekend Assignment SOLUTIONS! (Intro)
Finding MX Records (Weekend Assignment #19 Solution)
Переглядів 294Рік тому
Finding MX Records (Weekend Assignment #19 Solution)
Figuring Out Name Resolution! (Linux+ Objective 1.5.2)
Переглядів 2,6 тис.Рік тому
Figuring Out Name Resolution! (Linux Objective 1.5.2)

КОМЕНТАРІ

  • @richardortiz3702
    @richardortiz3702 17 годин тому

    I have tried everything to get my reverse ssh to work. I give up. Are you available to write a powershell script for me ? Or give me a detailed explanation of how to set this up for me? If so how much would you charge me?

  • @albertohuerta
    @albertohuerta 23 години тому

    You give me bill nye vibes! Great job teaching!

  • @Kelly-uo5up
    @Kelly-uo5up 23 години тому

    I purchased one of the massager guns you referred to and the battery did not last long so I purchased another better quality one. I charged the newest one before using it and then plugged the old one in to charge. About 15 minutes later the old one exploded and caught fire as the battery blew up not once but twice. The charger for the new one was 24v and the old one was 12v. It was the same type of device, looked very similar and had the same barrel connector. I now suggest throwing away all you old transformers and only using the one that came with the original device !

  • @vevenaneathna
    @vevenaneathna 2 дні тому

    bought a 12v dc fridge for my drinks. currently running it with a GaN usb-c powersupply. saves money. usb-c and GaN hopefully going to replace a lot of these old wallwarts

  • @jeanius123
    @jeanius123 3 дні тому

    Thanks. I was wondering about supply that matched all the things but voltage. It was 9 volt and device was 6 volt. Your video helped me. Thank you! 😀

  • @koiNGO-dw2sg
    @koiNGO-dw2sg 3 дні тому

    hm I did the secretdrive UUID="####" - in /etc/fstab and now my VMbox is not able to boot up my kali linux system anymore.

  • @vladislavkaras491
    @vladislavkaras491 4 дні тому

    Wow! The dynamic port forwarding is already cool, but this sshuttle seems even better! I wonder though, this program is needed to be installed locally only? Nothing needs to be setup remotely on ssh servers? Thanks for the video!

  • @larrycalvery2857
    @larrycalvery2857 4 дні тому

    Did not know how to sign in on interacting window, seemed to be working fine up to that. Help

  • @cdrbvgewvplxsghjuytunurqwfgxvc
    @cdrbvgewvplxsghjuytunurqwfgxvc 5 днів тому

    I did grsecurity rbac like 20 years ago, and this apparmour is way easier and actually looks useable

  • @cdrbvgewvplxsghjuytunurqwfgxvc
    @cdrbvgewvplxsghjuytunurqwfgxvc 5 днів тому

    That was an awesome overview

  • @luketechco
    @luketechco 5 днів тому

    the intense eye contact and the demanding that I am kind is distracting me and reminding me that I need therapy.

  • @ronenhackim7114
    @ronenhackim7114 6 днів тому

    appreciated

  • @MichaelGauthreaux
    @MichaelGauthreaux 7 днів тому

    Thanks for creating this video series Shawn! As a Network Engineer looking to upskill and maybe make some career changes I am loving your videos. I do have one question, what is your deciding choice for using rocky for the class over fedora or centos, or even rhel developer option?

  • @luketechco
    @luketechco 7 днів тому

    You pet that dog right now.

  • @lorenapowers1198
    @lorenapowers1198 7 днів тому

    Great video! I leaned a ton! Thank you, God Bless you!

  • @yanib47
    @yanib47 7 днів тому

    @14.16 Imagine your friend has a car that only they can drive because they own it (analogous to file ownership and permissions). However, your friend decides to set a special feature on their car (SUID) that allows you (and only you) to drive it as if you were the owner when you need to.

  • @souzacbedu
    @souzacbedu 7 днів тому

    I'd like to thank you so much for your time and passion to teach. I used your playlist along other resources and I passed today - 750/800. I'd love to see you cover the next essentials certifications like security, web development and the new open source in the future.

  • @ejdrexmann
    @ejdrexmann 8 днів тому

    Thank you for doing this!

  • @jlrockafella
    @jlrockafella 8 днів тому

    Voltage and amperage is key

  • @yanib47
    @yanib47 8 днів тому

    @10:45 we can use user : group instead of a . that will also works

  • @Recumbent_IT
    @Recumbent_IT 9 днів тому

    I can't even enable SElinux :D Installed a fresh copy of Rocky Linux which came with policycoreutils preinstalled but sestatus showed disabled. There was no config file in /etc/selinux/, but I created one a filled with SELINUX=enforcing/permissive, restarted the system after every change, but still disabled. Uninstalled policycoreutils, restarted the os, installed it again (still no config) file, restarted but still disabled. Installed it on Ubuntu where it created the config file, change the SELINUX value to permissive/enforcing, restarted but it's still disabled.

    • @Recumbent_IT
      @Recumbent_IT 9 днів тому

      Installed CentOS and it also doesn't have the config file and SElinux is disabled by default.

    • @Recumbent_IT
      @Recumbent_IT 9 днів тому

      Found the issue. I was using containers and WSL and apparently SElinux won't work on those. I've just spinned up a linux VM and it's enabled by default.

  • @voyagerlivetwitch
    @voyagerlivetwitch 9 днів тому

    day one of watching all of your Linux Videos <3

  • @cruftYT
    @cruftYT 10 днів тому

    talking about feet right of the bat caught me so offgaurd

  • @Grey_Brew
    @Grey_Brew 11 днів тому

    Love the livestreams! Will be sure to tune in next Sunday. Had the US Open (golf) this past weekend!

  • @samplesandtests
    @samplesandtests 11 днів тому

    I tried to make to the live-stream, but i had a busy morning and ended up loosing track of the time. i enjoy the livestreams. and i don't think i will be able to make it next week. and i have noticed since you changed up the food that the squirrels are not going after them.

    • @shawnp0wers
      @shawnp0wers 11 днів тому

      Yeah, I switched to safflower seeds, because squirrels don’t usually like them. But I ran out, so put regular bird seed in. The squirrels didn’t figure it out before I was able to get more safflower seeds. :)

  • @chrisbarbz9238
    @chrisbarbz9238 12 днів тому

    I keep at least 1 type of each cable that I have at the house then throw away duplicate ones.

  • @kimaegaii
    @kimaegaii 12 днів тому

    You're so right about "almost getting it" feeling. The only part I felt kinda confused was, since on ssh -R (remote one) you are going through 3 machines. The 127.0.0.1 in the second part confuses me on which machine that is for. I'll watch a few more times. Thanks for your videos!

  • @kimaegaii
    @kimaegaii 12 днів тому

    You asked at the end what I"m drinking. I'm drinking a Gibraltar Latte. Great videos!

  • @appleholic1553
    @appleholic1553 12 днів тому

    Thank you for your video. I'm trying to light up a led poll light and I never know which adapter goes with what device. Can I fry the light by putting the wrong one on. 🤷🏼‍♂️✌🏼️

  • @TramitesNanos
    @TramitesNanos 13 днів тому

    So I'm going to get straight to it this is pretty much one of the best explanations of what a SSH remote server connection is. Ask somebody that is just starting in this journey which is cybersecurity, I can tell you that I have been looking on documentation to understand how this works but was not able to understand it until today thanks to this guy

  • @maximusm0104
    @maximusm0104 13 днів тому

    Like a good neighbor stay over there. Love it XD

  • @Alex_Wakefield
    @Alex_Wakefield 13 днів тому

    I am Bob, I testify that there is no password.

  • @RoystonLongdyke
    @RoystonLongdyke 14 днів тому

    Hi Shawn, this week i past my Linux+ certification. I just wanna say thanks a lot for you're video's. It helpt me tremendously. The quality of you're video's are great. Thanks a lot and on to the next!

  • @ntfsntfs5282
    @ntfsntfs5282 14 днів тому

    So much talking, so few valuable info

  • @teflon007us
    @teflon007us 14 днів тому

    When I teach this concept, I share this tid-bit of logic.... Traffic flow is: FROM > TO <-> THROUGH You want traffic FROM somewhere to Forward TO somewhere THROUGH the host you log into Syntax: ssh -L/-R Local:Port:Remote:Port User@IP

  • @koiNGO-dw2sg
    @koiNGO-dw2sg 16 днів тому

    I am a bit blocked here, how do you have so many block devices on one drives? Like I tried using a USB, but that's only 1 additional block device.

  • @Yeah_THAT_Greenville
    @Yeah_THAT_Greenville 16 днів тому

    I'm learning so much from your videos, love the energy!

  • @justaskin8523
    @justaskin8523 18 днів тому

    Thanks for the video, Shawn! It's been a year now since this video was made, and I wanted to share something I've observed. Fewer and fewer devices are being packaged with AC power supplies, even if the device has a USB-C "PD" port for additional power. Manufacturers are now just making these devices with USB ports, expecting you to use an existing adapter and a USB cable. Even old Apple adapters still work fine, even if you have to source a USB-A > USB-C charging cable.

  • @szmonszmon
    @szmonszmon 19 днів тому

    "I Hate SELinux because it does what it was made to do" - corrected xD

  • @marcempunkt9737
    @marcempunkt9737 19 днів тому

    Another Tip! Instead of "> file.sql" use "-r file.sql" that way you don't potentially lose characters due to conversion from utf8.

  • @user-nu4xg2sh3i
    @user-nu4xg2sh3i 20 днів тому

    question: Regarding the recursive flag for the "rm" command, why is it lowercase 'r' but for the "ls" command it's a capital 'R'? Will those two commands work either way if you switch the casing on the R's?

  • @rxvexe
    @rxvexe 21 день тому

    The info on netcat actually came in use when i couldnt get scp to work with certs. This is a great work around if you at least have ssh working. Thanks

  • @303otto
    @303otto 22 дні тому

    The first Brick is perfect for analog modular Synthesizers. 27V Power Supplys are mainly used by old Laptops. And if your polarity of your Barrel Jack Wallwart is wrong you can snap off the connector, reverse its polarity and solder it on again. Use shrinking tubes to seal the solderjoints and make them look professional

  • @nikkomarquez4451
    @nikkomarquez4451 22 дні тому

    help i dont know how to use a web browser!

  • @cruftYT
    @cruftYT 23 дні тому

    4:51 I got jump-scared!

  • @VHangout
    @VHangout 24 дні тому

    Watching this thinking, after this latest news of Windows taking constant snapshots of your screen, maaaaaybe this could be the year 😂

  • @PhilGawron74
    @PhilGawron74 24 дні тому

    Great video Shawn! I have dabbled with Linux for years, just so many cool things one can do, reading documentation and taking ownership of things. Permissions have always been a challenge but your explanation of sticky but has really helped me. I’ll be sure to check out more of your stuff. Thank you for sharing this info. I ran across it in my udemy course and this help explain things differently.

  • @ITHAQVA
    @ITHAQVA 25 днів тому

    Nice videos mate thanks 👍👍😊😊

  • @DinChaddle
    @DinChaddle 25 днів тому

    Passed my Linux+ on Friday. Kudos to you, my friend.

  • @HiramGonzalez-wm7ov
    @HiramGonzalez-wm7ov 25 днів тому

    Awesome video dude 🤙🏼