Sort Processes by Memory Usage

FreeBSD *Use zfs-stats to check how much is zfs using from your memory Linux ps -eo size,pid,user,command –sort -size | awk ‘{ hr=$1/1024 ; printf(“%13.2f Mb “,hr) } { for ( x=4 ; x<=NF ; […]

Delete a Single Line From History

Did you ever wanted to remove a single line from your shell history? This is how you can easily do it: use: history -d line number to remove the line, for example history -d 431, […]

check free memory in FreeBSD

In case you’re coming from Linux world to FreeBSD first of all: Welcome! You might miss some commands, like free. Here is a very short tutorial for that. fetch sh Then of course […]

Explaining BSD by Greg Lehey 

A great article from Greg Lehey about explaining BSD:

A little bit of nginx

Took me a moment to find out how to redirect a URL if the URL contains a certain word, in Nginx, here it is: location ~ \.xml$ { rewrite ^(.*)$$1; proxy_set_header X-Real-IP $remote_addr; proxy_set_header […]