Tag Archives: linux

Find Text and Find/Replace Easier Than You Think in Linux

How to search all files for a text string: grep -lr string ./ > results.txt -l will print only the path and file names of the matches. Search all files of a certain name for a certain string: grep -lr string ./ | grep filename Yes, do specify ./ if you are doing all directories within current. (source and more info) Find [...]
Posted in quickfire, tips | Also tagged , , , , | 1 Comment

Open Source storage server

This is not going to be a full review, but more a general take on things. Since moving from VMware Server to ESXi to host my virtual machines, I’ve been very interested in looking into some more of the advanced features of ESX and ESXi yet most of these require iSCSI.  I remember from a few [...]
Posted in other, projects | Also tagged , , , | Leave a comment

OhioLinux September 25-27, 2009

This years OhioLinux Fest starts tomorrow and runs until Sunday. I’ll be there. You should to. More info at the OhioLinux website
Posted in Uncategorized | Also tagged | 1 Comment

Check speed of connected link in Linux

If you’ve ever wanted to check on the status of your Ethernet links, you’ve probably used the ip commands (or ifconfig) to view some basic information.  However, you might have noticed these commands do not tell you what the current link speed is, or other possibly important details.  That’s where ethtool comes in. [jonmoore@megaton ~]$ sudo [...]
Posted in quickfire, tips | Also tagged | Leave a comment

Extend the timeout on SSH connections

A quick google search will quickly answer this question, but I’ve found myself asking it a few times lately.  Often when I let an SSH session go idle, I’ll end up being disconnected.  By adding ServerAliveInterval 60 to ~/.ssh/config I’ve managed to limit this from happening. There is also a similar server side fix for this.  [...]
Posted in quickfire, tips | Also tagged | Leave a comment

Creating empty files in Linux

I had a need for several files of various sizes to do some network testing with.  I found a very good us for dd here. dd if=/dev/zero of=10mb-file.bin bs=1024k count=n Using the above command (and replacing n for a value) allows the creation of empty files with the size specificed. Need a 10Mb file, n = [...]
Posted in quickfire, tips | Also tagged | Leave a comment

Arrow keys not working in VMware?

Mine didn’t Luckily Google helped me find a solutation rather quickly, and using information from this site I was able to get things working again. Basically, I added xkeymap.nokeycodeMap = true to /etc/vmware/config and things started working right. Another on the forum suggested remapping the keys, but I didn’t try that.
Posted in quickfire | Also tagged | Leave a comment

Super simple, limited and basic look at tar

Create a tar archive tar -c -f archive.tar * Create a compressed archive with gzip tar -c -z -f archive.tar.gz * You can also condense down the commands like so.. tar -czf archive.tar.gz *
Posted in tips | Also tagged | 1 Comment