Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

how to apply your own shell in the system

At the moment, I am developing my shell on Rust, and so I have completed the most important functionality, but I had the biggest problem how to apply it at the system level, for example, to derive a list of available shells, I need to write

$ chsh -l

How can I add my shell to this list?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

From man chsh:

   -l, --list-shells
       Print the list of shells listed in /etc/shells and exit.

How can I add my shell to this list?

You would add the path to excuteble in /etc/shells. See man 5 shells.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading