Header Banner
Null Byte Logo
Null Byte
wonderhowto.mark.png
Cyber Weapons Lab Forum Metasploit Basics Facebook Hacks Password Cracking Top Wi-Fi Adapters Wi-Fi Hacking Linux Basics Mr. Robot Hacks Hack Like a Pro Forensics Recon Social Engineering Networking Basics Antivirus Evasion Spy Tactics MitM Advice from a Hacker

Change from BASH to zsh

Jan 16, 2012 04:47 PM

Hello fellow Null-Byters today I will be showing you how to change from the simple but powerful BASH system to a more powerful and faster Z - Shell system. This change can be permanent if you want but doesn't have to be, and it is an extremely simple one to perform.

Reasons to change:

ZSH is similar to its counterpart BASH. So that means it has a lot of the same features of BASH but a lot better.

  1. Better TAB auto-completion
  2. Typo correction
  3. Faster
  4. "Smarter"
  5. More features
  6. Reverse compatible

And many more that I will not go into

How to get it:

If you want to test out Zshell before you fully devote yourself to it type in a console emulator

For Ubuntu and Ubuntu based distros

sudo apt-get install zsh

For Arch based distros

sudo pacman zsh

Tips

  • If you would like to test out the shell go to a console emulator and type in
  • zsh
  • It should give you a basic shell look and now you can play with it all you want
  • Skip the .zshrc wizard it can be confusing and I recomend getting one you find online like this one : http://linuxgazette.net/183/misc/silva/zshrc.gz

To make the change permanent:

First off we are going to change the login shell so open a console emulator and type in:

chsh

the type in

/bin/zsh

This will make zsh your login shell for linux now

Next type

su

enter your password then retype in what you did above this, this will make your default root shell zsh.

Tips

  • To ever go back to bash just do the following
  • type into a console emulator
  • chsh
  • Then
  • /bin/bash
  • This will change the default shell back to bash.

I hope this helps someone change from BASH to Z-Shell as it is way better.

The next big software update for iPhone is coming sometime in April and will include a Food section in Apple News+, an easy-to-miss new Ambient Music app, Priority Notifications thanks to Apple Intelligence, and updates to apps like Mail, Photos, Podcasts, and Safari. See what else is coming to your iPhone with the iOS 18.4 update.

Related Articles

Comments

No Comments Exist

Be the first, drop a comment!