Wednesday, November 13, 2019

Run only Specific Commands with sudo in Linux

In this guide, you are going to learn how to run only specific commands with sudo in Linux. Our previous guide covered how to add user to sudo group to enable them to execute the commands with elevated privileges. How to Add Users to sudo group in Linux

How to Add Users to sudo group in Linux

In this guide, we are going to learn how to add users to sudo group in Linux. More often than not, you want, as a non-root user, to run commands with elevated privileges in Linux. So the only way this can happen is to give user sudo privileges by adding them to a sudo group or to...

Using Find Command to Search for Files and Directories in Linux

Welcome to our guide on using find command to search for files and directories in Linux. find is a command-line utility that searches one or more directory trees of a file system, locates files based on some user-specified criteria and applies a user-specified action on each matched file. It can also be use with other Linux/Unix commands to...

Connect to WiFi in Linux Using NMCLI command

This tutorial will guide you on how to connect to WiFi in Linux using NMCLI command. NMCLI is a command-line tool for controlling NetworkManager and reporting network status. It can be utilized as a replacement for nm-applet or other graphical clients. It is used to create, display, edit, delete, activate, and deactivate network connections, as well as...

Extract Log Lines of Specific Dates from a Log File

Good day folks. Today, we would like to discuss how to extract log lines of specific dates from a log file. If you are a guy that sifts through a thousand logs in between the lines looking for something, then this article will best suit you. Extract Log Lines of Specific Dates from...

Delete Lines Matching a Specific Pattern in a File using SED

In this guide, we are going to learn how to delete lines matching a specific pattern in a file using SED. SED is a stream editor that performs basic text filtering and transformations on an input stream (a file or input from a pipeline). Delete Lines Matching a Specific Pattern in a File using SED In our previous guide, we covered...

Delete Lines Matching Specific Pattern in a File using VIM

This guide will take you through how to delete lines matching specific pattern in a file using VIM. Linux system admins work with files day in day out. At some point, you may want just to delete lines matching a specific pattern or a string in a file. There are quite a number of tools out there that you...

Installing Perf Performance Analysis Tool on Ubuntu 18.04

Good day all. This guides is about installing Perf performance analysis tool on Ubuntu 18.04. Perf, also known as perf_events is a powerful performance counter for Linux systems that gathers data about hardware events such as instructions executed, branches mispredicted or cache-misses suffered. It also provides very low overhead profiling of applications to trace dynamic control flow and identify hotspots,...

How to Install and Use 7zip File Archiver on Ubuntu 18.04

In this tutorial, we are going to learn how to install and use 7zip utility, a free and open-source file archiver, on Ubuntu 18.04. 7-Zip is a file archiver with a high compression ratio. The program supports 7z, LZMA2, XZ, ZIP, Zip64, CAB, RAR, ARJ, GZIP, BZIP2, TAR, CPIO, RPM, ISO, most filesystem images and DEB formats. Compression ratio in...

How to check Hardware information, block devices and filesystems on a Linux System

In this tutorial, we will learn how to check hardware information, block devices and filesystems on Linux system. Many a time as we interact with the Linux system in our day to day activities, there may arise a need to check on the mounted filesystems, available block devices, disk space usage, system hardware information or even file space usage. Well,...