<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Okonji Kevin</title>
    <description>The latest articles on DEV Community by Okonji Kevin (@okonji_kevin).</description>
    <link>https://dev.to/okonji_kevin</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3397799%2F315e0b21-763a-4fed-a78c-a5a6a7111dc4.jpg</url>
      <title>DEV Community: Okonji Kevin</title>
      <link>https://dev.to/okonji_kevin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/okonji_kevin"/>
    <language>en</language>
    <item>
      <title>The Strengths and Weaknesses of MS Excel in Predictive Analysis, and its role in Making Data-Driven Business decisions.</title>
      <dc:creator>Okonji Kevin</dc:creator>
      <pubDate>Sun, 10 Aug 2025 09:45:41 +0000</pubDate>
      <link>https://dev.to/okonji_kevin/the-strengths-and-weaknesses-of-ms-excel-in-predictive-analysis-and-its-role-in-making-data-driven-30ao</link>
      <guid>https://dev.to/okonji_kevin/the-strengths-and-weaknesses-of-ms-excel-in-predictive-analysis-and-its-role-in-making-data-driven-30ao</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;1.0 Introduction&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Microsoft Excel is a popular spreadsheet program developed by microsoft. Excel is designed primarily for creating, organizing, analyzing, and manipulating data in a tabular format known as a spreadsheet.&lt;/p&gt;

&lt;p&gt;It offers various features and tools that allow users to perform various tasks, including calculations, data analysis, graphing tools, pivot tables and more. Excel uses a grid format of cells organised in rows and columns, where users can enter data, formulas, and functions to perform calculations and automate tasks.&lt;/p&gt;

&lt;p&gt;Excel is widely used in different industries, businesses and educational institutions, and for personal purposes due to its versatility and ability to handle diverse data-related tasks. It's intuitive interface and powerful functionalities make it a go-to tool for tasks ranging from simple calculations to complex data analysis and financial modelling.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;2.0 Strengths of Excel&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Excel is a popular choice for data analysis due to its ease of use and learning, with a familiar interface and a variety of functions and features. It can handle large amounts of data, up to 1 million rows and 16,000 columns per worksheet, and can perform basic and advanced calculations, such as arithmetic, statistics, logic, and financial functions. Additionally, Excel can create and customize charts, graphs, tables, and pivot tables to visualize and summarize data, and can integrate with other Microsoft products, such as Word, PowerPoint, and Outlook, as well as import and export data from various sources and formats.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Versatility&lt;/strong&gt;: Excel allows users to perform various tasks like calculations, data analysis, charting, and more within a single platform.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ease of Use&lt;/strong&gt;: Its user-friendly interface makes it accessible to users with varying levels of expertise. Basic functions can be quickly learned and applied.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data Analysis Tools&lt;/strong&gt;: Excel provides powerful tools for data analysis, including formulas, functions, pivot tables, and charts, aiding in insightful data interpretation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Customization&lt;/strong&gt;: Users can customize Excel through macros, add-ins, and personalized functions to suit specific requirements, enhancing its functionality.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Compatibility&lt;/strong&gt;: Excel files (.xlsx) are widely supported across different platforms, ensuring easy sharing and collaboration.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Graphical Representation&lt;/strong&gt;: It offers a range of charting options, enabling users to represent data for better understanding and visual presentation.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;3.0 Weaknesses of Excel&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Excel has some limitations and drawbacks that can affect the quality and efficiency of data analysis. These cons include errors and inconsistencies when working with complex formulas, multiple worksheets, and manual data entry. Additionally, Excel can be slow and unstable when working with large and complex data sets, and may crash or freeze. Collaboration and sharing can also be difficult, as Excel files can be large, incompatible, or corrupted, and may require version control and security measures. &lt;/p&gt;

