VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » IT, programs, coding
Changing Your Default Shell DistroTube

Changing Your Default Shell DistroTube

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Changing Your Default Shell DistroTube Wondering how to change your default shell? I will show you three easy ways to do just that. - https://linux.die.net/man/1/chsh https://linux.die.net/man/8/usermod https://www.cyberciti.biz/faq/understanding-etcpasswd-file-format/
Date: 2022-03-30

Comments and reviews: 10


hey dt, watt would help us really a lot is if u actually changed the shell eg from bash to zsh, logout & login to show us that you've actually changed it by doing a ps command, then changed the shell back.. NOT pretend to change the shell! that doesn't convey a whole lot of confidence. While most of us, including me, have a whole lot of confidence that its really a snap for you, most of us out here in the real world get the message that you're scared to bork your own machine or making a mistake is something un-fix-able!
reply

Hey just watched this video, and wanted to mention that chsh -l doesn't work on macos either, but the cat /etc/shells does, as well as chsh -s path to shell. I haven't tried in FreeBSD, so can't really make comments there currently. My two main physical computers are a 5K iMac, and an older HP tower running Xubuntu mainly acting as a NAS for now.
reply

I know this may sound obvious but don't try to use a shell that's not listed in /etc/shells, even if it works. I wasted an entire day figuring out why my computer was rejecting my password last month after I switched to a non-login shell and forgot to change it back.
reply

The 4th method is to just execute the shell you want from the config file of the default shell. For example, if bash is your default shell and you want to use fish, you can just insert -exec fish- on .bashrc. Personally, I insert it at the end of the file.
reply

Thank you very much. I'm completely green to Linux and have 0 previous experience. Currently taking an IT course and Linux and scripting seems to be going straight over my head. Thank you for making this easy to follow and fun to watch.
reply

Hey DT i though you would have powerline for vim to nice it up like you did your terminal i know your prompt is powerlevel9k but still powerline looks nice in vim when running powerlevel9k in your prompt.
reply

Have you used tmux as a shell? I didn't really think this was an option.
Could you use Tmux and ZSH at the same time without having to instantiate a tmux server in your zsh shell? I dont get it.

reply

Hi DT, Thanks for your video.
You have made changing the shell seem a simple and straightforward affair, which of course means that when I try it will be a complete cluster f--k! ;-)

reply

Like programming languages, there is no true -best- terminal shell. Sure, there are worse options, but you'll just need to pick the shell that is best for your workflow.
reply

It's probably better to use vipw instead of invoking your editor directly on passwd. This will invoke your $EDITOR on a safe copy of passwd. It's much safer.
reply
Add a review, comment






Other channel videos