Linux Tip | How to Customize Your BASH Environment

  Рет қаралды 78,441

Joe Collins

Joe Collins

Күн бұрын

In this video we look at changing your BASH Environment to suit your needs...
Check out www.ezeelinux.com for more about Linux.

Пікірлер: 109
@russellthompson3201
@russellthompson3201 7 жыл бұрын
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-MorganNicole619
@WXLM-MorganNicole619 7 жыл бұрын
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
@cosmictachyon3337
@cosmictachyon3337 7 жыл бұрын
Your BASH tutorial videos are so useful! Thank you! Please do more! :)
@BeesCantSwim
@BeesCantSwim 7 жыл бұрын
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.
@jodyamyjames7085
@jodyamyjames7085 7 жыл бұрын
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!
@bobbyfried7478
@bobbyfried7478 4 жыл бұрын
love working in the terminal i ran arch for 4 years and loved learning the terminal. thanx for your vids very cool.
@Nerzhina
@Nerzhina 6 жыл бұрын
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.
@djsensacion7
@djsensacion7 7 жыл бұрын
Embrace the Terminal. Love The Terminal. It provides UNLIMITED POWER !!!!!
@sankargopal123
@sankargopal123 3 жыл бұрын
As a new user of Linux, Ubuntu and Shell programming , wanted to express my sincere thanks for this and all your other videos :) !!
@clearlake2112
@clearlake2112 7 жыл бұрын
Awesome video Joe. You are my go to Channel for Linux information.
@carlbarron1186
@carlbarron1186 5 жыл бұрын
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.
@rangersmyth
@rangersmyth 2 жыл бұрын
How are you getting alone now Carl? I have been learning about Kali the past week now. Loving it!!
@pyotrleflegin7255
@pyotrleflegin7255 7 жыл бұрын
Another great video! Thank you, Joe, this is just the thing I've been looking for.
@evanelten
@evanelten 7 жыл бұрын
Great stuff Joe, as usual. Seems to me this could become a series....
@ethanC2H4
@ethanC2H4 7 жыл бұрын
I watch your video end to end. very informative and useful knowledge you share. keep up the good work..
@Sparkslinger
@Sparkslinger 4 жыл бұрын
Thanks for posting this Joe. You just saved me so much time!
@notpublic7149
@notpublic7149 7 жыл бұрын
thank you very much, this is very useful and I am just getting started on more advanced bash. Great timing. Cheers.
@ericreed0564
@ericreed0564 6 жыл бұрын
That alias trick is just the best.
@Palaciosyt
@Palaciosyt 4 жыл бұрын
I love all your videos, u helped me since I started my linux journey :D
@ScreenPrintR
@ScreenPrintR 2 жыл бұрын
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.
@johncherry108
@johncherry108 7 жыл бұрын
I share your enthusiasm for messing around with bash. For some tasks, it gives much more control over the OS than a GUI.
@jeffreytaffuri2253
@jeffreytaffuri2253 7 жыл бұрын
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.
@bertlemoi431
@bertlemoi431 5 жыл бұрын
i'm new to linux and i'm attracted to the bash terminals potency :)
@Jonathan-rm6kt
@Jonathan-rm6kt 5 жыл бұрын
Thanks for the video, useful and entertaining!
@username65585
@username65585 7 жыл бұрын
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.
@littlek3000
@littlek3000 3 жыл бұрын
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
@mikediaz9033
@mikediaz9033 Жыл бұрын
Sir, I am, just learning and grateful the understanding of life 🙏
@peareh123
@peareh123 7 жыл бұрын
Thanks for the Great Video Joe !!! Bash rocks !!
@markonfilms
@markonfilms 2 жыл бұрын
Very very helpful video. Thank you!
@MyurrDurr
@MyurrDurr 7 жыл бұрын
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!
@JerryEricsson
@JerryEricsson 5 жыл бұрын
Man I started my computer life using DOS, using BASH is like a trip back in time on steroids!
@ts8538
@ts8538 5 жыл бұрын
Thank you! Very helpful.
@5ko99
@5ko99 7 жыл бұрын
Great tutorial video! Thanks
@NMY556L
@NMY556L 7 жыл бұрын
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.
@EzeeLinux
@EzeeLinux 7 жыл бұрын
Cool. I'm glad we figured that out. :)
@NMY556L
@NMY556L 7 жыл бұрын
Joe Collins where on your systems do you store the sync it script - somewhere on your path statement but where exactly?
@EzeeLinux
@EzeeLinux 7 жыл бұрын
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. :)
@NMY556L
@NMY556L 7 жыл бұрын
Joe Collins great thanks.
@gonefishing976
@gonefishing976 7 жыл бұрын
Thank you Joe Collins. :-)
@PauloConstantino167
@PauloConstantino167 3 жыл бұрын
Your videos are so high quality. Amazing content. You should make a Patreon account so others could donate to you I think.
@hectorcasiano7469
@hectorcasiano7469 6 жыл бұрын
Joe rocks the terminal!!!!!!
@echon6757
@echon6757 5 жыл бұрын
I put all my aliases in a .bash_aliases file. It makes for a much cleaner and easier to read file.
@coda714
@coda714 5 жыл бұрын
Thank you for tutoring.
@deltathewolf6164
@deltathewolf6164 7 жыл бұрын
Love your channel 3>
@JasonGranzow
@JasonGranzow 7 жыл бұрын
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'.
@EzeeLinux
@EzeeLinux 7 жыл бұрын
Yep. Still a pain, though... :)
@JasonGranzow
@JasonGranzow 7 жыл бұрын
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.
@EzeeLinux
@EzeeLinux 7 жыл бұрын
Share away! That's what this is all about! :)
@JasonGranzow
@JasonGranzow 7 жыл бұрын
I was unaware of that one, thanks Luc!
@thiruvenkatakrishnan4242
@thiruvenkatakrishnan4242 3 жыл бұрын
Great video 👍👍
@LinuxLuddite
@LinuxLuddite 5 жыл бұрын
Some good stuff here.
@Khyree_Holmes
@Khyree_Holmes 7 жыл бұрын
=( Watching this in Windows 10, this is a Linux channel =( =) Still have my Ubuntu 16.04.1 install on my old HP netbook =}
@hhampton
@hhampton 7 жыл бұрын
It would have been helpful for you to have indicated how to exit the LESS output back to the regular terminal.
@bp-ic3eb
@bp-ic3eb 3 жыл бұрын
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.
@kabinghimire1101
@kabinghimire1101 5 жыл бұрын
i like your video man
@RobMoore01
@RobMoore01 7 жыл бұрын
nice info thanks :)
@TheGordy1950
@TheGordy1950 7 жыл бұрын
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.
@DayBeforeU
@DayBeforeU 7 жыл бұрын
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.
@EzeeLinux
@EzeeLinux 7 жыл бұрын
I didn't advocate editing here... I said you could copy a template from /etc/skel. :)
@DAVIDGREGORYKERR
@DAVIDGREGORYKERR 7 жыл бұрын
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.
@amramkahn4200
@amramkahn4200 2 жыл бұрын
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.
@rochr4
@rochr4 7 жыл бұрын
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!
@joebeishir8059
@joebeishir8059 4 жыл бұрын
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 ??
@finndriver1063
@finndriver1063 7 жыл бұрын
I have heard that Zsh is a good alternative to bash. Meant to be even more powerful. Haven't used it myself though.
@MitaKgEg
@MitaKgEg 7 жыл бұрын
Try zsh with oh-my-zsh. Much better autocomplete, and a lot of themes :)
@spartacuspro88
@spartacuspro88 7 жыл бұрын
I have been using zsh for a while, and I can't stand bash anymore
@MartinOscarPapa
@MartinOscarPapa 6 жыл бұрын
Zsh and ohmyzsh
@iLiokardo
@iLiokardo 5 жыл бұрын
SSH'ing into your childrens computers XD
@stargasm1000
@stargasm1000 4 жыл бұрын
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.
@ahmedomar222
@ahmedomar222 7 жыл бұрын
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....
@konradritter7543
@konradritter7543 5 жыл бұрын
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! ;)
@baershaag
@baershaag 6 жыл бұрын
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. ;-):-)
@Zatocrew
@Zatocrew 3 жыл бұрын
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?
@MyurrDurr
@MyurrDurr 7 жыл бұрын
So your update function You just type in "update" into the terminal and it does it's thing? cool I should do this too
@maxencedubois
@maxencedubois 7 жыл бұрын
For more advanced users, you can present powerline tool : github.com/powerline/powerline
@AndrewDeFaria
@AndrewDeFaria 3 жыл бұрын
I always wonder why people are afraid of a terminal. Are they similarly afraid of the edit box in their email client?ff
@norbertokennedy2550
@norbertokennedy2550 3 жыл бұрын
"linux, unix, mac, windows"!!...YOU NAME IT!!
@joseph4185
@joseph4185 7 жыл бұрын
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!
@joseph4185
@joseph4185 7 жыл бұрын
I'm also using linux mint 18
@EzeeLinux
@EzeeLinux 7 жыл бұрын
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/
@joseph4185
@joseph4185 7 жыл бұрын
Thank you, this looks promising. Also many thanks for taking the time to reply && making all these great videos!
@D0nkeyXot
@D0nkeyXot 4 жыл бұрын
and what's right answer to "if Google does own Apple" in your case?
@scwyldspirit
@scwyldspirit 6 жыл бұрын
How do they expect to get anything done without the terminal Hey Joe do you have a video on customizing Terminator?
@EzeeLinux
@EzeeLinux 6 жыл бұрын
I have a few up but I don't get to deep into that because my audience are mostly beginners. :)
@HebaruSan
@HebaruSan 7 жыл бұрын
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.
@EzeeLinux
@EzeeLinux 7 жыл бұрын
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... :)
@MrPlaythroughhd
@MrPlaythroughhd 7 жыл бұрын
Did you ever try Gentoo or CRUX?
@greatsea
@greatsea 5 жыл бұрын
Gentoo is a hobby
@rwprime1
@rwprime1 7 жыл бұрын
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?
@runeheadah
@runeheadah 7 жыл бұрын
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.
@radolkin
@radolkin 7 жыл бұрын
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.
@sanaali3875
@sanaali3875 3 жыл бұрын
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.
@biehdc
@biehdc 7 жыл бұрын
i like my bash
@GCoda
@GCoda 7 жыл бұрын
bash-it is awesome
@user-zp4yk8ie1s
@user-zp4yk8ie1s 7 жыл бұрын
What computer language is used with script writing in Linux?
@EzeeLinux
@EzeeLinux 7 жыл бұрын
bash and you also use any other language that you have an interpreter. :)
@user-zp4yk8ie1s
@user-zp4yk8ie1s 7 жыл бұрын
Joe Collins - Cool thanks!
@futurealarms121
@futurealarms121 7 жыл бұрын
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
@EzeeLinux
@EzeeLinux 7 жыл бұрын
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. :)
@futurealarms121
@futurealarms121 7 жыл бұрын
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.
@EzeeLinux
@EzeeLinux 7 жыл бұрын
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 :)
@futurealarms121
@futurealarms121 7 жыл бұрын
That's annoying. Sounds like a strange glitch more than anything else to me.
@futurealarms121
@futurealarms121 7 жыл бұрын
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.
@RobertGossCreator
@RobertGossCreator 7 жыл бұрын
if you're using Linux you should know how to use a terminal it's at must
@peareh123
@peareh123 7 жыл бұрын
I found it under bash.bashrc on Mint 17.3
@Seattlefan77
@Seattlefan77 5 жыл бұрын
My BASH is special cause its mysterious and I dont understand it
@kaminebeble60
@kaminebeble60 7 жыл бұрын
Installer Skype sur Kali Linux
@TheGordy1950
@TheGordy1950 7 жыл бұрын
Joe, Disregard my lats post. I made a mistake.............
JC's Favorite BASH Commands
54:37
Joe Collins
Рет қаралды 26 М.
Linux Tip | 10 Useful Linux Commands
34:35
Joe Collins
Рет қаралды 662 М.
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 21 МЛН
Linux Tip | How to Improve Performance for VirtualBox VMs
22:17
Joe Collins
Рет қаралды 41 М.
Useful Linux Applications | What You'll Need To Get Things Done
34:33
Bash function fun, who needs ZSH when you can just do this.
18:31
Anti-Virus and Firewall Software for Linux
26:12
Joe Collins
Рет қаралды 111 М.
Beginner's Guide to the Bash Terminal
1:14:37
Joe Collins
Рет қаралды 2,3 МЛН
8 super heroic Linux commands that you probably aren't using
8:38
Engineer Man
Рет қаралды 727 М.
Terminal vs. Bash vs. Command line vs. Prompt
11:06
Luke Smith
Рет қаралды 233 М.
My 5 Favorite Linux Shell Tricks for SPEEEEEED (and efficiency)
11:06
Linux File Types and File Permissions
46:05
Joe Collins
Рет қаралды 70 М.
Why I Switched Back to Bash, And Why You Should Too
10:42
The Linux Cast
Рет қаралды 36 М.
Байкеры помогли доехать маме и сыну 😯
0:20
Фильмы I Сериалы
Рет қаралды 2,4 МЛН
Бедная бабушка...
0:56
Почему?
Рет қаралды 3,9 МЛН
How to drink orange juice legally @kahoko6607
0:29
OHIOBOSS SATOYU
Рет қаралды 22 МЛН
Я обещал подарить ему самокат!
1:00
Vlad Samokatchik
Рет қаралды 6 МЛН
Байкеры помогли доехать маме и сыну 😯
0:20
Фильмы I Сериалы
Рет қаралды 2,4 МЛН
Waka Waka 🤣 #11 #shorts #adanifamily
0:13
Adani Family
Рет қаралды 10 МЛН