Nix Geek

Day: August 5, 2017

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