How to check image dimensions using the command-line on Linux.

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

How to leave a command running when your SSH session is disconnected. Use the nohup command.

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

Backing up your computer is very important indeed. How to do it with Linux using a simple script.

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

Using the sysctl command on Linux to return hardware information. And some other related commands.

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

Very useful Linux tips for 2021.

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

How to control your Pulseaudio sound volume using the command line.

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

How to push changes from a local project to a GitHub repository.

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

Do not use cat when you can avoid it. This is very annoying.

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

How to use find on Linux to find and display a list of files.

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