Date: Sun, 11 Feb 2001 20:54:14 +1300 From: Jamie Walker <jamiew@clear.net.nz> To: Nik Clayton <nik@FreeBSD.ORG> Cc: doc@FreeBSD.ORG Subject: Re: Switching from Linux Message-ID: <3A864526.EA1C7DFE@clear.net.nz> References: <F96lWjOgZ8G00udy4ja00012543@hotmail.com> <20010208070739.A82647@canyon.nothing-going-on.org> <3A824BE8.ECBC0622@clear.net.nz> <20010208074139.A47357@canyon.nothing-going-on.org> <3A826317.AEEB712F@clear.net.nz> <20010208231259.A86233@canyon.nothing-going-on.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Nik Clayton wrote: > I'm copying this to -newbies, where this has come up again, and -doc, > where I'd like the discussions to continue. > > For those new to this, this is the attempt to produce a 'cheat sheet' > for Linux users coming to FreeBSD. Here's a few more I chucked together. Note that I haven't been using FreeBSD all that long, so I apologise in advance if I've suggested doing things a dumb way ;-) ----------------------- >B cut here >B ---------------------------- To set a file flag so it can't be overwritten, even by root: ----------------------------------------------------------- Linux: chattr +i <filename> FreeBSD: chflags schg <filename> In FreeBSD, you need to make sure your securelevel is above 0 or else the flag will have no effect. In either OS you must boot to single user mode to clear this flag. To add/list/remove kernel modules: --------------------------------- Linux: insmod <module file> lsmod rmmod <module name> FreeBSD: kldload <module name> kldstad kldunload <module name> To repeat a command over and over, outputting to screen: ------------------------------------------------------- Linux: watch <command> FreeBSD: cd /usr/ports/misc/display ; make install (only need to do this once) display <command> To enable graphical login manager: --------------------------------- Linux: To do this temporarily init 5 To make the change stick after a reboot, edit /etc/inittab and change the line that reads id:3:initdefault: to id:5:initdefault: FreeBSD: edit /etc/ttys and look for the line that looks like ttyvb "/usr/X11R6/bin/xdm -nodaemon" xterm off secure Change the 'off' to 'on', then killall -HUP init To manually edit the password file: ---------------------------------- Linux: vi /etc/passwd FreeBSD: vipw To see which processes are using which network ports: ---------------------------------------------------- Linux: netstat -nap FreeBSD: sockstat -- Email: jamiew@clear.net.nz ICQ: 5632563 or shout loudly To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A864526.EA1C7DFE>