rpm.org - Query formats
System & Network Admin
Formatting a rpm query output with a separator
I am trying to get a list of all packages that are installed on my system. For this I call 'rpm -qai' from within a Python-script where further transformations on the output take place.
I kind of ...
JQ create json array using bash
I am currently trying to get information about my file hosting accounts. As I keep a lot of my backup media on different accounts. I am using megatools to query information about the account, which I
sed tip: Remove / Delete All Leading Blank Spaces / Tabs ( whitespace ) From Each Line
Explains how to delete or remove all leading blank spaces or tabs ( whitespace ) using sed command on Linux, macOS, *BSD and Unix systems.
Variables in Shell Scripting | How to initialize Variables in Shell Scripting?
Guide to Variables in Shell Scripting. Here we discuss the introduction, How to initialize Variables along with working and Examples.
Awk Command in Linux with Examples
Awk is a general purpose scripting language designed for advanced text processing.
AWK Command in Linux with Examples {Statements, Patterns & Variables}
The awk command is a powerful text processing and data manipulation tool in Linux. This detailed tutorial shows how to use awk effectively.
Using awk to print all columns from the nth to the last
This line worked until I had whitespace in the second field.
svn status | grep '\!' | gawk '{print $2;}' > removedProjs
is there a way to have awk print everything in $2 or greater? ($3, $4.....
Bash sed awk, format CPU/Mem info from /proc/cpuinfo and /proc/meminfo
The problem that I'm trying to solve is to produce portable output that I can display on all of the servers in our environment to show basic info at login using generic information on all CentOS / ...
How to Check CPU Information in Linux
The CPU Information in any machine includes information about the processor, the vendor details, model name, architecture, speed of processing, etc.
3 Ways to check CPU Cores in Linux - howtouselinux
In this blog post, we will discuss 3 different ways to check the number of cpu cores in Linux. This is useful information to have if you are trying to optimize your system for performance. Each method has its own advantages and disadvantages, so be sure to read through all of them before choosing the […]
Putting IP Address into bash variable. Is there a better way
I'm trying to find a short and robust way to put my IP address into a bash variable and was curious if there was an easier way to do this. This is how I am currently doing it:
ip=`ifconfig|xargs|...
Linux bash script to extract IP address
I want to make big script on my Debian 7.3 ( something like translated and much more new user friendly enviroment ). I have a problem. I want to use only some of the informations that commands give...
platform — Access to underlying platform’s identifying data — Python 3.10.6 documentation
Python based scripts for obtaining system information from Linux
Python based scripts for obtaining system information from Linux.
Use Python to get all kinds of information about the Linux system
Generate a List of IP Addresses
An IP address sequence generator powered by alien technology from the future. 100x better than puny human technology. Try it out!
Dependencies Tree Implementation
For those who used apt-get, you know that everytime you install / uninstall something, you get the notificatons saying you need / no longer need certain dependencies.
I'm trying to understand the ...
Dynamically build a 'Build Dependency Graph'
Automate the build process with a Build Dependency Tree
How To Write Bash Shell Loop Over Set of Files
Explains how to loop through a set of files in current or any directory using shell script for loop under UNIX / Linux / macOS.
Bash Recursion Examples and Experiments with Local Variables
Recursion in programming is when a piece of code (usually a function) calls itself. If there is no exit case, the program will go on forever. We will be discussing recursion in a bash script with examples and discussing some peculiarities of the bash shell, such as local variables. Setup Let’s make a shell script.…
Recursive function in bash
I want to do a function that will return the factorial of a number in bash
Here's the current code that doesn't work, can anyone tell me what's wrong and how to correct it? I just started learning...
How to Use Command Line Arguments in a Bash Script | Baeldung on Linux
Learn how to use command-line arguments inside the bash script
rpm(8): RPM Package Manager - Linux man page
rpm is a powerful Package Manager, which can be used to build, install, query, verify, update, and erase individual software packages.
Count Lines in a File in Bash | Baeldung on Linux
Learn the most common ways of counting the number of lines of a specified file using Bash
The Parts of an RPM Query
Inspecting and extracting RPM package contents | Packagecloud Blog
Learn how to inspect and extract RPM package contents with working codes and examples in this article.
How can I convert my Bash script output to JSON and save it as “.json” file?
Here is my script:
Get System info
#!/bin/bash
readarray -t array <<< "$(df -h)"
var=$(echo "${array[1]}"| grep -aob '%' | grep -oE '[0-9]+')
echo "${array[3]:$...
Bash Array – How to Declare an Array of Strings in a Bash Script
Bash scripts give you a convenient way to automate command line tasks. With Bash, you can do many of the same things you would do in other scripting or programming languages. You can create and use variables, execute loops, use conditional logic, and store data in arrays. While
If Statements - Bash Scripting Tutorial
Bash if statements. Learn if statements, else, elif and case statements with sample scripts, detailed descriptions and challenges.