&lt;p&gt;Furthermore, Excel may be limited in functionality and flexibility, as it may not support some of the advanced data analysis techniques, such as machine learning, data mining, and web scraping. Lastly, Excel can be expensive and outdated, as it requires a license and regular updates, and may not keep up with the latest trends and innovations in data analysis.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Limited Data Handling&lt;/strong&gt;: Excel has limitations in handling large datasets efficiently, leading to performance issues and potential data loss or corruption.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prone to Errors&lt;/strong&gt;: Human errors, like incorrect formulas or data input, can occur, leading to inaccurate results, especially in complex spreadsheets.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Version Control and Collaboration&lt;/strong&gt;: Managing versions and collaborating on a single Excel file can be challenging, leading to confusion and potential data conflicts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lack of Security&lt;/strong&gt;: Excel files may lack robust security features, making them vulnerable to unauthorized access, data breaches, or accidental alterations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Complexity in Complex Task&lt;/strong&gt;s: While it's user-friendly for basic tasks, performing complex operations might require advanced knowledge of formulas, functions, and VBA programming.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Limited Automation&lt;/strong&gt;: While Excel supports automation through macros, it might not be as efficient as dedicated programming languages or software for extensive automation and complex tasks.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;4.0 Role of Excel in Making Data-Driven Business Decisions&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;In today’s fast-paced business environment, data is a valuable asset that drives strategic decision-making. However, raw data alone is not enough—organizations need efficient ways to analyze and visualize information.&lt;/p&gt;

&lt;p&gt;This is where Excel dashboards play a crucial role. By transforming complex datasets into clear, actionable insights, Excel dashboards empower businesses to make informed decisions that fuel growth.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;4.1 Why Excel Dashboards Matter&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Enhanced Data Visualization&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Excel dashboards allow businesses to convert raw numbers into visually appealing charts, graphs, and tables. This makes it easier for stakeholders to understand key performance indicators (KPIs) at a glance and identify trends that impact decision-making.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-Time Data Analysis&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;With dynamic formulas and automated updates, Excel dashboards provide real-time insights into business performance. This means decision-makers can access the latest data without manually updating spreadsheets, ensuring accuracy and efficiency.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Improved Decision-Making&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Having a well-structured Excel dashboard helps leaders make data-driven decisions faster. By highlighting critical metrics and eliminating guesswork, these dashboards facilitate proactive planning and strategic growth.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Customization and Flexibility&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Unlike other data visualization tools, Excel offers unmatched flexibility. Businesses can tailor dashboards to their specific needs, incorporating different data sources and customizing reports based on unique requirements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cost-Effective Solution&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Many organizations already use Microsoft Excel, making dashboards a cost-effective alternative to expensive business intelligence tools. With the right expertise, companies can leverage Excel’s powerful features to maximize efficiency without additional software investments.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;4.2 Building an Effective Excel Dashboard&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Creating a high-performing Excel dashboard requires careful planning and execution. Here are key steps to ensure success:&lt;br&gt;
• Define Objectives – Identify the purpose of the dashboard and the KPIs that matter most.&lt;br&gt;
• Gather and Organize Data – Ensure data is accurate, structured, and easily accessible.&lt;br&gt;
• Use Charts and Graphs Wisely – Choose the right visualization methods to make insights clear.&lt;br&gt;
• Implement Automation – Use formulas, pivot tables, and macros to streamline data updates.&lt;br&gt;
• Keep It Simple – Avoid clutter and ensure the dashboard is easy to navigate.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;4.3 Conclusion&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Excel dashboards are powerful tools that transform raw data into meaningful insights, enabling businesses to track performance, streamline decision-making, and drive growth. By leveraging Excel’s capabilities, companies can gain a competitive edge and make more informed, data-driven decisions.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Postgress Installation Guide for a Linux Server</title>
      <dc:creator>Okonji Kevin</dc:creator>
      <pubDate>Sun, 03 Aug 2025 07:15:26 +0000</pubDate>
      <link>https://dev.to/okonji_kevin/postgress-installation-guide-for-a-linux-server-3gma</link>
      <guid>https://dev.to/okonji_kevin/postgress-installation-guide-for-a-linux-server-3gma</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;1. Overview&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;PostgreSQL is a popular database system released under an open-source license. Its roots can be traced to the POSTGRES project, which dates back to 1986 at the University of California at Berkeley.&lt;/p&gt;

&lt;p&gt;In this tutorial, we’ll learn how to install and configure PostgreSQL on a Linux system.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;2. Installation&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;PostgreSQL is available in the repositories of most major Linux distributions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Debian and Debian-based distributions like Ubuntu&lt;/li&gt;
&lt;li&gt;Red Hat Linux and related distributions like Rocky, AlmaLinux, and Fedora&lt;/li&gt;
&lt;li&gt;SUSE&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Installing the platform using a package manager should also perform all the necessary initialization tasks&lt;/strong&gt;. As a result, this is the recommended method of installing PostgreSQL.&lt;/p&gt;

