Unveiling Your System: Linux Terminal Tips

Display information about your PC’s processor You can use the lscpu command in a Linux terminal to display information about your PC’s processor. Here’s a simple Bash program that runs the lscpu command and displays the processor information: #!/bin/bash echo "Processor Information:" lscpu You can save this script to a file, for example, processor_info.sh, and make it executable using the following command: chmod +x processor_info.sh Then, you can run the script in your terminal:...

November 3, 2023 · 3 min · 613 words · Saman Wijesinghe

Easy MP3 to M4A Conversion with Linux Terminal

Step 1: Install ffmpeg If you don’t already have ffmpeg installed, you can do so with the following commands: For Debian-based distributions (e.g., Debian, Ubuntu): sudo apt update sudo apt install ffmpeg For Arch-based distributions (e.g., Arch Linux): sudo pacman -Sy ffmpeg Step 2: Navigate to the directory containing your MP3 files Use the cd command to change to the directory where your MP3 files are located. For example, if your MP3 files are in a folder called “music,” you can navigate to it like this:...

October 31, 2023 · 2 min · 343 words · Saman Wijesinghe

Secure Your Data: ecryptfs on Arch Linux

Please Note: Before you begin, ensure that you have a backup of your data in case anything goes wrong during the encryption process. Data encryption can be irreversible if you forget your password. Step 1: Install ecryptfs-utils If you don’t already have ecryptfs-utils installed on your Arch Linux system, you can do so by running the following command in your terminal: sudo pacman -S ecryptfs-utils Step 2: Create a Mount Point You need to create a directory where the encrypted data will be mounted....

October 29, 2023 · 3 min · 431 words · Saman Wijesinghe

Dumping a MySQL database

Note: Before proceeding, make sure you have the necessary permissions to access the MySQL database you want to dump. You should have at least read access to the database. 01. Open Terminal: Open your Linux terminal. You can usually find it in your applications or use keyboard shortcuts like Ctrl + Alt + T. 02. Login to MySQL: If your MySQL server requires authentication, you should log in first using the mysql command....

October 25, 2023 · 2 min · 282 words · Saman Wijesinghe

Arch Linux Pacman Essentials, Commands and Strategies for Power Users

Update Package Database: To update the package database to get the latest package information from the Arch Linux repositories, use the following command: sudo pacman -Sy Search for Packages: You can search for packages using pacman -Ss. For example, to search for the package name “example,” use: pacman -Ss example Install a Package: To install a package, use the -S flag followed by the package name. For example, to install the “example” package, use: sudo pacman -S example...

October 22, 2023 · 4 min · 699 words · Saman Wijesinghe