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

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

back to top

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

openbsd , linux , user_management

- OpenBSD manpages: vnconfig(8) , doas(1) , usermod(8) , readlink(1)

back to top

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

OpenBSD 7.7 linux| Created:2025-10-03|Updated:2025-10-06|