&lt;p&gt;However, the repositories of our system may not contain all versions of the package. We can find missing versions in the PostgreSQL project’s repository.&lt;/p&gt;

&lt;p&gt;On the other hand, we can build and install the server from its source code using the autoconf tool. However, this type of installation is usually better for platform developers.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;3. Installation via Package Manager&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Since it’s often the faster and more convenient method, we first discuss installing PostgreSQL via the local package manager.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3.1. Using apt&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;We can install PostgreSQL on Ubuntu using &lt;em&gt;apt&lt;/em&gt;:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo apt-get install postgresql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As we can see, the name of the package is &lt;em&gt;postgresql&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3.2. Using &lt;em&gt;dnf _or _yum&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Likewise, &lt;strong&gt;we can install PostgreSQL in AlmaLinux 9.3 and similar with &lt;em&gt;dnf&lt;/em&gt;:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ dnf install postgresql-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Otherwise, we can use &lt;em&gt;yum&lt;/em&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ yum install postgresql-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;In contrast to the apt installation, the database storage area isn’t initialized&lt;/strong&gt;. So, we may need to perform this task using the &lt;em&gt;postgresql-setup&lt;/em&gt; shell script:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ postgresql-setup --initdb
* Initializing database in '/var/lib/pgsql/data'
* Initialized, logs are in /var/lib/pgsql/initdb_postgresql.log
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At this point, we should have PostgreSQL installed and configured for initial use.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;4. The &lt;em&gt;psql&lt;/em&gt; Tool&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The &lt;em&gt;psql&lt;/em&gt; tool is a command-line client for PostgreSQL&lt;/strong&gt;. The &lt;em&gt;postgres&lt;/em&gt; package also includes &lt;em&gt;psql&lt;/em&gt;. We can use it to enter SQL statements and perform administration tasks.&lt;/p&gt;

&lt;p&gt;In particular, the server’s host and port, a user, and a database are necessary to connect. However, we may skip the host and port and connect to the default server. In the same way, we can omit the username and use a system user with &lt;em&gt;sudo -s:&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo -u postgres psql -d postgres
psql (14.10 (Ubuntu 14.10-0 ubuntu0.22.04.1))
Type "help" for help.
postgres=#
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, &lt;strong&gt;we connected to the postgres database using the postgres system user&lt;/strong&gt;. Specifically, we set the connection’s database with the &lt;em&gt;-d&lt;/em&gt; option. The postgres database is the default database for user connections that exists with each installation.&lt;/p&gt;

&lt;p&gt;At this point, we can enter SQL statements to create database objects and handle data.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;5. The PostgreSQL Service&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The installation process creates a service named &lt;em&gt;postgresql&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;We can use this service to start and stop the server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ systemctl status postgresql
● postgresql.service - PostgreSQL RDBMS
     Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
     Active: active (exited) since Tue 2024-01-23 15:17:08 EET; 4min 56s ago
    Process: 5085 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
   Main PID: 5085 (code=exited, status=0/SUCCESS)
        CPU: 1ms
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this example, we used the _status _subcommand of _systemctl _to verify that the _postgresql _service exists and is active and enabled.&lt;/p&gt;

&lt;p&gt;Notably, in systems related to Red Hat Linux, the service is neither active nor enabled by default. As a result, we may need to enable and start the service:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ systemctl enable postgresql
Created symlink ...
$ systemctl start postgresql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Thus, we have an active PostgreSQL service that starts with the system.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;6. The PostgreSQL User Account&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Notably, &lt;strong&gt;the installation creates a new user account named &lt;em&gt;postgres&lt;/em&gt;:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo passwd -S postgres
postgres L 01/23/2024 0 99999 7 -1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Indeed, the &lt;em&gt;passwd _command found a user account named _postgres&lt;/em&gt;. For security reasons, the account is locked.&lt;/p&gt;

&lt;p&gt;The PostgreSQL service runs under the _postgres _user account. As a result, this is the user that owns the data files, instead of the current terminal user. So, &lt;strong&gt;data files should be protected if the server is hacked.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;7. The PostgreSQL Configuration&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;We can find the runtime configuration parameters of our installation using the &lt;em&gt;show all&lt;/em&gt; command within &lt;em&gt;psql&lt;/em&gt;:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;postgres=# show all;
        name                  |                 setting                 |                                 description                           
