VIKHOST Tech Blog
Useful Technical Articles, Notes and Instructions.
Generate random password on Linux using /dev/urandom

Generate random password on Linux using /dev/urandom

Linux – generate random password using /dev/urandom
Today we will look at, in our opinion, one of the most convenient ways to generate a password on your Linux server using /dev/urandom.

What is /dev/urandom in Linux?

First, let’s look at what urandom is. The urandom command is used to generate a random password, including one-time and long-term passwords. /dev/urandom uses an entropy pool it will generate data using SHA, …

/ Linux
How to Clear BASH History in Linux, Centos, Debian and Ubuntu

How to Clear BASH History in Linux, Centos, Debian and Ubuntu

Clear bash history command line in Linux

How to check your Bash History
To start working with the Linux history commands, you will need command history. When you launch it, you will be shown the entire history of commands in the terminal. # history
If you want to see the last 5 commands then use the following command # history 5

How to clear Linux command history
If you don’t …

/ Linux
login-history

How To Clear or Remove Last Logins History in Linux

Clear or Remove Linux Logins History Information

Do you want to view or delete the last log on your Linux server? Then this article is for you. In it we will try to tell in detail and show the commands that you need to use, as well as check the result of your actions.
You need to know that there are three standard commands for Linux systems that show information …

/ Linux
How to Find Large Files in Linux

How to Find Large Files in Linux

Find Largest Files on Linux
The search for large files is especially relevant when the disk runs out of space and you have to look for files to delete. The best way to find the largest files in a Linux server is to use the command line. You can easily get a list of the largest files using a combination of several simple commands.
Find Large Files on Linux or …

/ Linux
Create a New User and Grant Permissions in MySQL

Create a New User and Grant Permissions in MySQL

Create New User and Grant Permissions to MySQL Database Server
In this article, we will explain how to create a new user in MySQL, and grant permissions to that user in MySQL. Creating a new user in MySQL database and granting permissions is an easy task if you follow this tutorial carefully.

1. Log in to MySQL
To log in to MySQL system uses the following command:
mysql -u root …

/ MySQL
MySQL Server-Enable Remote Access

MySQL Server-Enable Remote Access

Enable remote access to MySQL database server If you try to connect to server mysql from remote server, you will get an error. Initially, mysql uses the standard localhost connection (127.0.0.1). It needs to be fixed this in the configuration file my.cnf (usually in Linux the file is located /etc/mysql/my.cnf) In my.cnf we need to find line: bind-address = 127.0.0.1 It needs to be changed to: bind-address = 0.0.0.0 Now …

/ MySQL

Loading...