mysqlshow –status yourdbnamehere |sort -n -k10 |awk -F\| ‘($6 !~ /0/)’ |awk -F\| ‘{print $2 ” ” $6 ” ” $7 ” ” $14}’ |egrep -v “^ ” Name Rows Avg_row_length Update_time wp_links 1 128 2009-06-14 04:30:57 wp_comments 11 536 2009-12-01 02:43:25 wp_terms 12 30 2009-10-26 00:37:54 wp_term_taxonomy 13 47 2009-12-01 01:23:39 wp_users 13 118…
WHOIS visiting your site?
I’m fond of WHOIS data for getting an idea who’s visiting a site, though most WHOIS servers return data that’s full of disclaimers and irrelevant data. Rather, I much prefer Team Cymru’s batch WHOIS lookup server, whois.cymru.com. First, extract your IPs: F=ips.out ; echo “begin”>>$F ; echo “verbose”>>$F ; awk ‘{print $1}’ tech-access_log |sort |uniq>>$F…
SEARCH SCRIPT
From: Guy Hammer Here is a script to save a bunch of keystrokes. Make a file /usr/local/bin/psgrep . Paste the following into it: —start— #!/bin/bash # # psgrep – search for a process by pattern. ps -ef | grep -v grep | grep $1 —end— Make the script world executable. Now you just have to…
“bash: ./configure: /bin/sh: bad interpreter: Permission denied”
The “bash: ./configure: /bin/sh: bad interpreter: Permission denied” error commonly occurs when you have wrong options set in /etc/fstab and are trying to compile some code. The partition that you have mounted that stores the source code you are trying to compile is identified in /etc/fstab by a line similar to the following one, also/etc/mtab…
Encrypt Text Files Using vi/m
The disadvantage of using encrypted partitions is that while the partition is mounted, at least root can access the data. To prevent this, vi can be used in encrypted mode. Use vi -x filename to edit a new file. vi prompts you to set a password, after which it encrypts the content of the file….
Linux Security with Fail2Ban
Linux is built to be inherently secure, and has a great track record of having superior security to its proprietary counterpart. However, in the world of server administration, paranoia is an asset. How else could someone get in? How can I prevent that? How can I be notified? One magnificent contribution to the security of…
Reinstall Ubuntu automatically
There is a very simple command that re-installs all the distribution packages and reconfigures them automatically. This is particularly helpful when you have done a partial upgrade and eventually have broken the system dependencies tree. sudo dpkg-reconfigure -phigh -a since this command would take a lot of time to process (~1 hour) depending on your…
Fully packaged Drupal
http://drupal.org/node/647374 Fully packaged Drupal distributions now deployed on drupal.org 3281d Consulting is very pleased to announce that a new era on drupal.org has begun: Drupal distributions (also known as “installation profiles”) can now be automatically packaged with Drupal core and all of their required dependencies. When you download the distribution, you just unpack it into…
wget tricks
Some wget tricks The wget is a command line utility that can download files from web servers and FTP servers. For example , you can download the DVD image of Karmic Koala using the following command. $ wget http://cdimage.ubuntu.com/releases/9.10/release/ubuntu-9.10-dvd-i386.iso If an FTP server requires a login and password, you can enter that information on the…
How to solve problems in Linux
A large part of every Linux forum’s work is dealing with enquiries by Linux novices. While it can be very enjoyable to help others, it can also be rather tiresome to try to help people who have shown no inclination towards helping themselves. However I believe that in many cases, this is not due to…
-
Recent Posts
-
Archives
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- March 2021
- October 2020
- September 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- October 2019
- August 2019
- June 2019
- March 2019
- February 2019
- January 2019
- November 2018
- August 2018
- July 2018
- May 2018
- April 2018
- March 2018
- February 2018
- January 2018
- October 2017
- June 2017
- December 2016
- October 2016
- September 2016
- August 2016
- June 2016
- May 2016
- March 2016
- February 2016
- September 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- March 2009
-
Meta