Technical Solution
|
1
min read
I assume most of us are familiar with creating tar, tar.gz and tar.bz2 files. But do you know how to learn what is inside that tar file without extracting it? If your answer is "No" then you have come to the right place.
The following commands can be used to list the contents of a tar, tar.gz, tar.bz2 files. These commands becomes handy when you have multiple tar files and if you are searching for a particular file or folder.
To list the contents of a tar file :
tar -tvf filename.tar To list the contents of a tar.gz file :
Networking
|
2
min read
As you have configured the apt-cacher-ng server, Now you have to change the directory where the packages will be downloaded. This is to ensure that you will provide a directory which has large space to store files or packages. To change the current directory to a new directory you have to the following steps.
To change the path you have to edit the following configuration file
Technical Solution
|
2
min read
On certain servers, there are chances of our IP addresses getting blocked when we accidentally enter the wrong password multiple times or when we unintentionally try to ssh via the wrong port multiple times. The IP will be blocked for a certain period of time. If you have faced the same issue then read on to know how to block blacklisted IP addresses on a WHM based GNU/Linux server.
Technical Solution
|
2
min read
Here is a script to help you find empty directories located under a specified parent-folder. The file folders.txt contains the list of folders that are to be passed as input to the script. The script will now check all the folders mentioned in the file folders.txt, and give the list of folders that are empty. The output can either be seen at the terminal or it can be passed to a file via a redirector.
Here is the code for the same:
Technical Solution
|
2
min read
This is a script to create a particular directory under all subdirectories in a parent directory. Consider the case when a parent directory consists of more than 100 folders and you want create a new folder under all these directories, with the same name. Doing this manually would be a mess. This script would help you do this in no time.
These are the steps for executing the script:
First, add the exact path where the parent directory is present, and the name of the folder that is to be created.
Technical Solution
|
2
min read
The function of the script is to rename a specific-directory present under all sub-directories of a specified parent folder. Consider, you have a particular folder under all sub-directories of a folder and you want to rename all of those occurrences. Doing it manually would take much time. Here is a script to make it easy for you.
The script takes the following inputs:
'path' is the absolute path of the parent folder, and
'foldername.txt' is a text file which contains the names of the subdirectories under each of which the specific directory has to be renamed.
Drupal Technical
|
3
min read
Before we start counting the steps for troubleshooting, the first thing we have to do is, arrange networking components in a structured and systematic order. This will help us define the problem correctly and give us a clear idea about issues that happen regularly.
The few steps that are to be followed are:
Technical Solution
|
3
min read
The main purpose of a domain-name is to make the website simpler to access. It is easier for users to remember domain names rather than having to remember IP addresses of sites. But do you know that it would be quite useful to remember IPs when the domain name has expired? How would you access a site whose domain name has expired? Most people have no idea about this. This article is here to help.
Drupal Technical
|
2
min read
If you own a website then there is a good chance that you are using cPanel. cPanel provides an graphical user interface to manage a Unix based web hosting account for everyone involved in it. If you want to know how to create a new cPanel account in WHM then continue reading.
Networking
|
2
min read
Most web developers & system administrators have to do SSH logins to WHM based servers to make the necessary changes there. The default port used for ssh logins is port 22. However there might be unusual circumstances where port 22 is not the default port. In such a scenario we need to identify the default ssh-port used by the server. If you are facing a similar situation then read on to know how to find out the current port being used by SSH on a WHM based server.