Obscure linux commands

apropos- display a list of all topics in the man pages by command names based on keyword search usage: apropos keyword apropos pstree apropos editor ————- bg/fg – background or foreground a job (command) – adding an ampersand ( & ) to the command runs the job in the background bg [options] [job] 1) start…


Modern Perl 5

From onyxneon.com Modern Perl by chromatic Perl 1.0 came out in 1987. In the decades since then, The language has gone from a simple tool for system administration somewhere between shell scripting and C programming (Perl 1) to a powerful, general purpose language steeped in a rich heritage (Perl 5) and a consistent, coherent, rethinking of…


dos deflate

(D)DoS Deflate is a lightweight bash shell script designed to assist in the process of blocking a denial of service attack. It utilizes the command below to create a list of IP addresses connected to the server, along with their total number of connections. It is one of the simplest and easiest to install solutions…


Converting MySQL database to Firebird – part1

From backwardcompatible.net I have a heavy-used website powered by LAMP stack (CentOS Linux, Apache 2, MySQL and PHP). It started on a shared hosting so I had to use MySQL. Year and a half later, I switched shared, virtual hosting and not run it on a dedicated server. I decided to try Firebird to see…


Delete last command from bash history

From thoughtsbyclayg.blogspot.com how to delete last command from bash history If you have ever typed something into a command prompt that you wished you hadn’t – you may find it useful to know that you can delete it from ~/.bash_history very easily. The command: history -d offset will delete the history entry at position offset….


socket bind() to port 25 for address (any IPv4) failed: Address already in use

socket bind() to port 25 for address (any IPv4) failed: Address already in use If you get this error message: socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (6 more tries) …. That means there is already a smtp program listening on Port 25….


Increase /tmp size

From gnode.net cPanel’s new securetmp script is handy to prevent users from executing malicious code in /tmp or /var/tmp but if your software is like a lot out there and doesn’t have any garbage collection, you’ll find your /tmp partition filling up quickly. By default, cPanel’s script uses a limit of 512MB, and for those…


Backup all cpanel accounts

UPDATE: The one-liner below still works as of 7/23/15 on CENTOS 5.8 x86_64 WHM 11.50.0 (build 27). Will be testing shortly on CENT7 To create all accounts backup on your server, execute following command for backup in `\ls /var/cpanel/users/`; do echo /scripts/pkgacct $backup; done Run it the first time to see what it is going…


Open Directory or file starting with a “-” (hyphen)

From linuxers.org How to open a Directory or a file starting with a “-“, hyphen Those of you who have not been in such a situation would never know how it feels when you are stuck opening/deleting a file or directory. The more you have been working on the shell, the more it sucks. When…


Nautilus Terminal

Nautilus Terminal is an integrated terminal for Nautilus What is new in latest version 0.3 * Fixes the bug with “infinity” bash fork (lp:635846) * Improve separation of property between nautilus’ windows * New translations Install Nautilus Terminal in ubuntu Open the terminal and run the following commands sudo add-apt-repository ppa:flozz/flozz sudo apt-get update sudo…