How to change the color of your BASH prompt You can change the color of your BASH prompt to green with this command: export PS1="\e[0;32m[\[email protected]\h \W]\$ \e[m" It will change the colour of bash temporarily. To make it permanent then add code in bash_profile page. vi ~/.bash_profile and paste above code save the file and you ...
Month: May 2017
Amazon S3 bucket commands
1. Delete an S3 bucket and all its contents with just one command Sometimes you may end up with a bucket full of hundreds or thousands of files that you no longer need. If you have ever had to delete a substantial number of items in S3, you know that this can be a little time ...
How to extend disk space in windows 2012
How to extend disk space in windows 2012 Login to windows. Click on Start run and type cmd. In windows command prompt. run diskpart.exe DISKPART prompt will come. diskpart >list volume Above command will show list of volumes. Select volume volume number It will select the volume which you want to extend. extend filesystem It ...
dd command to migrate VPS on linux platform
dd command to migrate VPS on linux platform. First create new vps with same configuration on another node. It doesn't matter new vps is having os or not or you can choose any OS. Once same configuration VPS setup done then use below command to migrate VPS. dd if=/dev/guestos/kvm2351_img | ssh 10.10.10.10 "dd of=/dev/guestos/kvm2520_img" Once migration is ...