When an alias overrides an existing command you can bypass the alias by escaping the command. I too have alias df='df -h' If I want to run the alias I enter "df" If I want the command I enter "\df"
@WXLM-MorganNicole6198 жыл бұрын
a good alias is the following alias rm='rm -i' this little nugget will force the rm command (remove) to inquire "Are you Sure...?" this has been a lifesaver for a friend of mine
@cosmictachyon33378 жыл бұрын
Your BASH tutorial videos are so useful! Thank you! Please do more! :)
@carlbarron11866 жыл бұрын
As a new user Linux and Ubuntu I’d like to express my sincere thanks for the many tutorials you have made clearly detailing the use and power of the Terminal etc. Do hope your cold gets better soon, try a mild warm saline solution as a nasal wash it's an old remedy works wonders for most folks.
@rangersmyth3 жыл бұрын
How are you getting alone now Carl? I have been learning about Kali the past week now. Loving it!!
@bobbyfried74784 жыл бұрын
love working in the terminal i ran arch for 4 years and loved learning the terminal. thanx for your vids very cool.
@sankargopal1234 жыл бұрын
As a new user of Linux, Ubuntu and Shell programming , wanted to express my sincere thanks for this and all your other videos :) !!
@BeesCantSwim7 жыл бұрын
Thank you again Joe! I just added your "update" script to my .bashrc file. Works perfect! (but you knew that already lol). I have played in the Linux world before but didn't stay there, I am back and still have ALOT to learn. I am concentrating on learning bash. For the record, I LOVE Linux Mint. I used Cinnamon and MATE before, (mostly MATE) but am now running the KDE desktop on Mint 18.2. KDE is great! P.S. You are my number one channel for learning Linux. The way you explain things makes it easy for me to follow.
@ericreed05647 жыл бұрын
That alias trick is just the best.
@clearlake21128 жыл бұрын
Awesome video Joe. You are my go to Channel for Linux information.
@djsensacion78 жыл бұрын
Embrace the Terminal. Love The Terminal. It provides UNLIMITED POWER !!!!!
@evanelten8 жыл бұрын
Great stuff Joe, as usual. Seems to me this could become a series....
@Nerzhina6 жыл бұрын
Hi Joe thank you for making all your Linux how-to video tutorials. I've learned a great deal of useful Linux skills from your KZbin channel. Many thanks.
@jodyamyjames70858 жыл бұрын
Joe, you do an amazing job! You have a great way of explaining things so that they are easily understood! Thanks for all you do, sir!
@johncherry1088 жыл бұрын
I share your enthusiasm for messing around with bash. For some tasks, it gives much more control over the OS than a GUI.
@pyotrleflegin72557 жыл бұрын
Another great video! Thank you, Joe, this is just the thing I've been looking for.
@hectorcasiano74696 жыл бұрын
Joe rocks the terminal!!!!!!
@Sparkslinger4 жыл бұрын
Thanks for posting this Joe. You just saved me so much time!
@limitLessLane20108 жыл бұрын
I watch your video end to end. very informative and useful knowledge you share. keep up the good work..
@mikediaz90332 жыл бұрын
Sir, I am, just learning and grateful the understanding of life 🙏
@bertlemoi4315 жыл бұрын
i'm new to linux and i'm attracted to the bash terminals potency :)
@RazrBurn8 жыл бұрын
You can still run the original command by referencing it's location. In the example of 'df' you can type '/bin/df' and that will run the un-aliased version. you can get the location of the program by typing 'whereis df'.
@EzeeLinux8 жыл бұрын
Yep. Still a pain, though... :)
@RazrBurn8 жыл бұрын
agreed, but as you said for the few edge cases where you have to do it, it's only a few more characters. I should say your videos are well done and I'm glad to see someone taking the time to explain this stuff to people that don't know. I don't want to sound like I'm nitpicking. I just wanted to share some knowledge.
@EzeeLinux8 жыл бұрын
Share away! That's what this is all about! :)
@RazrBurn8 жыл бұрын
I was unaware of that one, thanks Luc!
@username655858 жыл бұрын
If you have an alias set as 'df -h' you can still run df -k to get it in KiloBytes. The second option is to type the full path to the command like '/usr/bin/df'. The third option is to run 'unalias df' which will remove the alias for that session.
@Palaciosyt4 жыл бұрын
I love all your videos, u helped me since I started my linux journey :D
@NMY556L8 жыл бұрын
Fantastic video - the syncit script is the thing i was most interested in as that was what I was thinking bout when I asked for a link to the video where you set up Cindy's laptop. This is why Linux is so awesome, because you can do all-sorts so customisations (if you want to) or not.
@EzeeLinux8 жыл бұрын
Cool. I'm glad we figured that out. :)
@NMY556L8 жыл бұрын
Joe Collins where on your systems do you store the sync it script - somewhere on your path statement but where exactly?
@EzeeLinux8 жыл бұрын
You can put scripts and code you compile yourself into /usr/local/bin and it will become a system-wide command. You can also create a /bin directory in your home folder and put your scripts in there. Ubuntu systems will automatically add the /bin directory in your home folder to your path statement. Whichever works best for you. :)
@NMY556L8 жыл бұрын
Joe Collins great thanks.
@JerryEricsson6 жыл бұрын
Man I started my computer life using DOS, using BASH is like a trip back in time on steroids!
@finndriver10638 жыл бұрын
I have heard that Zsh is a good alternative to bash. Meant to be even more powerful. Haven't used it myself though.
@MitaKgEg8 жыл бұрын
Try zsh with oh-my-zsh. Much better autocomplete, and a lot of themes :)
@spartacuspro888 жыл бұрын
I have been using zsh for a while, and I can't stand bash anymore
@MartinOscarPapa7 жыл бұрын
Zsh and ohmyzsh
@ScreenPrintR3 жыл бұрын
So, firstly great job as usual. secondly, new linux doesn't require an equal sign. So the alias date and time should be written as: alias time-date 'date && cal' That's all folks.
@markonfilms3 жыл бұрын
Very very helpful video. Thank you!
@littlek30003 жыл бұрын
maybe its just me, but Im using manjaro and I've had to open the terminal probably every hour, so as user friendly as it is, the terminal is still a huge part of the OS
@echon67576 жыл бұрын
I put all my aliases in a .bash_aliases file. It makes for a much cleaner and easier to read file.
@AndrewDeFaria3 жыл бұрын
I always wonder why people are afraid of a terminal. Are they similarly afraid of the edit box in their email client?ff
@notpublic71498 жыл бұрын
thank you very much, this is very useful and I am just getting started on more advanced bash. Great timing. Cheers.
@bp-ic3eb3 жыл бұрын
Great video ! -- I'm always in search of some beautiful styles themes. So may I ask you where have you got this theme of xed, please ? These orange fonts of commands on a dark blue background, nice... I only know, in the editor you have to go to settings, then themes, and then via the +-sign import the new theme... But whiche style name is it. Thank you very much.
@amramkahn42003 жыл бұрын
Is the terminal on Mac the same as that on Linux? I am using a mac and was wondering whether I can use the linux based video tutorials regarding terminal interface. Thank you.
@PauloConstantino1673 жыл бұрын
Your videos are so high quality. Amazing content. You should make a Patreon account so others could donate to you I think.
@MrPlaythroughhd8 жыл бұрын
Did you ever try Gentoo or CRUX?
@greatsea6 жыл бұрын
Gentoo is a hobby
@peareh1237 жыл бұрын
Thanks for the Great Video Joe !!! Bash rocks !!
@MyurrDurr8 жыл бұрын
I feel like this will be that type of video I must take a lot of screenshots in so I can remember how to do this!
@hhampton7 жыл бұрын
It would have been helpful for you to have indicated how to exit the LESS output back to the regular terminal.
@Jaybearno6 жыл бұрын
Thanks for the video, useful and entertaining!
@thiruvenkatakrishnan42423 жыл бұрын
Great video 👍👍
@jeffreytaffuri22538 жыл бұрын
Joe another super excellent video. My Linux life is a blessing bestowed by you. I was so afraid of alias and you made it so simple. Ironically DF and LS led to my first scripts. After your sshfs talk more scripts. Now after seeing this I need to rework it all. I just have a couple of questions. Why not work wakeonlan into your scripts just in case one of the others are suspended? Does your update script automatically perform kernel updates? God bless you Joe you're a good man.
@gonefishing9767 жыл бұрын
Thank you Joe Collins. :-)
@Zatocrew4 жыл бұрын
Hi, noob here. Following on Joe's tutorials, I tried to write a script with nano using the alias command. Alias works fine if I execute it right away from the terminal but doesn't work when executed from a script. Does it just work like this or am I missing something?
@5ko997 жыл бұрын
Great tutorial video! Thanks
@rwprime18 жыл бұрын
At 25:25, where you had cp .bashrc .bashrc.bak if someone did mess up and wanted to revert to the backed up file, would he mv .bashrc.bak .bashrc or cp .bashrc.bak .bashrc Is there a difference?
@runeheadah8 жыл бұрын
Moving is basically renaming, so if you mv .bashrc.bak .bashrc , then .bashrc.bak will no longer exist. cp is copy, keeps the original where it is.
@radolkin8 жыл бұрын
And if you want to be really nerdy, you'll use 'cp .bashrc{,.bak}' and 'cp .bashrc{.bak,}' respectively. Can save you a lot of typing, when the paths and/or filenames are longer.
@ts85385 жыл бұрын
Thank you! Very helpful.
@joebeishir80594 жыл бұрын
i must have something broke after i put in my psswd for a command I get error unauthorized or some other kind of error oh and i want to tell you that you sold me on Linux just wish that could get it to work right ??
@D0nkeyXot5 жыл бұрын
and what's right answer to "if Google does own Apple" in your case?
@coda7146 жыл бұрын
Thank you for tutoring.
@DayBeforeU8 жыл бұрын
You should know that any changes made in /etc/skel directory are going to be copied to every new user account you create in the system. Don't put your private aliases/functions in the skel directory.
@EzeeLinux8 жыл бұрын
I didn't advocate editing here... I said you could copy a template from /etc/skel. :)
@Khyree_Holmes8 жыл бұрын
=( Watching this in Windows 10, this is a Linux channel =( =) Still have my Ubuntu 16.04.1 install on my old HP netbook =}
@rochr47 жыл бұрын
make video about truncating very long folder names with PS1, I want to it truncated to max 8 chars with color indicatin symbol that it has been truncated, ty!
@joseph41858 жыл бұрын
Great video, I'm using the sshin alias now. I have a question though, I can ssh like crazy as long as I'm under the router, but I want to ssh to my home computer from the outside? I've tried and tried to do this and I just can't. I've tried to ssh to default gateway, but how can I make the router know to go to 192.168.1.2 ? Sure would appreciate some advice? Thanks!
@joseph41858 жыл бұрын
I'm also using linux mint 18
@EzeeLinux8 жыл бұрын
That can be tricky. Here's a nice overview of what's going on and how you might be able to do it: juliansimioni.com/blog/howto-access-a-linux-machine-behind-a-home-router-with-ssh-tunnels/
@joseph41858 жыл бұрын
Thank you, this looks promising. Also many thanks for taking the time to reply && making all these great videos!
@LinuxLuddite6 жыл бұрын
Some good stuff here.
@DAVIDGREGORYKERR8 жыл бұрын
BASH is relevant if running MS Windows 10 with the WSL installed then you can install the whole of UBUNTU Unity Desktop inside of BASH but the windows version of the X.ORG Xwindows Server needs to be replaced with the UBUNTU version of X.ORG Xwindows Server, Joe you know all of this this is targeted at other people watching this, I love these blogs thank you.
@TheGordy19507 жыл бұрын
Joe, I know this is way off subject but, have yo seen this with using Firefox? I am using Ubuntu Mate and this morning I got the following which is hard to get past.
@baershaag7 жыл бұрын
Hello Joe , good work... A little Bit fast for me as a "re-bie" aka "iveputmynoseintolinuxstuffalongtimeagoanddecidedtotrieitagainguy", but i've enjoyed watching this... Is it possible to get a Copy of your .bashrc to get an Overview of all the stuff you put in there? It would help me a lot. ;-):-)
@kabinghimire11015 жыл бұрын
i like your video man
@Gray-Wolf-Media7 жыл бұрын
How do they expect to get anything done without the terminal Hey Joe do you have a video on customizing Terminator?
@EzeeLinux7 жыл бұрын
I have a few up but I don't get to deep into that because my audience are mostly beginners. :)
@645-u6e8 жыл бұрын
What computer language is used with script writing in Linux?
@EzeeLinux8 жыл бұрын
bash and you also use any other language that you have an interpreter. :)
@645-u6e8 жыл бұрын
Joe Collins - Cool thanks!
@futurealarms1217 жыл бұрын
I am trying to create a function that will change the directory and display every item inside it. A combination of cd and ls. It's not working though, and i'm not sure why. I'm using this function: go () { cd ls return } export -f go
@EzeeLinux7 жыл бұрын
the cd command doesn't know what to do... Try this: go () { cd "$1" ls return } export -f go At the command line you'd type 'go /etc' for example. The first argument is stored in a variable called $1 so anything you type after 'go' will; be fed to the cd command. I wrote this up in a script and it works fine. :)
@futurealarms1217 жыл бұрын
Wow, Joe. Thanks! You replied lightning quick! I figured that was the problem, but i wasn't sure how to tell BASH to feed info to the cd command.
@EzeeLinux7 жыл бұрын
Don't get to excited. There's another problem. It won't change the directory and stray there. So, it will ls it but it won't go to it for some reason. Therefore, it's the equivalent of just plain old ls... Thi is a head scratcher. Damn. LOL :)
@futurealarms1217 жыл бұрын
That's annoying. Sounds like a strange glitch more than anything else to me.
@futurealarms1217 жыл бұрын
Thanks! I'll have to try that. Joe's answer has been working fine for me though. But i'll have to see if i like yours better.
@iLiokardo5 жыл бұрын
SSH'ing into your childrens computers XD
@deltathewolf61648 жыл бұрын
Love your channel 3>
@ahmedomar2228 жыл бұрын
not all newbies are afraid of terminal...I started using linux last december and 2 weeks ago i installed arch linux only using a terminal i mean THE ARCH WAY....
@konradritter75435 жыл бұрын
Ahmed Omar you know how to spot another arch user? He will tell your about it ;) I really think that this way of installing is a ton of fun! I use arch btw! ;)
@MyurrDurr8 жыл бұрын
So your update function You just type in "update" into the terminal and it does it's thing? cool I should do this too
@maxencedubois8 жыл бұрын
For more advanced users, you can present powerline tool : github.com/powerline/powerline
@sanaali38754 жыл бұрын
Sir your tax is hiding the command line so plz take care of it when u are typing at lower part of screen plz make clear screen so we can see the command too. I m beginner. Each and every step u do i want to see.
@RobMoore018 жыл бұрын
nice info thanks :)
@linuxman05 жыл бұрын
Scaring off new users with a terminal... the 'terminal' is about power and new users shouldn't be afraid. What they're REALLY afraid of is the challenge of learning it.
@HebaruSan7 жыл бұрын
If you gave all your machines symbolic names in /etc/hosts, then you wouldn't need to maintain 192.168.0.X in all your scripts and aliases. You could just reference the symbolic names and then update the single place in /etc/hosts that defines them if your router changes.
@EzeeLinux7 жыл бұрын
That only works if you setup static IP's and/or have a host name server running. In my case, I setup static IP's and use an alias so I type in the specific number of the machine. Works fine... :)
@norbertokennedy25504 жыл бұрын
"linux, unix, mac, windows"!!...YOU NAME IT!!
@RobertGossCreator7 жыл бұрын
if you're using Linux you should know how to use a terminal it's at must
@peareh1237 жыл бұрын
I found it under bash.bashrc on Mint 17.3
@GCoda8 жыл бұрын
bash-it is awesome
@biehdc8 жыл бұрын
i like my bash
@Seattlefan776 жыл бұрын
My BASH is special cause its mysterious and I dont understand it
@TheGordy19507 жыл бұрын
Joe, Disregard my lats post. I made a mistake.............