Brave package architecture mismatch on Ubuntu

The error message APT gives when try to update system N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://brave-browser-apt-release.s3.brave.com stable InRelease' doesn't support architecture 'i386' If You’re seeing this error because the Brave repository you’re using doesn’t provide packages for 32-bit (i386) systems. Here’s how to fix it without harming your Ubuntu system Step 01 Find this file /etc/apt/sources.list.d/brave-browser-release.list Step 02 Open the file : This file can be edited using a text editor such as nano....

May 5, 2024 · 1 min · 140 words · Saman Wijesinghe

Clean special characters from csv

Removing Special Characters from a File Using Bash This Bash script is designed to remove special characters from a file and save the cleaned content to another file. Step 1: Understand the Script’s Purpose The script aims to clean a file named “temp-dialog.csv” by removing special characters from each line. Step 2: Set Up the Script Open a Text Editor: Use any text editor like Notepad, Sublime Text, or Visual Studio Code....

April 14, 2024 · 2 min · 361 words · Saman Wijesinghe

con-images-to-webp convert to webp

Prerequisites Make sure you have ImageMagick installed on your system. If not, you can install it using the following commands: For Debian-based systems: sudo apt install imagemagick For Arch-based systems: sudo pacman -S imagemagick Usage Clone this repository or download the con-images-to-webp.sh script. git clone https://github.com/samanweb/con-images-to-webp.git Copy all images you want convert to webp to con-images-to-webp directory Run the script: cd con-images-to-webp ./con-images-to-webp.sh The script will convert all .jpg, .jpeg, and ....

April 12, 2024 · 1 min · 121 words · Saman Wijesinghe

Retrieve File and Directory Permissions in Octal Format Using Bash

find . -maxdepth 1 -exec stat -c '%a %n' {} + let’s break down this bash command step by step find .: This command starts searching in the current directory (.). -maxdepth 1: This option restricts the search to only the current directory, not any subdirectories. So it won’t go deeper than one level down. -exec: This option executes a specified command for each matched file. stat -c '%a %n' {} +: This is the command that will be executed for each file found....

April 9, 2024 · 1 min · 182 words · Saman Wijesinghe

Linux Terminal Basics, Files & Directories

1. Understanding Files and Directories Files: In Linux, everything is treated as a file. Files can contain text, programs, images, or any other type of data. They are organized within directormkdir: Creates a new directory. ies. Directories (Folders): Directories are containers for files and other directories. They provide a way to organize and manage files on your system. 2. Basic Commands ls: Lists files and directories in the current directory....

February 10, 2024 · 2 min · 261 words · Saman Wijesinghe