How to use tcpdump command on Linux

The tcpdump command can be used to capture network traffic on a Linux system. It’s a versatile command line utility that network administrators often rely on for troubleshooting.

What you’ll come to find is that the amount of networking traffic captured on an interface can be easily overwhelming. tcmpdump makes our job a little easier by allowing us to isolate only the traffic we’re interested in. Of course, in order to do this, you need to be familiar with the various flags and settings that go along with the command.

[mai mult...]

How to find Files containing specific text using Grep And Ripgrep in Linux

The grep and ripgrep Command Examples for Efficient Linux File Search

The grep and ripgrep commands in Linux are powerful utilities for searching text patterns within files. They provide various options to fine-tune the search and enhance efficiency. In this detailed guide, we will learn how to use grep and ripgrep commands to find files containing specific strings of text within their contents.

[mai mult...]

How to Set date and time from Command Line in Linux

For certain tasks or applications, you might need to set a specific date and time for testing or debugging purposes. If so, this tutorial is for you! This brief guide will provide you with step-by-step instructions on how to modify your system clock using the command line in Linux.

Whether you’re dealing with time zone discrepancies or simply want to manually adjust the date and time, this tutorial will help you achieve your goal easily.

[mai mult...]

How to list the installed Packages on Linux

What Are Packages on Linux Systems?

Packages on Linux are similar to apps or program installers on macOS and Windows—broadly speaking. They come bundled in an archive file that you typically download from a central repository. Different Linux distributions use different formats to deliver these files to you—Debian and Ubuntu use DEB files, for example, while RHEL and Fedora use RPM files.

Packages aren’t necessarily complete, precompiled programs, however. Sometimes they’re libraries, which provide important functionality to other applications on your PC. Packages are typically installed, updated, and removed using a package manager. The package manager will also try to grab any dependencies when you install an application, too, so you don’t need to manually hunt down every single piece of code any given application requires to operate.

There are a few major package managers that you’ll commonly encounter. Red Hat-derived distributions (like Fedora) use the dnf package manager, Debian-derived distributions (like Ubuntu) use apt, and Arch-based distributions use pacman. There are also a few distribution-agnostic package managers like Snap and Flatpak that you can use on most any Linux system.

[mai mult...]