Linux Commands for Beginners 07 - The Bash Configuration File

preview_player
Показать описание
In my Linux Commands for Beginners series, we'll explore everything you need to know in order to be productive on the Linux Command Line. You'll learn basic commands, input/output redirection, package management, resource monitoring, troubleshooting, and more. In this video we'll take a look at the bash configuration file (.bashrc).

If you enjoyed this video, please click the like button, and share it on your favorite social networking platform (Facebook, Twitter, etc)

☁️ Get $100 in credit toward deploying your very own Linux servers on Linode!

🛒 Affiliate store for Linux compatible hardware/accessories (commission earned):

💻 Check out the Tiny Pilot KVM for your Homelab (commission earned):

🙌 Support me on Patreon and get early access to new content!

🐦 Follow me on Twitter!

📖 Check out jay's latest book, Mastering Ubuntu Server 3rd Edition. Available now!

My .bashrc file:

PS1 Prompt Generator:

👨 More about me:

#Linux #Bash #CommandLine
Рекомендации по теме
Комментарии
Автор

I have seen some deveopers especially make configurations in "bash" file but didn't understand what they were doing until I watched this video. Thank you Linux TV

abeljoshua
Автор

the alias did not work until I sourced my .bashrc file after the changes, i.e. typed ". ~/.bashrc" and hit Enter. After that, the "c" cleared the screen. Before I sourced the .bashrc I was getting an error that c command was not found. Just sharing my experience, in case anyone else runs into the same issue.

atheron
Автор

lots rave about zsh or fish - but interesting you use and teach bash. somehow i find that comforting. Maybe because there is enough to learn without worrying about missing out in another shell.

natem
Автор

If the alias doesn't work, just restart the terminal. It worked for me and some others here.

draulmdl
Автор

I think a tutorial on the unicorn prompt is called for.

hunterbrooks
Автор

Brilliant, went away after watching this excellent vlog and did a bit of work using a PS1 Generator and mucked around with it and I too have my own prompt.

mikehaldane
Автор

Great series Jay. I'm sure someone already pointed this out, but the alias created for 'clear' at the end of this video won't work until the shell is restarted, and re-reads the .bash.rc file. This might confuse folks. I'm sure there's a better way to restart bash, but I did it by closing my terminal window and opening another one. Speaking of which, perhaps you might consider mentioning how to open terminal in one of the earlier videos in the series.

brianhupp
Автор

For those on Manjaro and wondering why it isn't working after you start a new terminal. Manjaro uses zsh and not bash in the terminal. You need to edit the .zshrc file, also located in you home folder. After editing you use "source .zshrc" or close and open a new terminal.
Took me a while before realizing my terminal uses zsh by default and not bash. I does say so at the top of the terminal (e.g. zsh ---- Konsole).

migiel
Автор

I did have to restart the terminal to make the alias "C" work.

maurolimaok
Автор

"This is the result of finding different things." Configuration files are more important than linux users' life

thaidoan
Автор

"I name all of my laptops after FFVI espers..." How can something be simultaneously so nerdy and yet so very cool?

IsaacCallison
Автор

hahah FF6 is definitely the best FF other than FFT, but great videos much appreciated had to tighten up on some of my linux basics

Erockx
Автор

It pays to read all comments first lol using " 'alial=c' " then restarting terminal after saving worked. Just a real newb here trying to learn.

davidweaver
Автор

I restarted my command terminal and it worked after that FYI for people have an issue

luigir
Автор

for the alias i needed to reboot im using ubuntu 20.xx lts server

therealboomhower
Автор

Nice video, thanks.

Have you done a video explaining the difference between login/ non login shells?

paulmacgiollacaoine
Автор

how do I setup that matrix screen saver behind you?

Ax
Автор

Doesn't seem to work in Linux Mint 2 just released even using the "sourced" command all I get is command not found and .~/.bashrc or bash: !/.bashrc: event not found.

davidweaver
Автор

What if "nano" command doesn't work on my shell? What should I do?

TewodrosBaye
Автор

yeah did notwork for me also don't know how to move full lines like you did to give space for alias c=clear maybe that's why it did not work for me?

stevegrey