×


Linux Resources


Steps to save a file in Linux command line

This article will guide you on how to use the #cat #command to display or create a new file on #Linux. To save a file, you must first be in Command mode. Press Esc to enter Command mode, and then type :wq to write and quit the file. The other, quicker option is to use the keyboard shortcut ZZ to write and quit.


Extend file system after resizing disk volume in Linux

This article will guide you on the different #command line options to extend #disk space storage in #Linux thereby allowing you to add #storage capacity to your #VM. If your filesystem has the resize capability, that capability is what you use. 1. Check if disk is available: #dmesg | grep sdb. 2. Check if disk is mounted: df -h | grep sdb. 3. Ensure there are no other partitions on disk: fdisk -l /dev/sdb. 4. Verify the #disk: fsck /dev/sdb. 5. Resize the #filesystem: resize2fs /dev/sdb.


How to Install sudo on OpenSUSE to execute commands as root ?

This article will guide you on how to use the root user on #OpenSUSE Linux and the sudo command.To use sudo, you need to install and configure sudo on the OpenSUSE #Linux server. The #sudo command allows you to run #programs with the security privileges of another user (by default, as the #superuser). Using the #sudoers file, system administrators can give certain users or groups access to some or all commands without those users having to know the root password.


Install and Configure VNC on Ubuntu 20.04 - Steps to do it.

This article will guide you on the steps to set up a secured VNC server up and running on your Ubuntu 20.04 server. This will help you to manage your files, software, and settings with a user-friendly graphical interface, and you will be able to run graphical software like web browsers remotely.


How to open ssh 22 / TCP port using ufw on Ubuntu/Debian Linux?

This tutorial will guide you on the steps to open ssh port using ufw on Ubuntu or Debian Linux server.


Steps to Install and Configure Nginx on Ubuntu Linux 18.04 LTS?

This tutorial will guide you on how to get Nginx server installed and configured on an Ubuntu Linux 18.04 LTS server.

Nginx is one of the most popular web servers in the world and is responsible for hosting some of the largest and highest-traffic sites on the internet. It is more resource-friendly than Apache in most cases and can be used as a web server or reverse proxy.


Nginx Configuration Files Structure

  • All configuration files are located in the /etc/nginx/ directory.
  • Nginx main configuration file is at /etc/nginx/nginx.conf.
  • It's best practice to create a separate configuration file of each domain for better maintainability.
  • New server blocks (configuration file) of each domain should be stored in /etc/nginx/sites-availabledirectory. You need to make symlink of these configuration files at /etc/nginx/sites-enabled to take in used by Nginx.
  • Activating server blocks is done by creating a symlink (a pointer) from the configuration file sites in a /etc/nginx/sites-enabled directory to the sites-enabled directory.
  • The default server web root directory is /var/www/html
  • It's best practice to to follow standard naming convention. Nginx server block files name should as domain name and must end with .conf extension. For example, your domain name is example.com then server block file name should example.com.conf
  • Nginx log files (access.log and error.log) are located in the /var/log/nginx/ directory. It's also recommended to have a different access and error log files for each server block.

Search by typing a one letter Word Term Here