Тёмный

Linux Tip | How to Customize Your BASH Environment 

Joe Collins
Подписаться 128 тыс.
Просмотров 79 тыс.
50% 1

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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
@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!!
@cosmictachyon3337
@cosmictachyon3337 7 лет назад
Your BASH tutorial videos are so useful! Thank you! Please do more! :)
@djsensacion7
@djsensacion7 7 лет назад
Embrace the Terminal. Love The Terminal. It provides UNLIMITED POWER !!!!!
@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.
@sankargopal123
@sankargopal123 4 года назад
As a new user of Linux, Ubuntu and Shell programming , wanted to express my sincere thanks for this and all your other videos :) !!
@ericreed0564
@ericreed0564 6 лет назад
That alias trick is just the best.
@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.
@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.
@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
@evanelten
@evanelten 7 лет назад
Great stuff Joe, as usual. Seems to me this could become a series....
@ScreenPrintR
@ScreenPrintR 3 года назад
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.
@clearlake2112
@clearlake2112 7 лет назад
Awesome video Joe. You are my go to Channel for Linux information.
@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.
@hectorcasiano7469
@hectorcasiano7469 6 лет назад
Joe rocks the terminal!!!!!!
@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 RU-vid channel. Many thanks.
@mikediaz9033
@mikediaz9033 Год назад
Sir, I am, just learning and grateful the understanding of life 🙏
@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!
@bertlemoi431
@bertlemoi431 5 лет назад
i'm new to linux and i'm attracted to the bash terminals potency :)
@JerryEricsson
@JerryEricsson 5 лет назад
Man I started my computer life using DOS, using BASH is like a trip back in time on steroids!
@ethanC2H4
@ethanC2H4 7 лет назад
I watch your video end to end. very informative and useful knowledge you share. keep up the good work..
@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!
@echon6757
@echon6757 5 лет назад
I put all my aliases in a .bash_aliases file. It makes for a much cleaner and easier to read file.
@pyotrleflegin7255
@pyotrleflegin7255 7 лет назад
Another great video! Thank you, Joe, this is just the thing I've been looking for.
@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!
@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.
@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.
@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 =}
@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
@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.
@hhampton
@hhampton 7 лет назад
It would have been helpful for you to have indicated how to exit the LESS output back to the regular terminal.
@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. :)
@Palaciosyt
@Palaciosyt 4 года назад
I love all your videos, u helped me since I started my linux journey :D
@markonfilms
@markonfilms 2 года назад
Very very helpful video. Thank you!
@gonefishing976
@gonefishing976 7 лет назад
Thank you Joe Collins. :-)
@maxencedubois
@maxencedubois 7 лет назад
For more advanced users, you can present powerline tool : github.com/powerline/powerline
@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.
@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.
@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! ;)
@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.
@Jonathan-rm6kt
@Jonathan-rm6kt 5 лет назад
Thanks for the video, useful and entertaining!
@peareh123
@peareh123 7 лет назад
Thanks for the Great Video Joe !!! Bash rocks !!
@5ko99
@5ko99 7 лет назад
Great tutorial video! Thanks
@ts8538
@ts8538 5 лет назад
Thank you! Very helpful.
@amramkahn4200
@amramkahn4200 3 года назад
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.
@stargasm1000
@stargasm1000 5 лет назад
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.
@thiruvenkatakrishnan4242
@thiruvenkatakrishnan4242 3 года назад
Great video 👍👍
@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
@iLiokardo
@iLiokardo 5 лет назад
SSH'ing into your childrens computers XD
@coda714
@coda714 5 лет назад
Thank you for tutoring.
@LinuxLuddite
@LinuxLuddite 5 лет назад
Some good stuff here.
@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
@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?
@D0nkeyXot
@D0nkeyXot 4 года назад
and what's right answer to "if Google does own Apple" in your case?
@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!
@kabinghimire1101
@kabinghimire1101 5 лет назад
i like your video man
@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 ??
@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.
@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. ;-):-)
@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!
@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.
@norbertokennedy2550
@norbertokennedy2550 3 года назад
"linux, unix, mac, windows"!!...YOU NAME IT!!
@deltathewolf6164
@deltathewolf6164 7 лет назад
Love your channel 3>
@RobMoore01
@RobMoore01 7 лет назад
nice info thanks :)
@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
@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. :)
@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.
@peareh123
@peareh123 7 лет назад
I found it under bash.bashrc on Mint 17.3
@RobertGossCreator
@RobertGossCreator 7 лет назад
if you're using Linux you should know how to use a terminal it's at must
@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.
@GCoda
@GCoda 7 лет назад
bash-it is awesome
@biehdc
@biehdc 7 лет назад
i like my bash
@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.............
Далее
BASH Environment | Aliases, Functions and Scripts
49:26
Первый день школы Катя vs Макс
19:37
БЕЛКА РОЖАЕТ?#cat
00:22
Просмотров 621 тыс.
Linux Tip | How To Automate Tasks using Cron
38:44
Просмотров 49 тыс.
Why I Switched Back to Bash, And Why You Should Too
10:42
Beginner's Guide to the Bash Terminal
1:14:37
Просмотров 2,3 млн
Tips For Customizing Your Linux Kernel
8:58
Просмотров 98 тыс.
Linux Tip | 10 Useful Linux Commands
34:35
Просмотров 662 тыс.
Anti-Virus and Firewall Software for Linux
26:12
Просмотров 111 тыс.
BASH scripting will change your life
14:18
Просмотров 1 млн
Первый день школы Катя vs Макс
19:37