_                    _
  ___ | |__   __ _ _______ | |_
 / _ \| '_ \ / _` |_  / _ \| __|
| (_) | | | | (_| |/ / (_) | |_
 \___/|_| |_|\__,_/___\___/ \__|

linux to openbsdmigration from linux to OpenBSD, differences and tips

pager | default pages is more, change it on .profile | export PAGER=less
updatedb | is run weekly, to run manually | /usr/libexec/locate.updatedb
completion | path | /usr/local/share/bash-completion/bash_completion
bc | cannot be killed with ^c, type | quit or ^d
lsblk | is not core.
realpath | use | readlink -f
halt | halt waits for keypress to reboot, to halt | halt -p
halt | halt waits for keypress to reboot, use: | Bf -literal halt -p

- sudo is replaced by doas
- add wheel group to the users that need root access
usermod -G wheel user
- create the config
cp /etc/examples/doas.conf /etc/
- modify config to not ask the password everytime you run doas
permit persist :wheel

(back to top)

chsh -s /usr/local/bin/bash

for scripts change:

#!/bin/bash
to
#!/usr/bin/env bash
if it still shows error:
bad interpreter
find the location of bash and use the resulting path instead
whereis bash

(back to top)

vnconfig $iso_file
 mount -t cd9660 /dev/vnd0a /path_to_iso_mount

(back to top)

- Translate to Spanish.

(back to top)

openbsd, linux, user_management
OpenBSD manpages: vnconfig(8), doas(1), usermod(8), readlink(1)

(back to top)

2025-10-03 : Created.

(back to top)

ohazot | about | ohazot.com <admin@ohazot.com>

This document applies to: OpenBSD 7.7 linux| 2025-10-06