----------------------------------------+-------------------------------+-----------------------------------------------------------------------
 allow_in_place_tablespaces             | off                           | Allows tablespaces directly inside pg_tblspc, for testing.
 allow_system_table_mods                | off                           | Allows modifications of the structure of system tables.
 application_name                       | psql                          | Sets the application name to be reported in statistics and logs.
...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Indeed, we can see a table with all the parameters. This table has three columns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;name of the option&lt;/li&gt;
&lt;li&gt;value&lt;/li&gt;
&lt;li&gt;description of the option&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Another key point is that &lt;strong&gt;the configuration is stored in the &lt;em&gt;postgresql.conf&lt;/em&gt; file&lt;/strong&gt;. The &lt;em&gt;config_file&lt;/em&gt; parameter has the path to this file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;show config_file; 
    config_file
-----------------------------------------
 /etc/postgresql/14/main/postgresql.conf
(1 row)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, we can see that the file is under the &lt;em&gt;/etc&lt;/em&gt; directory.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;8. Updating the Configuration Parameters&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;We can edit the postgres.conf file to change the configuration parameters&lt;/strong&gt;. For our changes to take effect, we may have to restart the server or reload its configuration. This depends on the parameter that we change.&lt;/p&gt;

&lt;p&gt;For example, let’s change the &lt;em&gt;log_min_messages&lt;/em&gt; parameter that keeps the logging level of the server. For that,** we edit the &lt;em&gt;postgresql.conf&lt;/em&gt; file, and set &lt;em&gt;log_min_messages=debug5&lt;/em&gt; from the default value of warning:**&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ cat postgresql.conf | grep log_min_messages
log_min_messages = debug5               # values in order of decreasing detail:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, a _reload _applies the new value:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo systemctl reload postgresql.service
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, let’s use _psql _to view the parameter we changed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;postgres=# show log_min_messages;
 log_min_messages
------------------
 debug5
(1 row)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Indeed, we can see the correct value.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;9. The Database Storage Area&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The database storage area on disk or data directory is where databases are stored&lt;/strong&gt;. The exact path to the data directory is stored in the &lt;em&gt;data_directory&lt;/em&gt; parameter.&lt;/p&gt;

&lt;p&gt;Notably, we can find the path using &lt;em&gt;psql _and the _show&lt;/em&gt; command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;postgres=# show data_directory;
       data_directory
-----------------------------
 /var/lib/postgresql/14/main
(1 row)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Indeed, we can see the path to the data directory.&lt;/p&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  10. User Configuration
&lt;/h2&gt;

&lt;p&gt;**&lt;br&gt;
&lt;strong&gt;We can create a new database user with the _createuser _program.&lt;/strong&gt; Conversely, we can drop a user with the _dropuser _program.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;10.1. Creating a New User&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Let’s create a new user with password authentication enabled:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo -u postgres createuser -P testuser
Enter password for new role:
Enter it again:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this example, we invoked &lt;em&gt;createuser&lt;/em&gt; to create a new database user named testuser. The &lt;em&gt;-P&lt;/em&gt; option enables password authentication and prompts us to enter a password.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;10.2. Log in via New User&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Next, *&lt;em&gt;we can use testuser to log in via the _psql _program:&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ psql -h localhost -p 5432 -U testuser -d postgres
Password for user testuser:
psql (14.10 (Ubuntu 14.10-0ubuntu0.22.04.1))
SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits: 256, compression: off)
Type "help" for help.
postgres=&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Indeed, we connected to the &lt;em&gt;postgres _database. Besides the _-d&lt;/em&gt; option that denotes the database name, we used three other options:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;-h&lt;/em&gt;: hostname of the server&lt;br&gt;
&lt;em&gt;-p&lt;/em&gt;: port of the server&lt;br&gt;
&lt;em&gt;-U&lt;/em&gt;: database username&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;10.3. Dropping a User&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Finally, &lt;strong&gt;we can drop a user with the _dropuser _program:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo -u postgres dropuser testuser
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Indeed, we dropped &lt;em&gt;testuser&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  11. Conclusion
&lt;/h2&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;p&gt;In this article, we learned how to install and configure the PostgreSQL database server. Specifically, we installed PostgreSQL using &lt;em&gt;apt, dnf&lt;/em&gt;, and &lt;em&gt;yum&lt;/em&gt;. Then, we looked at the _postgresql _service and the _postgres _user. Finally, we saw how to configure the server and create new users.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
