×


Linux Resources


Truncate Command in Linux with examples

This article covers how to use the truncate command in Linux. The safest method to empty a log file in Linux is by using the truncate command. Truncate command is used to shrink or extend the size of each FILE to the specified size.


Uniq Command in Linux with examples

This article covers how to use the uniq command in Linux. In fact, the uniq command reports or filters out repeated lines in a file. uniq filters out adjacent, matching lines from input file INPUT, writing the filtered data to output file OUTPUT. A matching line is "adjacent" if it's immediately before or after another matching line.



Related Linux commands:

  • comm — Compare two sorted files line by line.
  • pack — Compress files using a Huffman algorithm.
  • pcat — Print the uncompressed contents of a compressed file.
  • sort — Sort the lines in a text file.
  • uncompress — Extract files from compressed archives.


Configure and Use Git on Debian - Best Procedure ?

This article covers steps to install and configure Git on a Debian 10 server. As one of the most popular version control systems currently available, Git is a common choice among open-source and other collaborative software projects. Many project's files are maintained in a Git repository, and sites like GitHub, GitLab, and Bitbucket help to facilitate software development project sharing and collaboration.


How to install Git on Debian / Ubuntu Linux System ?

1. Use the apt package management tools to update your local package index and then download and install Git:

$ sudo apt update
$ sudo apt install git

2. You can confirm that you have installed Git correctly by running the following command:

$ git --version


Search Your Files or Directories With Find Command in Linux Mint

This article covers how you can use the Find command to search and perform different operations efficiently. In fact, the Linux find command is a powerful tool that enables system administrators to locate and manage files and directories based on a wide range of search criteria. It can find directories and files by their name, their type, or extension, size, permissions, etc.


Check CPU is 64/32 Bit in Linux System

This article covers different ways to check CPU is 64/32 Bit in Linux System. As a system administrator and IT professional, it is very important to know whether the system's CPU architecture is 32 bit or 64 bit.

To test whether your Linux computer has a 32-bit or 64-bit CPU and to see what version of Linux is installed, open your terminal, type the following command at the prompt, and then hit Enter:

$ lscpu


How to Determine if the Linux kernel is 32-bit or 64-bit ?

Using the uname command, you can determine if your Linux kernel is 32-bit or 64-bit by running the command below:

uname -a


Install PHP 8.0 on Rocky Linux 8 - Best Procedure ?

This article covers steps to install PHP 8.0 in Rocky Linux. PHP is used to develop static or dynamic websites or web applications. Many popular CMS such as WordPress, Magento, and Joomla is written in PHP. Frameworks such as Laravel, Symfony, and CodeIgniter is also using PHP.

To list the available PHP version on your Linux terminal, run the command:

$ sudo dnf module list php

To verify PHP version, simply run the command:

$ php -v 

To install PHP packages and dependencies, run the command:

$ sudo apt install php php-cli php-fpm php-json php-common php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath


How to Install PHP 7.4 on Ubuntu ?

Installing PHP 7.4 on Ubuntu 19.04/18.04 is a bit different than 20.04. 1. To get started, update apt and add the required repositories:

$ sudo apt-get update
$ sudo apt -y install software-properties-common
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update

2. And begin the install.

$ sudo apt install php7.4

3. After the install is complete, you can check the version that is installed and in use.

$ php -v

Search by typing a one letter Word Term Here