Tux Machines

today's howtos

Posted by Roy Schestowitz on Apr 13, 2023,

updated Apr 13, 2023

=> Plasma Products | Security Leftovers

Monitor and troubleshoot applications with Glances and InfluxDB

=> ↺ Monitor and troubleshoot applications with Glances and InfluxDB

Set up a quick application observability solution that records metrics in real time and pipes them into a database for analysis.

How to Use "lsof" Command to Check Open Files in Linux

=> ↺ How to Use "lsof" Command to Check Open Files in Linux

This is our ongoing series of Linux commands and in this article, we are going to review lsof command with practical examples. lsof meaning ‘LiSt Open Files’ is used to find out which files

How to Zip and Unzip Files in Linux (Guide) | Beebom

=> ↺ How to Zip and Unzip Files in Linux (Guide) | Beebom

File compression is a powerful mechanism to save storage space and facilitate easy file transfers, especially when the file size is huge. There are various formats of compressed files such as .zip, .rar, etc. But, zip remains the most commonly used format. If you're on a Linux system, zipping and unzipping files (compressing and decompressing) is a task that you can accomplish from the command line interface as well as the GUI. So, in this article, we have discussed how to zip and unzip files in Linux using these two methods.
For those unaware, zipping means compressing a file or multiple files of different formats into a single file, such that it occupies less space and can be transferred using less bandwidth. Unzipping a file means extracting all the compressed files from a zip file. That said, let's look at how you can zip and unzip files in Linux:

How to Install WinRAR on Linux to Extract RAR Files

=> ↺ How to Install WinRAR on Linux to Extract RAR Files

Archives have always been the conventional way of distributing software on Linux. This has spawned an utmost need for archive managers, and this is precisely why Linux distros ship with command-line utilities to handle archives and tarballs, some of which are overwhelming to newcomers.
How convenient would it be to install WinRAR on Linux, an archive manager that almost every computer user is familiar with?

How to Fix the "sudo Password Not Working" Error on Linux

=> ↺ How to Fix the "sudo Password Not Working" Error on Linux

Sometimes, your Linux system may throw an incorrect password error even after typing in the correct sudo password. This can be both surprising and annoying when you're trying to get stuff done.
Let's look at a few quick fixes you can try when your correct sudo password does not work on Linux.

Loops over files, runs a command, dumps output to a file

=> ↺ Loops over files, runs a command, dumps output to a file

$ for f in *php; do echo $f >> ~/temp/errors.txt; phpcsw $f | grep GET >> ~/temp/errors.txt; doneIn this case I'm selecting all php files in a dir, then echoing the filename and piping it to ~/temp/errors.txt. Then I'm running my alias for PHPCS (WordPress flags in my alias), then piping the PHPCS output to grep and looking for GET. Then I'm piping that output to the same file as above. This gets a list of files and under each file the GET security errors for that file. Extrapolate this to run any command on any list of files and pipe the output to a file. Remove the >> ~/temp/errors.txt to get output to the screen rather than to a file.

Gary Benson: Scripting DNS lookups

=> ↺ Gary Benson: Scripting DNS lookups

Are you writing a script and some command doesn't accept hostnames and you don't want to inline the IP address? dig +short is your friend!

=> gemini.tuxmachines.org

Proxy Information
Original URL
gemini://gemini.tuxmachines.org/n/2023/04/13/today_s_howtos.gmi
Status Code
Success (20)
Meta
text/gemini;lang=en-GB
Capsule Response Time
140.722565 milliseconds
Gemini-to-HTML Time
0.862037 milliseconds

This content has been proxied by September (ba2dc).