We were recently configuring AIDE, and didn’t pay attention to the defaults in the configuration when we compiled it, and didn’t know where aide.db.new was going to after running aide initially. Sure, lsof would work while to porgram is running; however, we needed to know what files were open while the program was running. Strace […]
Using Strace to Determine What Files a Program Opens
Changing the Default Crontab Editor
The default crontab editor is nano on some systems. This is a pain. You can change this by setting the EDITOR environment variable. In BASH: srv-4 / # set | grep EDITOR EDITOR=/bin/nano srv-4 / # which vi /usr/bin/vi srv-4 / # export EDITOR=/usr/bin/vi srv-4 / # set | grep EDITOR EDITOR=/usr/bin/vi _=EDITOR srv-4 / […]
One off Administration and Testing Scripts Using Vi
If you have a list of servers, you can use the substitution feature in vi to quickly turn that list into a test script. For instance, if I want to test a list of domains that looks like this: domain1.com domain2.com domain3.com domain4.com domain5.com I can insert text before and after the domain name. Here […]
Vim With Spell Checking
There is a new version of Vim that will do spell checking. We used version 7.0131 available here. Grab the source, extract, compile, and install: [root@www src]# cd vim7 [root@www vim7]# ls vim-7.0131.zip [root@www vim7]# unzip *.zip Archive: vim-7.0131.zip Vim 7 snapshot version 7.0131 inflating: src/README.txt inflating: src/arabic.c inflating: src/arabic.h inflating: src/ascii.h inflating: src/buffer.c . […]
SolarWinds Top 5 Essential IT Tools
Manage and Monitor Your Network in One Simple Bundle
- Help desk ticketing and asset management software
- Remote support and systems management solution
- Network configuration and automation software
- Safe file transfer management solution
- Network management and troubleshooting software
Fully functional for 14 days