≡ Menu

FreeBSD Tutorials and HowTos

Here you will find tutorial about FreeBSD unix operating system such as – configuration of network, PF firewall/packet filtering, NTA, FreeBSD kernel, building and installing packages, storage, networking services, including HTTP/HTTPS, FTP, NFS, SMB, SMTP, SSH, and NTP ( rss/feed ).

FreeBSD 9.1: HowTo Load a Kernel Module

I am a new FreeBSD Unix users. I am using FreeBSD version 9.1 and how do I load a kernel module called drm using command line option?
[click to continue…]

FreeBSD: Delete User Account Command

How do I remove the tom user under FreeBSD operating system using command line options?
[click to continue…]

FreeBSD: Install sudo Command To Execute A Command As The Root

I have recently started to managing FreeBSD server along with Ubuntu Linux. However, sudo command, always shows me the following error:

zsh: command not found: sudo

How do I solve this problem and use sudo under FreeBSD 9.x system?
[click to continue…]

FreeBSD Laptop: Find Out Battery Life Status Command

I know how to find out battery life status using Linux operating system. How do I monitor battery status on a laptop running FreeBSD version 9.x?
[click to continue…]

Unix / Linux: Show First 10 or 20 Lines Of a File

I have a directory with many files. I am trying to write a shell script that will only show first 10 or 20 lines of a file. How do I display first 10 or 20 lines of a file on Linux or Unix-like systems?
[click to continue…]

How To Look Up DNS on a Linux and Unix Systems

How do I look up for DNS (Domain Name System) information on a Linux or Unix-like systems using command line options?
[click to continue…]

OpenBSD / FreeBSD / NetBSD: PF Firewall List Rules

I can use iptables -L -n command with Linux operating system to list the current firewall rules. How do I list all the current firewall rules under OpenBSD / FreeBSD / NetBSD operating systems? How can I see all pf firewall rules using command line tool?
[click to continue…]

MySQL/MariaDB Server: Bind To Multiple IP Address

I have MySQL/MariaDB database system running on a FreeBSD/Linux server. The server has multiple ip address. The mysqld used by many websites hosted on two other CentOS Linux based servers. I would like to bind MySQL sever running on a Linux or Unix-like server to more than one IP address such as,, and How can I bind mysqld to multiple ips?
[click to continue…]

Linux / Unix: Rsync Copy Files & Directories Names With WhiteSpaces and Blanks

I need to transfer a file called 'some cool movie.avi' that contains whitespace under rsync. How do I escape a filename or directory name with spaces in them while using rsync command under Linux / *BSD / Unix like operating systems? How do I use rsync when files / dirs contain spaces?
[click to continue…]

Linux / Unix vi / vim: Open and Switch Between Multiple Files

I am new to Linux sysadmin work. I am using vi / vim text editor to edit files located in /etc/ directory. I open files using

vi /etc/resolv.conf /etc/hosts

I can edit the /etc/resolv.conf file only. How do I switch between the two open files while using vim text editor under Linux / BSD / Apple OS X / Unix like operating systems?
[click to continue…]