FreeBSD commands

The purpose of this post is to provide useful command needed while working on freebsd:

How to check ipv4 routing table:

netstat -rn -4

How to install a package:

pkg install apache24

How to get list of software installed in freebsd?

pkg list

View only specific content of a file :

grep -v '^#' httpd.conf
This command shows line which doesn't start with #

 

Advertisements
This entry was posted in Linux. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s