More very useful shell tricks for using Ubuntu in 2022.

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

How to use SSH to copy remote files from a server to your local machine.

This simple one-liner will copy all files into a tarball, send the compressed files over a secure SSH connection and then uncompress the files into a local directory. ┌──(john㉿DESKTOP-PF01IEE)-[~/website] └─$ ssh [email protected] -p 2222 "cd arma3/ ; tar cBf – ." | tar xvBf – [email protected]’s password: ./ ./README ./example_urllist.txt ./example_config.xml ./sitemap_gen.pl┌──(john㉿DESKTOP-PF01IEE)-[~/website] └─$ ssh [email protected]Read more

Very nice Bash shell prompt I came up with.

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

Setting up your BASH prompt. How to get the most out of the BASH shell.

Setting up your BASH prompt. A nice BASH shell prompt. This shows the current time and the current folder you are in as well as a full directory path if you are in a subfolder. PS1="-\t– \u@\h [\w]\$ "PS1="-\t– \u@\h [\w]\$ " How to set the contents of the Xterm title bar. Using the PROMPT_COMMAND … Read more

Very interesting Bash shell script for creating a Webm clip from a movie.

This is a very useful Bash shell script, this will create a Webm clip from a movie. This shows how to get parameters in a Bash script easily. #!/bin/bash   while [[ "$#" -gt 0 ]]; do case $1 in -f|–filename) filename="$2"; shift ;; -t|–timestamp) timestamp="$2"; shift ;; -o|–outfile) outfile="$2"; shift ;; *) echo "Unknown … Read more

How to create a new user on Linux with the command line.

This simple command-line will create a new user on Linux named test5. ┌──[[email protected]]─[~] └──╼ ╼ $ sudo useradd test5 -m -K PASS_MAX_DAYS=5 -K PASS_WARN_AGE=3 -K LOGIN_RETRIES=1┌──[[email protected]]─[~] └──╼ ╼ $ sudo useradd test5 -m -K PASS_MAX_DAYS=5 -K PASS_WARN_AGE=3 -K LOGIN_RETRIES=1 Then set a password for the new user. ┌──[[email protected]]─[~] └──╼ ╼ $ sudo passwd test5 New … Read more

Gorgeous Linux themes for the modern desktop.

Some very nice themes for your Linux desktop in 2021 Some very nice themes for your Linux desktop in 2021Gnome Shell themesWallpapersIcon themes Gnome Shell themes MetalX Gnome Shell theme for Linux. https://www.deviantart.com/art/Metal-X-theme-v-2-1-for-Gnome-3-16-577064989. Android Flat Gnome Shell theme. A nice flat grey theme for your Gnome desktop. https://www.deviantart.com/art/Android-Flat-3-18-565622252. Ambiance Gnome. https://www.deviantart.com/art/Ambiance-Gnome-3-14-1-8-GNOME-Shell-theme-476996106. An Ubuntu inspired theme … Read more

Common errors and troubleshooting commands for Linux.

Some useful Linux tips and troubleshooting commands Some very nice themes for your Linux desktop in 2021Gnome Shell themesWallpapersIcon themesSome useful Linux tips and troubleshooting commandsHow to install the restricted codecs in UbuntuHow to boot an Ubuntu live ISO from the GRUB bootloaderHow to re-install the GRUB bootloader using a live Linux CDHow to find … Read more

Very useful extensions for the Gnome Shell Linux desktop environment.

Very useful status menu for locating and unmounting removable drives. https://extensions.gnome.org/extension/7/removable-drive-menu/. Very useful when using removable drives a lot. A very useful addon for Gnome shell. This adds a very useful application menu. https://extensions.gnome.org/extension/3628/arcmenu/. A very useful extension to disable the screensaver when you are doing something important and do not want interruptions. https://extensions.gnome.org/extension/4135/espresso/. This … Read more