Skip to content

Instantly share code, notes, and snippets.

@mhoofman
Created January 6, 2011 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhoofman/768701 to your computer and use it in GitHub Desktop.
Save mhoofman/768701 to your computer and use it in GitHub Desktop.
Useful FreeBSD/Linux commands

line added to /etc/inetd.conf for svn server

svn stream tcp nowait root /usr/local/bin/svnserve svnserve -i -r /usr/local/repositories

to restart inetd

/etc/rc.d/inetd restart

svn auth located in

/usr/local/repositories/conf/passwd

display listening ports

sockstat -4 -l

cpu info on freebsd (showing 16 cpus?)

sysctl -a | egrep -i 'hw.machine|hw.model|hw.ncpu'

simple http server (with python installed)

python -m SimpleHTTPServer

modify sudoers (default file location: /usr/local/etc/sudoers)

visudo

remove/delete ports

http://www.freebsd.org/doc/handbook/ports-using.html portdowngrade

show last login access

last
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment