by Anjani Phuyal | Aug 22, 2016 | AWS, Linux
Generate a Private Key openssl genrsa -des3 -out server.key 1024 Step 2: Generate a CSR (Certificate Signing Request) openssl req -new -key server.key -out server.csr Step 3: Remove Passphrase from Key cp server.key server.key.org openssl rsa -in server.key.org -out...
by Anjani Phuyal | Jul 8, 2016 | Linux
A stopped job is one that has been temporarily put into the background and is no longer running, but is still using resources such (i.e. system memory). Because that job is not attached to the current terminal, it cannot produce output and is not...
by Anjani Phuyal | Aug 24, 2015 | Linux
How to search top 10 biggest Files and Directories On a Linux ? du -a / | sort -n -r | head -n 10 sample output: 13114096 / 10202596 /opt 10202588 /opt/hybris 7103152 /opt/hybris/data 6512664 /opt/hybris/data/acceleratorservices 6498916...
by Anjani Phuyal | Jan 26, 2015 | Linux, ubuntu
Install following sudo apt-get install software-properties-common python-software-properties ref: http://lifeonubuntu.com/ubuntu-missing-add-apt-repository-command/
by Anjani Phuyal | Aug 7, 2014 | java, Linux
Get the PID of Java ps -el | grep java top | grep java jstack -F <your-pid> >dump.log sudo jstack -F `pidof java` > /tmp/`hostname`_threaddump_`date +”%Y%m%d_%H%M”`.txt Result: hybris@aws-hybris5prd-ecom-app02:~$ jstack -F 31987 >...
by Anjani Phuyal | Aug 5, 2014 | Linux, ubuntu
Install nscd using the following command if not yet sudo apt-get install nscd Flush DNS Cache in Ubuntu by restarting the nscd sudo /etc/init.d/nscd restart