Posted by yolau
In this article I will be explaining how to backup the MBR record of a hard-drive.
The MBR record contains the partition table and bootloader.
Having a backup of the MBR is useful in case you want to copy data from an older drive to a new one or in case you want to restore data from [...]
Posted by yolau
What is the screen command?
First of all I will start by telling you what you can do using the “screen” command.
Many times as a linux sysadmin you will need to run multiple commands at once. You are probably doing this by opening multiple ssh sessions but there is a better way to do it !
Also [...]
Posted by yolau
This article will tell you how you can make a file or folder undeletable (immutable) even for root.
This is useful if you have an important file that you don’t want to delete by accident or if you are investigating some user’s files and you don’t want someone deleting the “evidence” while you investigate.
The command works [...]
Posted by yolau
Unix/Linux “find” command mini-tutorial
The find command is used to locate files on a Unix or Linux system. find will search any set of directories you specify for files that match the supplied search criteria. You can search for files by name, owner, group, type, permissions, date, and other criteria. The search [...]
Posted by yolau
From time to time you will get hanged process or you are unsure of what a process is doing at that moment.
You can trace what a process is doing by running:
strace -p PID
Where PID is the process ID. Whis will show you what that process is doing in real time.
This is usefull for detecting exploits [...]
Posted by yolau
wget is one of the largest threats for your server security. A single abuser that gains access to wget can download and run any script that he wants, totally compromising your server.
It is highly recommended that you allow only root to use wget and you restrict all other users from it.
Login to your server as [...]
Posted by yolau
Although you can do a database import and/or export from phpMyAdmin there is a size limitation (defined in my.cnf max_allowed_packet) when you do an import, so the only solution is to import it from shell.
This article will show you how simple it is to do it.
Importing a mysql database
Login to your server as root or [...]
Posted by yolau
I’ve been asked this several times so I hope this little article will help many people.
The question is: how do I determine the connection speed negotiated with the switch?
Many ask this because they want to be sure that they are getting what they pay for.
Please note that this is will NOT determine your server max [...]