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 to run a Linux command within an asm program.
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.
The ncdu command for Linux is very good for listing the sizes of the files in a directory. This has many very useful options for use day-to-day.
How to use the MTR command on Linux to see network hops over a network to a website.
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
Use the nohup command to leave a command running if you are disconnected from the shell If you want to leave a command running if you are disconnected from your SSH session, then use the nohup command, this can be very handy. This is a good example, this will run the Nmap scan and then … 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
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
The unneeded use of the cat command is very annoying, this is wasteful. Something like this is very annoying to see. cat unixhell.txt | sed ‘s/program/application/g’cat unixhell.txt | sed ‘s/program/application/g’ Do it like this instead. This is the proper way to use sed. sed ‘s/program/application/g’ unixhell.txtsed ‘s/program/application/g’ unixhell.txt The user gets the same output but … 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 Linux find command is very useful for finding certain files. I will show how to search a folder and return a listing of files. This example below shows how to list all webm and gif files in the directory and all subdirectories. 4.4 Fri Feb 21 jason@Yog-Sothoth 0: $ find -regex ‘.*\.\(gif\|webm\)’ -print ./1397195397532.gif … Read more