Durchsuchen nach
Schlagwort: Bash

Linux: pdftotext – tool to read PDF files in the Bash (here Fedora)

Linux: pdftotext – tool to read PDF files in the Bash (here Fedora)

If you want to read in the Bash, on the command line on Linux a PDF file, you don’t need a graphical program. You need the command pdftotext. But you have to install the collection of poppler-utils. What are the poppler-utils? Poppler-utils are collections of helpful PDF commands for the bash. Where to find the poppler-utils: poppler-utils are in the repository updates in Fedora: dnf info poppler-utils Name : poppler-utilsEpoch : 0Version : 24.08.0Release : 2.fc41Architektur : x86_64Installationsgröße : 796.7…

Weiterlesen Weiterlesen

Linux Bash: create a playlist with a small script

Linux Bash: create a playlist with a small script

You want to add mp3 files to a playlist with the extension .m3u and wants to sort it. A lot of music player software uses the .m3u file format. It is an old file format. History of the file format .m3u It was created in 1996 by the Fraunhofer Institute (in German: Fraunhofer-Institut für Integrierte Schaltungen IIS) in Munich, Germany. Onliner in Bash If you don’t want to create a script, then you can it with a one-liner in the…

Weiterlesen Weiterlesen

To add a Python script as a shortcut in the Bash

To add a Python script as a shortcut in the Bash

Linux Bash 5.2.32(1): I have created a Python (version 3.13.7) script in order to shut down my pc. I don’t want to click on the graphic menu in the Gnome (47.9 my version). This is the script in order to shut down the pc: The script checked first the current time and second whether pip has something in the cache, when I had updated some packages. I have saved into many subfolders in my file system Linux_PC/Programmieren/Python/Python_eigene_Scripte/herunterfahren_system.py with the command…

Weiterlesen Weiterlesen

Linux (Fedora 41) Bash Script to do a backup for MongoDB

Linux (Fedora 41) Bash Script to do a backup for MongoDB

What is MongoDB? MongoDB is a document-oriented NoSQL database that stores data in flexible, JSON-like documents, allowing for easy storage and retrieval of structured, semi-structured, and unstructured data. Unlike traditional relational databases that use tables and rows, MongoDB uses collections and documents, making it more adaptable to changing data structures. It was designed to handle large volumes of data and is known for its scalability, flexibility, and ease of use. MongoDB is open-source and has a wide range of deployment options, including cloud-based services like…

Weiterlesen Weiterlesen