Logo TheBeArsenal

Linux | Technical Handbook

Create bootable USB using 'dd' command.

Solution
sudo dd bs=4M if=path/to/input.iso of=/dev/sd conv=fdatasync status=progress


Append words to the end of the file in Linux.

Solution
echo 'input' >> filename


Display last few words of a file in Linux.

Solution
tail -c 100 filename


Insert text into the beginning of a file in Linux.

Solution
sed -i '1s/^/abcde /' filename


Install .deb file in Linux.

Solution
sudo dpkg -i /path/a.deb


Display the first few words of a file in Linux.

Solution
head -c 100 filename


"is not in the sudoers file" on a fresh Debian installation

Solution
1. Login as root using 'su' command.
2. Use 'sudo visudo' to edit sudoers file.
3. Add this line ' ALL=(ALL:ALL) ALL'
4. Exit from root.


'Cannot open access to console, the root account is locked.' Raspberry Pi SSH unavailable.

Solution
Connect the HDD/SD card(Raspberry Pi) to a different system and remove any additional lines you added to /etc/fstab.


Install Eclipse Temurin JDK 21 in Debian

Solution
Update package sources, add eclipse adoptium.

  • wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo apt-key add -
  • echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee /etc/apt/sources.list.d/adoptium.list
  • sudo apt update
  • sudo apt install temurin-21-jdk