 Hello, and welcome today. We're looking at the linux shell Um, and I'm working in Z shell, but we're looking at today's aliases And this should work in pretty much any shell you're working in whether it's bash fish Z shell ass shell So we're gonna be looking at aliases And if you don't know aliases basically you can take a command and create a shorter version of that and very commonly You put this into your RC file, which is your the file that runs every time you start a shell So for example if I type LS it lists the files in my directory. I can type in LS dash LHA gives me a full list even of hidden files with more information You know who owns it what group owns it what permissions are on it size date time that sort of thing So with that if I wanted to let's say every time I ran this I wanted it to look like this I can easily do that. I can just say alias LS equals and parentheses I'll say LS dash L8 LHA and now until I run LS in this shell is going to run that if I Open up a new shell down here and take us you see it's still that I didn't put it in my in my RC file So it's not loading every time I start a new shell, but up in this shell where we ran it It's it's safe. So again LS But let's say you did set that and you set that to always start in your shell And now you're working in the shell and you go all else and you go oh wait, you know this this one time I don't want it to list like that. I want to Make it so that I can get the regular output, which is just the list of the files without the The long list so we can do this again LS up here still gives me the full list and What I'm going to do is there's other options. I can do forward slash LS Or sorry backslash LS Which will tell it to run the standard L. It's saying Ignore aliases other options are putting the command inside quotations either single or double do the same thing I can also give the full path So for list it's in your bin folder so for its last bin for its last LS Gives us that output again if I do LS the aliases still set, but with any of those options I can Easily get it to run like the native command would Another option would be the command command which I've gone over before you type command LS Command does other things as well, but that's one way to make sure it's kind of a longer way than the other ways I think I guess the quickest would be the backslash LS Because it's only adds one character. We're putting in quotes whether single or double are gonna Add two characters typing out the full path type it out the full path is a good idea Especially when you're running command from a script just make sure you're running the correct version in the script because you may not be there when the script's running So I would say the best solution as far as accuracy is typing out the full path to the program You want to run but the shortest if you're actually sitting at the shell just the backslash and the command So that is how you can disable it now Let's say for the rest of the session so that's just you know again if I type LS without any of that in the session It is still doing the alias. You can always do un alias LS and now Alice is gonna go back to Whatever the default alias is Now you might notice There's no color coding of this. I actually have aliases set up for my shell Where if I type in LS it actually color coats them for me Color codes color codes color codes But since I unalias it not only on alias the alias I created in there and uncreated under all aliases for LS So it's going back to the plain very default LS command here But again, this is just in this session when I open up a new session LS went back to in this case The alias that I have set in my RC file So if you have aliases set and you need to disable them Temporarily either for one time or for the rest of that session in that shell now, you know how to do that again that last one was unalias, which is going to unalias it for the rest of that session in that shell Where all the other ones were for an instance. I Do thank you for watching. I hope you found this useful Please visit my website filmed by Chris calm. That's Chris the K. There's a link in the description If you enjoy my videos think about becoming a supporter over at patreon.com forward slash malik's 1,000 There's a link in the description there. You can also search my website There's a link at the top of my website for support where you can support me through PayPal or Patreon if you can't support me financially think about sharing liking subscribing commenting all that fun stuff And as always I thank you for watching and I hope that you have a great day