fdisk command in Linux with examples

fdisk also known as format disk is a dialog-driven command in Linux used for creating and manipulating disk partition table. It is used for the view, create, delete, change, resize, copy and move partitions on a hard drive using the dialog-driven interface.
fdisk allows you to create a maximum of four primary partitions and the number of logical partition depends on the size of the hard disk you are using. It allows the user:

-To Create space for new partitions.
-Organizing space for new drives.
-Re-organizing old drives.
-Copying or Moving data to new disks(partitions).

Synopsis:

fdsik [options] device

or

fdisk -l [device…]

[mai mult...]

How To Create a Sudo User on Ubuntu

The sudo command provides a mechanism for granting administrator privileges, ordinarily only available to the root user, to normal users. This guide will show you the easiest way to create a new user with sudo access on Ubuntu, without having to modify your server’s sudoers file. If you want to configure sudo for an existing user, simply skip to step 3.

[mai mult...]

How to Install phpMyAdmin on CentOS 7

When you install phpMyAdmin on CentOS 7, you get to enjoy a new, intuitive user interface through your browser, instead of using the command line. Through this web interface, you can perform all the typical operations like managing databases, tables, columns, relations, users etc, while at the same being able to execute any SQL statement directly.

To increase its adoption rate, phpMyAdmin is translated into 72 different languages and supports both RTL (right-to-left) and LTR (left-to-right)  languages.

Some other phpMyAdmin features:

  • create, browse, edit, and drop databases, tables, views, columns, and indexes
  • display multiple result sets through stored procedures or queries
  • create, copy, drop, rename and alter databases, tables, columns and indexes
  • maintenance server, databases and tables, with proposals on server configuration
  • load text files into tables
[mai mult...]

How to install Let’s Encrypt on CentOS 7 with Apache

Today, we will show you, How to install Let’s Encrypt on CentOS 7 with Apache. Let’s Encrypt is a completely free and automated, new certificate authority developed by the Internet Security Research Group (ISRG) and recognized by all major browsers. They make it a breeze to set up TLS certificates for your web server. And for free! Let’s Encrypt is supported by major players like Mozilla, Akamai, Cisco, the EFF and managed by the Linux Foundation. Let’s Encrypt provides free, automatic and secure certificates. The website owners can easily obtain security certificates within minutes, enabling a safer web experience for all.In today’s tutorial we are going to learn how to install a Let’s Encrypt SSL certificate on CentOS 7 with Apache, and configure the certbot for automatic renewal.

[mai mult...]