To read a file from the Internet using wget and print it in the terminal, use this command.
┌─[jason@jason-desktop]─[~/Documents] └──╼ $wget -qO - https://i.mjh.nz/au/Brisbane/raw-tv.m3u8 |
View an image from the Internet with wget and the ImageMagik display utility.
┌─[jason@jason-desktop]─[~/Documents] └──╼ $wget -qO - https://i.4cdn.org/g/1603231784644.png | display |
A very nice and colorful bash shell prompt. This is very useful.
PS1="\[\033[38;5;39m\]\H\[$(tput sgr0)\]@\[$(tput sgr0)\]\[\033[38;5;120m\]\u\[$(tput sgr0)\] \[$(tput sgr0)\]\[\033[38;5;179m\]:\[$(tput sgr0)\] \[$(tput sgr0)\]\[\033[38;5;228m\]\d\[$(tput sgr0)\] \n\[$(tput sgr0)\]\[\033[38;5;177m\]\v\[$(tput sgr0)\] \[$(tput sgr0)\]\[\033[38;5;180m\]:\[$(tput sgr0)\] \w \[$(tput sgr0)\]\[\033[38;5;39m\]-\[$(tput sgr0)\]\[\033[38;5;196m\]>\[$(tput sgr0)\] \\$ \[$(tput sgr0)\]" |
This is what it looks like.
jason-desktop@jason : Wed Oct 21 5.0 : ~/Documents -> $ |
This command will capture a screenshot of the desktop and save it to the home directory.
jason@neo:~$ import -window root "$HOME/$(date '+%y%m%d_%T').png" |
This is how to do this with the scrot utility. This will save a date-stamped filename that you can easily find later.
jason@neo:~$ scrot Desktop-%H:%M:%S-%d-%m.jpg |