BASH Environment | Aliases, Functions and Scripts

2024 ж. 14 Мам.
87 848 Рет қаралды

We look at your BASH Environment and show you how to work with .bashrc and create scripts.
Check out www.ezeelinux.com for more about Linux.

Пікірлер
  • yo! please make more bash tutorials or other tutorials. You're a great teacher and don't go too fast like others. I just learned python but you are responsible for teaching me bash and I greatly appreciate it. Thank you, Joe.

    @tpatutorials3@tpatutorials3 Жыл бұрын
  • Thanks, Joe. I learned a lot! Been in the field for decades, but just recently been enjoying the joys of bash and shells, in general. I look forward to watching your other videos!

    @MarkFreedmanNY@MarkFreedmanNY4 жыл бұрын
  • YES!!! I can never get enough terminal vids! Thank you.

    @user-yf8il6we2z@user-yf8il6we2z5 жыл бұрын
  • Great video Joe, just hope this old man can remember it all!

    @RandyBlankenshipvapingcisco@RandyBlankenshipvapingcisco5 жыл бұрын
  • I'd given it a thumps up after 30 seconds. you've earned my trust on terminal videos

    @fernabianer1898@fernabianer18985 жыл бұрын
  • May You Be My Mentor. Strong word with Strength in its meaning. To be given the kindness to listen and learn, is what child learning is all about. Thankyou My Friend Kindly.

    @mikediaz9033@mikediaz9033 Жыл бұрын
  • Brilliant - a most helpful presentation even for someone like me who is very new to the Linux environment. I already have a use for one of the ideas that you explained.

    @davidarf@davidarf5 жыл бұрын
  • You're Videos are Awesome! man, you explain things so well and answer questions before I get a chance to ask them myself..Keep up the good work, and please keep making videos.

    @spiewak70@spiewak703 жыл бұрын
  • That was real helpful and gave me some ideas about scripts, thanks Joe

    @SusanAmberBruce@SusanAmberBruce5 жыл бұрын
  • Thank's Joe I am brand new to Linux, I was just about ready to quit, when I watched one of your videos. Now I am excited to learn. It is nice to know that Linux is not as complicated as it seemed to be at first. Thank's again.

    @fredlewis1945@fredlewis1945 Жыл бұрын
  • You have a great sense of humor Joe haha. Thanks for the awesome resource on all this stuff. I'm very new to this kind of thing and this is a great starting point for people who aren't super experienced like me.

    @joeystenbeck6697@joeystenbeck66972 жыл бұрын
  • Excellent Joe. Many thanks once again for a good instructional video. Learned a lot.

    @NewsboyUK@NewsboyUK5 жыл бұрын
  • Thank you for the video! I do not know if someone already mentioned in in the comments yet. But I would like to mention that to get out of the list of text and go back to the screen before you have to press : and q together. Someone who is really new to terminal might struggle with it!

    @shreyadas5065@shreyadas506510 ай бұрын
  • learning bash/linux really helpful - great to know im not the only one who cant type!

    @SimonTelescopium@SimonTelescopium3 жыл бұрын
  • Hey Joe, This is so cool. Thank you.

    @EarnestRedwoodLINUXMASTER@EarnestRedwoodLINUXMASTER5 жыл бұрын
  • Awesome videos! Thanks alot

    @sirbenson6863@sirbenson68638 ай бұрын
  • Hopefully the creator of this video is in good health. You helped me a lot Sir! Thank You

    @ericechemane3335@ericechemane33352 жыл бұрын
  • LOL, actualy im laughing when you just did a typo. Loved learning from your videos. Thanks Joe.

    @kawanuacardanopool4103@kawanuacardanopool41032 жыл бұрын
  • I know this is an old video, but Joe I gotta tell you man -- I have learned more from your Linux/bash videos than I learned at 5 years in college. I have a degree in Computer Science and almost never had to touch a terminal. Now that I'm in the cyber security world, Linux is an expected skillset. I knew enough to at least be competent to get the job but not enough to be effective. Your videos really have helped me, thank you for taking the time to make these videos. You have no idea how helpful they are.

    @rwpage89@rwpage893 жыл бұрын
    • Thanks for the kind words. :)

      @EzeeLinux@EzeeLinux3 жыл бұрын
  • Im still in the Gerber stage of shell scripting, but am pretty sure I'll be on solid food b4 too long if I keep watching your videos. Thanx for the great info.

    @currythompson4747@currythompson4747 Жыл бұрын
  • Hi Joe, i am watching your great vid for bash beginners right now! I use double quotes with aliases... because when somebody throws a variable inside, it won't work your way... Go ahead! And Best regards from Wuerzburg! PS: Also point out the ABS Guide for further reading... that solves a lot of problems and is a great source.

    @Daniel-cc5ph@Daniel-cc5ph5 жыл бұрын
  • Thanks for the video! I always learn a bunch from you. Yes I took notes! I have CRS (Can't Remember S***) I want to echo other posts, yes more bash please!

    @BrucesWorldofStuff@BrucesWorldofStuff5 жыл бұрын
  • great video joe iam actually working on my own script now thanks :)

    @cthedosboss5113@cthedosboss51135 жыл бұрын
  • thanks man, i really loved the video. thanks again

    @theotherguy6282@theotherguy6282 Жыл бұрын
  • You are a legend, man!

    @goletest@goletest5 жыл бұрын
  • Awesome video! Thank you!

    @tomvito@tomvito4 жыл бұрын
  • Very useful, thanks!

    @cosmictachyon3337@cosmictachyon33375 жыл бұрын
  • you can edit your own /etc/hosts file (with superuser privileges). True, it won't be reflected on every machine, and you really need to tie internal IP addresses to specific machines, but you can get around typing in IP addresses or even parts thereof. You can also run your own DNS server.

    @treyquattro@treyquattro3 жыл бұрын
  • THAT... was a friggin good one. Liked an odd number of times.

    @InsideOfMyOwnMind@InsideOfMyOwnMind5 жыл бұрын
  • Good video - useful tips in friendly way _ Thx

    @kssaz3578@kssaz35783 жыл бұрын
  • Excellent Video

    @bog9867@bog98672 жыл бұрын
  • Great tutorials

    @AlguienMas555@AlguienMas555 Жыл бұрын
  • Useful stuff. Thanks!

    @capiberra4118@capiberra41184 жыл бұрын
  • And all I can say is .. more !!!!! Thanks :)

    @nir8924@nir89245 жыл бұрын
  • I was cracking up with anticipation for the big syetm-status letdown lol

    @bigusdickus123@bigusdickus1235 жыл бұрын
    • haha... i spotted it also, thought he spelt systm as system was being used!! had a giggle!

      @IR240474@IR240474 Жыл бұрын
    • He definitely had some before this.

      @DominicVictoria@DominicVictoria Жыл бұрын
  • It's not often that a command line instructional video ticks all the boxes. I've watched two of yours about Bash and I wasn't bored for a minute, despite the fact I knew the subjectmatter beforehand. Too often you get some lady's $2 microphone, echoing, crackling monotone or heavily accented Indian guy's acrobatics I can barely comprehend. Basically, good job! Also, the "Vi comment" made me cackle.

    @andarvidavohits4962@andarvidavohits49623 жыл бұрын
  • I was like nr 1000 lol xp good stuff btw! I'm new to linux but trying to always use terminal and learning bash (mainly to make "shortcuts" atm)

    @bored_god_slayer@bored_god_slayer3 жыл бұрын
  • Very good video

    @robertcrawford4009@robertcrawford40095 жыл бұрын
  • Did he say, "I don't like vi. Ugh." FIGHT! 😄 I still like you, Joe. Seriously, great video! 31:54 By the way, tab-competition works on functions. It was showing up in the completion list. If you typed an s and then tab, it would have worked.

    @SlideRSB@SlideRSB5 жыл бұрын
    • VIM! VIM! VIM! VIM!....

      @rilian226@rilian2265 жыл бұрын
    • the fact that the function was showing up in the completion list and him telling it doesn’t made me really uncomfortable. if you know what i mean. 😂😂😂

      @lsagar@lsagar4 жыл бұрын
  • 31:50 you go on about how the function 'system-status' is not covered by auto fill. but it is right there in the suggestion list (third from the left). it was not being completed because there are other commands that start with 'system-' and you had to choose which one. if you had typed 'system-s' it would have worked.

    @theotherguy6282@theotherguy6282 Жыл бұрын
  • Thanks!!!!

    @NortheastRacing@NortheastRacing5 жыл бұрын
  • I was seriously surprised that you said you don't like Vim. I thought you were just using Nano for the video for beginners because all your options are on screen at one time. I'm not going to argue for Vim, however. I've got through my phase of Vim hate, but I'm starting to come around.

    @ex0stasis72@ex0stasis725 жыл бұрын
  • Thank you.

    @jurgenblick5491@jurgenblick54915 жыл бұрын
  • thank you

    @nayl-gaar-singh@nayl-gaar-singh Жыл бұрын
  • It seems like the auto-fill actually works. see at 32:00 it showed all possible commands...

    @vkltube@vkltube5 жыл бұрын
    • Yep, you're right! I didn't notice at the time. Cool to know. :)

      @EzeeLinux@EzeeLinux5 жыл бұрын
    • You need to tab twice if what you type matches more than one command.

      @v1ncen715@v1ncen7155 жыл бұрын
  • Nah! Stuff Vi ... it's EMacs all over for me ... fight! BTW, since you already use Midnight Commander, you already have its text editor installed as well - called mcedit. For simplistic use I actually find that easier to use than nano.

    @benriful@benriful5 жыл бұрын
  • You could use machine names by putting them in your etc/hosts file as name/ip pairs

    @codezero6023@codezero60235 жыл бұрын
    • Technically, yes... It's a pain, though. Using the address works fine and requires less configuration. :)

      @EzeeLinux@EzeeLinux5 жыл бұрын
  • Off the topic Issue- Can you make a tutorial on installing Google API on a chromium browser. I managed to install the patch for Hardware Acceleration on chromium browser but, I dont know how exactly how to install the api and client into the chromium. Because of this I am forced to use chrome.

    @JishnuWarrierA@JishnuWarrierA5 жыл бұрын
  • Looks like it does auto-fill, judging from the output at 32:00. Pretty nifty.

    @cheerjoy@cheerjoy5 жыл бұрын
    • Yep. Someone else pointed that out too. Cool to know. :)

      @EzeeLinux@EzeeLinux5 жыл бұрын
  • Are you better than the whole world? Rhetorical. You are Kind with Compassion, you are. You come somewhat cynical. I must say you info taught to an audience, with their eyes peeled. Be absolutely clear, that is my method of communication. Ex- USA Fighter Aircraft Specialist. Afterwards, school for Hardware & Software. Experience at R&D Corp., proud to I solved complex issues on units. Please forgive, if I may. Be clear & humble intrinsically

    @mikediaz9033@mikediaz9033 Жыл бұрын
  • after "set | less", you got out and went back to the terminal prompt, but what key did you hit to get out?

    @sfchinesechorus@sfchinesechorus3 жыл бұрын
    • Quit less with Q.

      @EzeeLinux@EzeeLinux3 жыл бұрын
  • What file actually assigns the environment variables their name? I checked both the local and /etc bashrc and profile files and it wasn't there. It's gotta come from someplace.

    @abrundag@abrundag5 жыл бұрын
    • Some of it is built into bash itself. The configuration file contain things the user can change. :)

      @EzeeLinux@EzeeLinux5 жыл бұрын
  • Instead of putting nano options in an alias, would it not be better to put them in the .nanorc file?

    @chrisbannister1684@chrisbannister16845 жыл бұрын
    • There's always more than one way to do things in Linux. Whatever works best for you. Besides, I just used nano as an example. :)

      @EzeeLinux@EzeeLinux5 жыл бұрын
  • :) I hate anything but vim. So as soon as I install a new Ubuntu/Debian system, I install vim and remove nano and everything else. And I work with a bunch of UNIX/Linux old timers, who totally think the same as I do about it. :)

    @hermanstrom3948@hermanstrom39485 жыл бұрын
  • yo boi!

    @gst69man@gst69man5 жыл бұрын
  • chmod: Read=4, Write 2, Execuite 1 Read+Write+Execute= 4+2+1 =7 (RWX)

    @gohan3243@gohan32435 жыл бұрын
  • man if this had a timestamp

    @canto64@canto643 жыл бұрын
  • As a hopeless Linux noob, I say: Carry On BASHing! Errmmm, I shall leave now.

    @abzhuofficial@abzhuofficial5 жыл бұрын
  • Watch at 1.25x speed. Thank me later. ;)

    @hackersguild8445@hackersguild84454 жыл бұрын
  • vim is like a roach motel. you can check in but you can't check out

    @abrundag@abrundag5 жыл бұрын
    • 🤣🤣🤣

      @stefosters@stefosters2 жыл бұрын
  • Glad you fail a lot. :-P It's great for learning troubleshooting.

    @pedrobluis@pedrobluis5 жыл бұрын
  • 10 dislike microsoft workers

    @yapayzeka@yapayzeka4 жыл бұрын
  • No Assumptions or Secrets. For Me to much deciphering

    @mikediaz9033@mikediaz9033 Жыл бұрын
  • If we can skin a cat, can we skin a less or even a more? what abour a zcat? :V

    @bendover4728@bendover47285 жыл бұрын
  • great video. but i gotta tell you, you’re not a real geek if you don’t like vim 😂😂

    @lsagar@lsagar4 жыл бұрын
  • XD "you wrote wrong again"

    @isaacgonzalez2128@isaacgonzalez2128 Жыл бұрын
  • Where I come from, we eat cats with the fur still on...

    @aegisgfx@aegisgfx5 жыл бұрын
  • Forgive Me I I have offended thee.

    @mikediaz9033@mikediaz9033 Жыл бұрын
  • Some of the richest guys I know, And many computer programmers, Can't spell. But I can! Really well! These type-os are driving me nuts! ("Alais"?!?!?!) But Being rich and Computer Coding apparently... HAVE NOTHING TO DO with good spelling. The secret is not about mental aptitude or acuity. I think it's about a tight focus on money (or coding) for their own sake. ("SUSTEM"?!?!??!)

    @jackfrasiercomedy5942@jackfrasiercomedy59425 жыл бұрын
    • Hey Troll, use your brain once in a while! Of course joe can spell! But he's not just spelling.. He has to think about the commands he uses and their implications! those changes effect other things. Its simple in this video but in coding and scripting when you set an alias for e.g. a library everything inside your code that belongs to that library changes.. therefore if you re-use code you have to change all of it too. else your program wont work!.. I could go on but you'll see the point from here.. consequently you adapt part of a new mind set, thinking about details that change with your changes and what they might effect all the time.. and you will NOT turn that off because the task at hand is simpler! again: he's not just typing! he is recording a video; all the things related to the video are in his mind as well. the script he has to follow. Its needed so the information and examples are in order and make sense to every level of viewer. and like this wouldnt be enough; he's also talking and explaining things. usually when you code/skript/anything its quiet or you have a little music in the background but that's it! if you're so good with your skills, the way bash works and multitasking make a better video!.. but don't fool yourself! it takes a LOT more than bash to become rich!

      @fernabianer1898@fernabianer18985 жыл бұрын
    • Take it easy, just a little jibe! It's actually more of a compliment to notice people spelling badly can code or become wealthy. A neat little inference, that's all. I also think it's funny that with all the syntax specificity you need to code, the same isn't applied to English. Even by rich people and coders! Code is very specific about syntax, so one might infer that the same attention to syntactic detail would make them good spellers as well. Besides, let's not feel too bad about the occasional internet comment video jibe. The guy can code. That means he's not doing too bad for himself.

      @jackfrasiercomedy5942@jackfrasiercomedy59425 жыл бұрын
    • I think Joe mentioned he has dyslexia. People hold knowledge but just struggle expressing it. Joe's videos are amazing in depth of knowledge! Try and be sympathetic and grateful instead of trolling @jack fraiser comedy. Some of the jibes could be hurtful!

      @stefosters@stefosters2 жыл бұрын
  • You talk a lot. Your Ego Is tripping, because you are not defining concepts, your just tripping on your Ego, & saying nothing. You 're just a get over, Ego Tripping What? You define Nothing, you just continue to express your own knowledge. Social Media says what?

    @mikediaz9033@mikediaz9033 Жыл бұрын
    • Teaching requires talking. Sorry if you think it's juts an ego trip. You missed the point entirely.

      @EzeeLinux@EzeeLinux Жыл бұрын
  • '.you_got_mail.wav' Ah, a man of culture, I see.

    @ChozoSR388@ChozoSR388 Жыл бұрын
KZhead