From owner-freebsd-doc Sat Feb 10 23:54:40 2001 Delivered-To: freebsd-doc@freebsd.org Received: from felch.internot (d2-u52.acld.clear.net.nz [203.97.48.116]) by hub.freebsd.org (Postfix) with ESMTP id 19CD237B4EC; Sat, 10 Feb 2001 23:54:19 -0800 (PST) Received: from clear.net.nz (felch [10.0.0.1]) by felch.internot (8.11.2/8.11.2) with ESMTP id f1B7sEx09010; Sun, 11 Feb 2001 20:54:17 +1300 (NZDT) (envelope-from jamiew@clear.net.nz) Message-ID: <3A864526.EA1C7DFE@clear.net.nz> Date: Sun, 11 Feb 2001 20:54:14 +1300 From: Jamie Walker Organization: A Touch of Evil X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Nik Clayton Cc: doc@FreeBSD.ORG Subject: Re: Switching from Linux References: <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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 FreeBSD: chflags schg 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 lsmod rmmod FreeBSD: kldload kldstad kldunload To repeat a command over and over, outputting to screen: ------------------------------------------------------- Linux: watch FreeBSD: cd /usr/ports/misc/display ; make install (only need to do this once) display 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