Tag Archives: FreeBSD

FreeBSD® is an advanced operating system for modern server, desktop, and embedded computer platforms.

Find Out Operating System Version

Sometimes we need to determine what version of our OS. Mostly for all unix, linux os we can do it with ‘uname’ command. for FreeBSD it works well and we can see directly what version our FreeBSD is, but for ubuntu and centos we can get it straight what we need because instead of display OS version its just will display the kernel version.

then i find out that we can use this command

1. cat /etc/issue

2. /etc/lsb-release

3. cat /etc/apt/sources.list (by seeing repository)

On debian u can use this command (in order)

1. cd /etc

2. ls | grep version

On FreeBSD

1. uname -a

How To List Hardware on FreeBSD

u can use sysctl and dmesg to list all your hardware on freebsd

# sysctl -a

then use grep and egrep to choose what hardware you like to display

1. CPU

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

2. Memory
# sysctl -a | grep mem
or for good display u can see this page

3. Harddisk

# egrep 'ad[0-9]|cd[0-9]' /var/run/dmesg.boot

4. Ethernet
# ifconfig

Restart Crontab on FreeBSD and Linux

Cron is one of the most useful utilities in FreeBSD. Cron is application that running in background that checks file /etc/crontab constantly, it is usually used for automatic commands execution. Using cron and this crontab file you can also start any service you want automatically or scheduled.


1. to change crontab or edit crontab file (using ee or vi)
ee /etc/crontab

you will see lines like this

PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin Continue reading Restart Crontab on FreeBSD and Linux

Pwgen Tutorial Generate Random Password in Linux Unix

Sometimes we need to generate random password to provide rather secure login mecanism for our system. For example if we want to change password randomly for our ftp user. This can be done by using pwgen command. In pwgen man page, i found explanation to use this command. here i will give u the example:

1. basic usage :
pwgen maxleght,
example basic pwgen command and its result:
%pwgen 8

it will generate 8 letter password like ookeokee

2. other usage Continue reading Pwgen Tutorial Generate Random Password in Linux Unix