Hi Folks! In certain situations, you need to swap the variables in python scripts. So, let’s say a=5, and b=10. After swapping a=10 and b=5. Before Swapping:a=5b=10 After swapping:a=10b=5 Now I’ll show you few interesting methods to swap two variables…
Administrative tools
What is the difference between Tar and Gzip ? Details with example
I too had this doubt! what are the differences between “tar” and “zip” utilities in Linux. The answer is quit simple rather than the confusion. We all are very familiar about the word (extension) “.tar.gz“, it’s very common when we…
How to convert or concatenate integer with string variable in Python?
Convert int to str. Simple way to concatenate integer and string variables – Python. In some cases, you have to concatenate integer variables to string variables in your Python script. You can not do this by simply using the (+) sign. In…
How to replace a failed harddrive in a software RAID 1 array?
Is it possible to replace a faulty drive from RAID 1? What are the steps? Here I’m explaining the detailed steps in replacing a bad drive from software RAID 1 array. As you know RAID 1 means mirroring. Here I’ve…
What is Semaphore? Why it’s important for a Server Admin?
What is Semaphore? Well, we need a discussion on Semaphore concept under Linux as it plays major role in a Multi Processing System. Some time we need to review the current Semaphore status on the server and need to kill unwanted/unused…
MySQL tweaking – best practices and tips for SysAdmin
Why MySQL tweaking? We all need fast, reliable and secure environment for our online space. Almost all websites has its own databases to store its data. MySQL is one of the most widely using relational database service to manage user…
How to partition a hard drive using “parted” command?
Parted – A useful information! Recently I had to work on a “Parted” based server. Not always we’ll get chances to work on “parted” based servers. Hence I thought of documenting it. Parted is a command which helps you to…