General

How to Find Server Public IP Address in Linux Terminal

root@test:/var/log/nginx# wget -qO – icanhazip.comwww.xxx.yyy.zzzroot@test:/var/log/nginx# wget -qO- http://ipecho.net/plain | xargs echowww.xxx.yyy.zzzroot@test:/var/log/nginx# wget -qO – icanhazip.comwww.xxx.yyy.zzzroot@test:/var/log/nginx# curl icanhazip.comwww.xxx.yyy.zzzroot@test:/var/log/nginx#

How to Find Server Public IP Address in Linux Terminal Read More »

sed to play with data or parsing your text

To select all the lines starting from STARTING_PATTERN up to  blank line ^$ and then delete those lines. # sed ‘/STARTING_PATTERN/,/^$/d’ filename To edit files in place, use -i option. # sed -i ‘/STARTING_PATTER/,/^$/d’ filename Insert multiple lines into a file after specified pattern. # sed ‘/cdef/r add.txt’ input.txt # sed ‘/cdef/r add.txt’ input.txt input.txt:abcdaccdcdeflineweb

sed to play with data or parsing your text Read More »

How to configure Proxy Settings for the Unix / Linux Console

You can use the following methods to configure your console to use a proxy server so that console based programs like wget could get connect to the internet through the proxy. 1 – Set the environment variable # export http_proxy=http://DOMAIN\USERNAME:PASSWORD@SERVER:PORT/ # export ftp_proxy=http://DOMAIN\USERNAME:PASSWORD@SERVER:PORT/ In the above configuration you can ommit the DOMAIN\USERNAME:PASSWORD@ part if you

How to configure Proxy Settings for the Unix / Linux Console Read More »

unzip a bunch of files linux

  bash-3.2# ls *.zip 118666-47.zip  120830-06.zip  138852-01.zip  142394-01.zip  147217-02.zip 118777-16.zip  120849-04.zip  139520-02.zip  142933-05.zip  148027-03.zip 119081-25.zip  124204-04.zip  142240-01.zip  143506-06.zip 119963-24.zip  126425-01.zip  142251-02.zip  146470-08.zip bash-3.2# bash-3.2# Problem : bash-3.2# unzip *.zip Archive:  118666-47.zip caution: filename not matched:  118777-16.zip caution: filename not matched:  119081-25.zip caution: filename not matched:  119963-24.zip caution: filename not matched:  120830-06.zip caution: filename not matched: 

unzip a bunch of files linux Read More »

Delete Files Older Than x Days on Linux / Unix

The find utility on linux allows you to pass in a bunch of interesting arguments, including one to execute another command on each file. We’ll use this in order to figure out what files are older than a certain number of days, and then use the rm command to delete them. Command Syntax find /path/to/files* -mtime

Delete Files Older Than x Days on Linux / Unix Read More »

Operating System Tuning for Oracle Database

This chapter describes how to tune Oracle Database. It contains the following sections: Importance of Tuning Operating System Tools Tuning Memory Management Tuning Disk I/O Monitoring Disk Performance System Global Area Tuning the Operating System Buffer Cache 1.1 Importance of Tuning Oracle Database is a highly optimizable software product. Frequent tuning optimizes system performance and

Operating System Tuning for Oracle Database Read More »

An appropriate representation of the requested resource /wp-admin/options-permalink.php could not be found on this server.

Not Acceptable An appropriate representation of the requested resource /wp/wp-admin/options-permalink.php could not be found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. I was getting below error, I believe it is to do with mod_security. I have tested this by putting below

An appropriate representation of the requested resource /wp-admin/options-permalink.php could not be found on this server. Read More »

Unix Disabling Daemons / services from inetd.conf

Tune your system more by disabling all unwanted and unused daemons from running on the system. This can be done by  editing the /etc/inetd.conf file and the rc files or directories. Modify the /etc/inetd.conf file and disable unnecessary daemons running on the system. # vi /etc/inetd.conf # # Configuration file for inetd(1M). See inetd.conf(4). #

Unix Disabling Daemons / services from inetd.conf Read More »

Scroll to Top