UPDATE-SHELLS(8)

๐Ÿ“ฆ
version 5.24 ยท 2 versions
, in debian bookworm, debian trixie, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

๐ŸŽ€ update-shells โœจ (section 8) ๐ŸŽ€

Okay so update-shells is the manual page for your login shell list, and it's lowkey iconic ๐Ÿ’…

โœจ NAME โœจ

update-shells - update the list of valid login shells ๐Ÿš

๐ŸŒธ SYNOPSIS ๐ŸŒธ

update-shells [options]

๐Ÿ’– DESCRIPTION ๐Ÿ’–

Okay bestie, so update-shells goes hunting for every shell that packages have dropped into /usr/share/debianutils/shells.d ๐Ÿ•ต๏ธโ€โ™€๏ธ and then refreshes /etc/shells so it includes any newly added shells and drops the ones that got removed. ๐Ÿ”ฅ It's giving organized. To keep track of what you (the admin) changed by hand, it peeks at a state file at /var/lib/shells.state . No cap, that's how it stays so smart ๐Ÿง 

๐Ÿฆ‹ OPTIONS ๐Ÿฆ‹

  • --no-act โ€” Preview mode, babe! It won't actually touch /etc/shells ๐Ÿ‘€
  • --root ROOT โ€” Want to work inside a chroot instead? Point it at ROOT ๐ŸŒณ If you don't say anything, it just uses whatever the DPKG_ROOT environment variable is set to ๐Ÿ’œ
  • --verbose โ€” Lowkey wants to tell you everything ๐Ÿ“ฃ It prints the shells being added or removed as it goes โœจ

๐Ÿ“‚ FILES ๐Ÿ“‚

/etc/shells, /var/lib/shells.state, and /usr/share/debianutils/shells.d are the main files in this whole operation ๐Ÿงš

๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘

shells(5) ๐Ÿ’…


Manual page UPDATE-SHELLS(8), from the System Manager's Manual, last updated 28 Jun 2021. Stay iconic out there, bestie ๐Ÿซถ๐Ÿ’–