today's howtos
-
Pablo Iranzo Gómez: Install gems on local user folder instead of system wide
In order to test locally a Gemfile, define local path for the gems to avoid attempting to write to system-wide folders:
bundle config set --local path '/home/username/.gem' bundle install
-
HowTo Geek ☛ How to Format a Disk on Ubuntu (in 2 Ways)
Need to format a disk on Ubuntu but not sure how to proceed? Disk formatting can seem difficult, especially because it's about your hard disk and not just software. Here are two easy methods, either of which will format your disk quickly and safely.
For demonstration purposes, I'm using Ubuntu 22.04. But you can follow this guide for newer or older versions of Ubuntu as well.
-
Network World ☛ Understanding exit codes on Linux
Exit codes on the Linux command line are numeric values that provide feedback on whether the command just run was successful or ran into some variety of problem. If you’ve never noticed them, don’t be surprised. The more obvious error messages like “command not found” will generally tell you all you need to know when something goes wrong, but the stealthy exit codes have a distinct advantage. For one thing, they can be checked in scripts to note errors that might be encountered (more on this below).
To get started, sit down at your Linux system and open a terminal window. Then type “pwd”. You should be rewarded by a quick display of your current location in the file system – undoubtedly your home directory. Before you do anything else, however, type “echo $?”. The system should result in the display of a zero (0). Yes, that’s the exit code and it’s meant to indicate that the pwd command you just used ran without any errors. An exit code of 0 always indicates that no problems were encountered.
-
Make Use Of ☛ How to Fix "apt-get: command not found" in the Linux Terminal
If you want to install software on a Debian-based Linux distro, apt-get is a reliable terminal command. However, you may occasionally run into trouble with the “command not found” error as a response.
Here’s how to deal with the "apt-get: command not found" error.