How to search YouTube with the command line on Linux.
How to search YouTube and play a video on the command line with Linux.
How to search YouTube and play a video on the command line with Linux.
How you can use ChatGPT on the command-line in Linux. This is a Python wrapper.
How to extract a listing of all titles from an RSS Feed in XML.
Some detailed information about the classic PC game Doom from 1993. Command-line parameters and cheats aplenty.
How to use the Linux command line to generate a secure password. And how to create a password string for /etc/shadow with the command line.
It is very easy to check image dimensions using the command line. Install the exiv2 package and this allows easy retrieval of image information. Just like this. ┌──(john㉿DESKTOP-PF01IEE)-[/mnt/c/Users/Intel i5/Pictures/phone5] └─$ exiv2 ui_icon_equipment.png File name : ui_icon_equipment.png File size : 8626195 Bytes MIME type : image/png Image size : 4096 x 4096 ui_icon_equipment.png: No Exif data … Read more
Some very useful VIM tips when using this editor on Linux. When you open a folder instead of a file in VIM, you get a directory listing and this allows you to select a file. Just scroll down to the file you want to open and press ENTER. " ============================================================================ " Netrw Directory Listing (netrw … Read more
I have my mobile telephone connected with a male-male 3.5mm cable to my computer and I wanted to record segments from the radio to the computer with Audacity. This is how I achieved that. And also configuring the alsamixer settings properly to enable the line-in port as the capture source will help with this. This … Read more
The importance of backing up your computer can not be understated. This is an integral part of using a computer, judging by the outages of various cloud backup services like Microsoft Azure and other cloud services it is not a good idea to only use a cloud service like Google Drive or Skydrive to store … Read more
Adding a new user to the Ubuntu server is very simple. The useradd command may be used in a script to create multiple users very easily. This is a very good bash shell script to create a bunch of users in one go. All you need to do after this is assign new passwords to … Read more
Some useful Bash shell tricks There are a lot of obscure Bash shell tricks for the Linux shell that is useful for showing off shell tricks and making your shell usage easier. For a first example, run this command. ubuntu ~ $ ls -hulaubuntu ~ $ ls -hula Then run this and the previous command … Read more
The sysctl command on Linux may be used to return information about your installed hardware; as well as virtual memory information. Below is an example looking at virtual memory information. zsh 7 % sysctl -a | grep vm sysctl: permission denied on key ‘kernel.cad_pid’ sysctl: permission denied on key ‘kernel.usermodehelper.bset’ sysctl: permission denied on key … Read more
This is a very useful C++ code snippet for reading a line of text into STDIN. Hopefully, this will be useful to someone. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 #include <iostream> #include <string.h> #include <sstream> using namespace std; … Read more
There are still some very useful tips for using Linux in 2021. Just like this. Getting the size on the disk of a folder. The du -ack -h | tail -n 1 command will do this. ┌──[[email protected]]─[~/Music] └──╼ ╼ $ du -ack -h | tail -n 1 8.2G total┌──[[email protected]]─[~/Music] └──╼ ╼ $ du -ack -h … Read more
Pulseaudio can easily be controlled with the command line. The pactl utility is used to control the sound volume of a Pulseaudio sink. List all sinks with this command. jason@jason-desktop:~$ pactl list sinksjason@jason-desktop:~$ pactl list sinks Then look through the list to see which is the device you wish to control, then use this command … Read more
Updating an open-source project is very easy. This can be done just fine with the command line. In this example, I am listing the files in a repository. 4.4 Tue Jun 16 jason@Yog-Sothoth 1: $ git ls-tree -r master –name-only LICENSE README.md makefile src/iface.h src/strings.h src/sysinfo.cpp src/sysinfo.h system-info4.4 Tue Jun 16 jason@Yog-Sothoth 1: $ git … Read more
Setting themes for the Ubuntu MATE desktop is very easy, but it can be done with the command line. This is very simple to do. The command below will set the GTK theme as “Bluebird”. This works instantly and would be very useful in a script to quickly set up a Linux desktop just as … Read more
The settings used by the file chooser in MATE or Gnome can be changed easily with the command line. The gsettings utility makes this easy. This example will alter the Firefox file chooser, it will have directories listed first, in descending order, sorted by date modified. gsettings set org.gtk.Settings.FileChooser sort-column ‘modified’ gsettings set org.gtk.Settings.FileChooser sort-order … Read more
This is a nice example in C. This will append text to a file whenever it is run. This is the proper way to do this in this programming language. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 #include <stdlib.h> #include <stdio.h> int main(void) { FILE *f; char … Read more
This bash alias will take a directory name or path as an argument. alias goto=’cd $1’alias goto=’cd $1′ This is an example of how this alias works. jason@jason-desktop:~$ goto /usr/share jason@jason-desktop:/usr/share$jason@jason-desktop:~$ goto /usr/share jason@jason-desktop:/usr/share$ This is a very neat bash trick. This might not work if the directory name uses spaces though. Generate a very … Read more