Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

NetBSD Notes

Chris Jones edited this page Feb 21, 2019 · 7 revisions

Administration

To restart networking in NetBSD 4.0

/etc/rc.d/network restart

To find the PID of a process by its name

ps -ef | grep -i airport

To show the list of open files by a process

lsof -p <PID>

To create a user account with the following command

useradd -m -G wheel steve

Useful commands for learning about a particular system

To display the architecture and endianess of the system

uname -mrps

To determine the hardware type / platform

uname -m

To determine architecture of the processor

uname -p

To determine release level

uname -r

To determine the last time a $USER logged into a system

last <user_name>

QEMU

To launch a NetBSD 4.0 VM with networking

qemu-system-x86_64 -m 512 VM/netbsd4.0 -net user -net nic,model=ne2k_pci &

TODO

  • see if the below commands are applicable to NetBSD
dmesg | grep CPU
dmesg | grep memory
last -1 reboot
last -1 shutdown

Clone this wiki locally

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /