×


Blog


List Users in Linux - Best method

This article covers how to list users in Linux system and also differentiate difference between normal user and system user. Linux OS is unique because of its multi-user characteristic allowing multiple users on one system, at the same time. However, tracking all users is essential. The /etc/passwd file contains one line for each Linux user account, with seven fields delimited by colons. This is a text file. You can easily list users under Linux using the cat command or other commands such as grep command / egrep command and more. With this same approach, you can use the Linux commands to list all users on all Linux operating system, including Ubuntu, Debian, RHEL, Arch, Fedora, CentOS, and other distros.


To list all users on Linux, use the cat command as follows:

$ cat /etc/passwd


Check CentOS Version - Using Different methods ?

This article covers how to get CentOS version using different methods. There are several ways on how to check what version of CentOS is running on your system. The simplest way to check for the CentOS version number is to execute the cat /etc/centos-release command. Identifying the accurate CentOS version may be required to help you or your support team to troubleshoot your CentOS system.


Different commands to check CentOS version:

  • $ rpm -q centos-release - CentOS version valid for CentOS 6 and higher. Causes to reveal major, minor and asynchronous CentOS version.
  • $ lsb_release -d - Requires redhat-lsb package to be installed before execution.
  • $ rpm -E %{rhel} - RPM macro to reveal a major CentOS version.
  • $ rpm --eval %{centos_ver} - RPM macro to display a major version of CentOS.
  • $ cat /etc/centos-release - Linux cat command to output content of the /etc/centos-release .to query CentOS version. Works with CentOS 6 and higher.


Install Java on Debian 9 System - Step by Step Process ?

This article covers how to install and manage multiple Java versions on Debian 9 system. Also we described how to set default Java version and also how to uninstall Java once it is no longer needed.

Basically, the programming language Java and the Java virtual machine or JVM are used extensively and required for many kinds of software.


To install Default JRE/JDK Java on Debian.

1. First, update the package index.

$ sudo apt-get update

2. Next, install Java. Specifically, this command will install the Java Runtime Environment (JRE).

$ sudo apt-get install default-jre

When prompted, type y for yes to confirm the installation.

3. You can install the JDK with the following command:

$ sudo apt-get install default-jdk


Most Useful Nginx Commands in Linux System

This article covers most used Nginx commands. You can learn more about Nginx command line at Nginx documentation.

Nginx is one of the most popular web servers in the world. So whether you're currently using it or not, chances are, if you're a web developer chances are you'll likely come in contact with it at some point. 

Also, Nginx is well known for its simple configuration, and low resource consumption due to its high performance, it is being used to power several high-traffic sites on the web, such as GitHub, SoundCloud, Dropbox, Netflix, WordPress and many others.


To start the Nginx service, run the following command. Note that this process may fail if the configuration syntax is not OK:

$ sudo systemctl start nginx #systemd

OR

$ sudo service nginx start   #sysvinit


To enable Nginx auto-start at boot time, run the following command:

$ sudo systemctl enable nginx #systemd

OR

$ sudo service nginx enable   #sysv init


How to Show Nginx Command Help ?

To get an easy reference guide of all Nginx commands and options, use following command.

$ systemctl -h nginx


Important Cat Command Examples in Linux

This article covers how to use the Linux cat command. Cat(concatenate) command is very frequently used in Linux. It reads data from the file and gives their content as output. It helps us to create, view, concatenate files.

If you want to add a bit of new text to an existing text file, you use the cat command to do it directly from the command line (instead of opening it in a text editor).

Type the cat command followed by the double output redirection symbol ( >> ) and the name of the file you want to add text to.


Install Kdenlive on Linux Mint 20 - Step by Step Process ?

This article covers how to Install Kdenlive video editor on a Linux Mint 20 system. Now you can use it very conveniently for producing professional quality edited videos. Kdenlive is a free and opensource video editing software, it is built on Qt and  KDE Framework libraries, and MLT Framework is used for video processing in Kdenlive and this is part of the official KDE project.


How to Install Kdenlive 20.04 in Ubuntu 20.04 / LinuxMint /Elementary OS ?

1. Add the official PPA

$ sudo add-apt-repository ppa:kdenlive/kdenlive-stable

2. Update the apt repository

$ sudo apt update

3. Install Kdenlive 20.04

$ sudo apt install kdenlive