Useful tips for the bash shell.
How to show the count of running jobs on a Linux machine with a custom bash prompt.
How to show the count of running jobs on a Linux machine with a custom bash prompt.
How to prevent a fork bomb from damaging your Linux system by limiting processes.
How to list your most used bash commands and some other very useful stuff.
How to set the terminal title with Linux very easily, this is a very useful Linux tip.
How to use tput to set the colors in a bash script or a PS1.
How to run a bash function when a script runs. This is just like the main() function in C.
How you can have an eternal bash history in Linux and save every command you have executed.
How to get filesystem information on Linux using the command line.
Some nice bash shell prompts that might be very useful for you.
A couple of very interesting Linux commands.
How to extract a listing of all titles from an RSS Feed in XML.
A great bash shell prompt that looks very good when used in MATE Terminal.
A couple of ways to list a directory without using ls. This could be a very useful Linux tip.
How to perform an Internet speed test online using the Linux command line. This is very quick and easy to do.
How to use SFTP to connect to a remote Linux machine and then transfer files easily. This is a great way to send and receive files over a Linux network.
RUTE Linux tutorial, this is very useful for a student of Linux it will help you understand the Linux operating system and how it works under the hood.
How to include a script in your ~/.bashrc and see the output in your terminal window. This is a great Linux tip and would be indispensable if you have custom scripts.
How to clear the screen in your terminal in a shell script. ┌──(john㉿DESKTOP-PF01IEE)-[/mnt/c/Users/Intel i5/Music/Youtube] └─$ printf ‘\33c\e[3J’┌──(john㉿DESKTOP-PF01IEE)-[/mnt/c/Users/Intel i5/Music/Youtube] └─$ printf ‘\33c\e[3J’ Just execute the printf statement and this will clear the screen. This will also clear the scrollback buffer as well. This is another way to accomplish this task. ┌──(john㉿DESKTOP-PF01IEE)-[/mnt/c/Users/Intel i5/Music/Youtube] └─$ printf "\ec"┌──(john㉿DESKTOP-PF01IEE)-[/mnt/c/Users/Intel i5/Music/Youtube] … Read more
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
This is a very nice bash shell prompt I came up with. PS1="▩\[\033[38;5;33m\]\u\[$(tput sgr0)\]@\[$(tput sgr0)\]\[\033[38;5;79m\]\H\[$(tput sgr0)\]:\[$(tput sgr0)\]\[\033[38;5;174m\]\w\[$(tput sgr0)\]\n┗╼╼╼╼> \[$(tput sgr0)\]\[\033[38;5;82m\]\v\[$(tput sgr0)\] ┋► \[$(tput sgr0)\]\[\033[38;5;36m\]\\$ \[$(tput sgr0)\] \[$(tput sgr0)\]"PS1="▩\[\033[38;5;33m\]\u\[$(tput sgr0)\]@\[$(tput sgr0)\]\[\033[38;5;79m\]\H\[$(tput sgr0)\]:\[$(tput sgr0)\]\[\033[38;5;174m\]\w\[$(tput sgr0)\]\n┗╼╼╼╼> \[$(tput sgr0)\]\[\033[38;5;82m\]\v\[$(tput sgr0)\] ┋► \[$(tput sgr0)\]\[\033[38;5;36m\]\\$ \[$(tput sgr0)\] \[$(tput sgr0)\]" This is what this prompt looks like in action. You can use … Read more