Posts

How to Install Composer on Ubuntu 21.04: A Step-by-Step Guide

Image
Introduction In this tutorial, How to install and use PHP package manager Composer on Ubuntu 21.04. In the evolving landscape of web development, managing dependencies efficiently is crucial for project success. Composer, a dependency management tool for PHP, allows developers to manage libraries and packages effortlessly.  This article provides a comprehensive guide on installing Composer on Ubuntu 21.04. Whether you're setting up a new project or maintaining an existing one, understanding how to install Composer can streamline your development process, ensuring that all necessary packages are up-to-date and compatible. What is PHP Composer? Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) from https://getcomposer.org/ Install Composer PHP package manager The command below install Composer not just limit Ubuntu, you can use Debian and Other similar Linux systems.the latest ...

Manage Packages on RPM Linux Distros With DNF

 In this tutorial, How to install and remove packages on RPM-based Linux Distros with DNF. DNF is the default package manager on Fedora and RHEL RHEL . when you run yum command on new Linux distros, it is actually using DNF in the background. Verify command below ls -l /usr/bin/yum The output the yum command is a symbolic link to dnf. Search package with DNF dnf search nginx get more infomation abount a certain package dnf info nginx List all packages installed your system. dnf list installed Installing package use DNF sudo dnf install nginx How to view all the dependencies installed of nginx dnf deplist nginx Uninstall package use DNF sudo dnf remove nginx DNF keeps a record of all transactions that involve installing or removing software packages dnf history Removing Unused Dependencies To remove such dependencies sudo dnf autoremove remove data downloaded along with installed packages. sudo dnf clean packages clean up your software package cache and other metadata that installed...

Run Multiple Commands in Linux

Image
In this tutorial, How to Run Multiple Commands in Linux Linux at Once. You will executing multiple Linux commands at one. On Linux, there are three ways to run multiple commands in terminal. 1. Using Logical OR (ll) operator The syntax command A || command B if command A runs successfully, command B won't execute. Command B will only execute if command A fails Example: sudo find /tmp -name devopsroles.com || touch huuphan.com The output terminal as below 2. Using the AND (&&) Operator The syntax command A && command B Command A runs successfully, If command B not error. Example: mkdir /tmp/devopsroles && cd /tmp The output terminal as below 3. Using the Semicolon(;) Operator The syntax command A ; command B Command A and command B run executed sequentially  The output terminal as below Conclusion Running multiple commands in Linux can significantly enhance your efficiency by allowing you to execute several tasks in a single command line. This tutorial cover...

How to check CPU in Linux

Image
Introduction When it comes to system performance and optimization, understanding the specifications and status of your CPU is paramount. Whether you're a system administrator managing servers or a developer fine-tuning applications, knowing how to check CPU information in Linux is a fundamental skill. In this guide, we'll walk you through various methods to retrieve detailed CPU information using command-line tools available in most Linux distributions. From basic CPU details to in-depth insights, you'll gain the knowledge to effectively monitor and assess the heart of your system's processing power. In today's tutorial, we'll guide you on checking your CPU in a Linux system. Follow these steps: Open the terminal on your Linux system. Type 'lscpu' and press enter to access detailed CPU information. For a quick overview, you can use 'cat /proc/cpuinfo'. If you want real-time CPU usage data, try the 'top' command. Learn about your CPU'...