KornShell
The KornShell (ksh) is a standard/restricted command and programming language developed by AT&T.
Installation
First, install an implementation from the official repositories:
- AT&T Korn shell — Official AT&T version.
More implementations are provided in the Arch User Repository:
- loksh — A Linux port of OpenBSD's ksh
- OpenBSDs Korn Shell — Porting of the OpenBSD version of ksh to GNU/Linux.
- MirBSD™ Korn Shell — Enhanced version of the public domain ksh.
Making a ksh implementation your default login shell
Change the default shell for the current user:
$ chsh -s /bin/ksh_implementation
Uninstallation
Change the default shell before removing the ksh packages.
Warning: Failure to follow the below procedure may result in users no longer having access to a working shell.
Run following command:
$ chsh -s /bin/bash user
Use it for every user with m/ksh set as their login shell (including root if needed). When completed, the mkshAUR package can be removed.
Alternatively, change the default shell back to Bash by editing /etc/passwd
as root.
Warning: It is strongly recommended to use
vipw
when editing /etc/passwd
as it helps prevent invalid entries and/or syntax errors.For example, change the following:
username:x:1000:1000:Full Name,,,:/home/username:/bin/mksh
To this:
username:x:1000:1000:Full Name,,,:/home/username:/bin/bash
See Also
gollark: If you influence then hatch an egg, the hatchling will keep the influence upon teleportation.If you influence an egg and teleport it back, the influence will be lost.
gollark: As a hatchling, yes; as an egg, no.
gollark: It's probably good for getting UVs, given that modern autorefreshers can do quite a lot of views a second (4 on mine) anyway.
gollark: I mean, if you can get the same amount of views in 1m instead of 2m it could allow for shorter experiments. Do those work better? We need to empirically study NDs.
gollark: Possibly it'd allow reducing the time...
This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.