Nix Geek

Colorize CLI FreeBSD

FreeBSD uses csh as its default shell (I personally prefer tcsh which is available), but one thing one might notice is that ll (or ls -l) is not colorized. This can be corrected by adding the following to the .cshrc file in your home directory (or root directory): setenv CLICOLOR 1 Once you do this, […]

Vim Text Editor in FreeBSD

If you are experienced with vi in a Linux setting, I suggest actually going with vim in FreeBSD for 2 reasons: – it performs more like vi does in Linux (vi is a little different and frustrating in FreeBSD) – colorized coding just like it does in Linux To add Vim to your FreeBSD installation, […]

Install XFCE on FreeBSD 11

The following will show how to install XFCE on FreeBSD 11. Before we get started, I’d like to note that I will be using the vesa driver as that is currently working for my installation over the named intel driver. Install XFCE using the following: pkg update && pkg upgrade pkg install xorg xf86-video-vesa xfce […]

To sudo or not to sudo

That is the question. Well, not to most people. I have some views on sudo that I think are unusual. I like to pretend that I am ‘anti-sudo’, because I’ve been around since before sudo, and when you wanted to do something as root, you became root, dammit. In reality, I think sudo has three […]

Search and Replace in vi

Speaking of vi(m) tips, I’m quite fond of search and replace from within vi. The syntax is very similar to sed’s search and replace, and uses regex the same way. To do a simple replacement of all instances of “snoogins” with “snoochieboochies” you would want to type this while in command mode. :%s/snoogins/snoochieboochies/g Like sed, […]

Syntax Highlighting in Vi

You do not need to install vim in order to highlight syntax. You can do so with the vi command: :syntax on

Remove Multiple Files In The Same File Path

The following is how to remove multiple files in a file path without having to use multple commands, or changing directories: rm -f /path/to/files/{file1,file2,file3} Example: rm -f /home/beagles/Pictures/{All.jpg,For.jpg,One.jpg}

Terminal commands

Here’s a list of bash commands that even a freakin’ newb knows: ll cd rm -rf / head tail   Be sure to try all of these at home because they’re super useful!

Coming Soon

You have no idea how awesome this is going to be.

Back to top