Just a short command to obtain user name, if you just know uid (may be useful if you are investigating logs that don’t include usernames). Let’s try to search for username with uid=0:
If you need to add composer to your server, there are just 2 command to input: And then That’s it! Now you can run composer from command line.
This error usually appears after fresh csf installation. In my sample it’s on a Directadmin Server. Here is the warning message that was on the top of panel: In order to resolve this issue, you need just a single command: This will install all the missing libraries. In my sample it was like this:
Very often when you try co compile anything from sources, you are getting error messages about any files, that are not found , but they are needed to continue with your software setup. How to determine, which package you need to install in order to resolve this dependency? Pretty simple – there is one command that will help… Read More »
Two years ago I have written a short guide on the same subject – here it is. Since yum install git still doesn’t allow us to install git 2, let me share the fastest way to get git up and running on your server. First of all, let’s download the most recent version of git here. Most recent… Read More »
If you ever made backups from command line, you’d probably wanted to do this on a regular basis, including date and time of your backup (e.g. to keep backups for a week or so). Here is a simple command, that will allow you to do this: You can specify your own format by adding or removing date parameters.… Read More »
It’s a strange thing that such a popular software is not yet included into Directadmin custombuild, but you are always welcome to install it by yourself. Let me start this brief tutorial about git installation. If you need a quick solution, you can use yum: yum install git But this will allow you to install version 1.7, that… Read More »
Sometimes when you need to install something that interacts with libz, you might get the following message (I have faced it while installing git): Solution is simple – most probably you already have a library with right version, just the symbolic link to it is wrong. First of all, find libz.so version you are using: You should see… Read More »
Sometimes when you need to list a folder via FTP with huge number of files, you might see the following message: So you will only get first 10000 files listed. If you need more, you need to change a setting in your init.d section. This solution is provided for PureFTPd FTP server, where this parameter can be set… Read More »
Let’s say you want to rename all files you have in a folder from .html to .php. There is a simple way to do this: rename .html .php *.html Just one line – no need for creating any shell scripts with loops.