Paul Sutton

shell

CyberSecurity part 13

So we are on part 13, well done and thank you to everyone who has stuck with this so far.

So today, I am going to link to three videos, which give more details on specific bash commands. Hopefully this will speed things up a little, there are probably better videos, so please feel free to search, watch and share alternative videos.

Links

Tags

#CyberSecurity,#Shell,#Grep,#Sed,#Cron

CyberSecurity part 12

So we are on part 12, well done and thank you to everyone who has stuck with this so far. Today I am linking to s shell scripting crass course.

Joe Collins who presented the bash videos earlier also has a series of videos on shell scripting

Links

Tags

#CyberSecurity,#Shell,#Scripting

Resize and rename multiple files

As I was renaming and resizing some files anyway. I decided to make this short video of the process. I have added to Debian category as I am using Debian 11.

Commands used:-

gm -mogrify -resize 640x480 *.JPG AND rename 's/P1/codeclub/'

As usual your mileage may vary, you need to check man pages for specific arguments for your needs.

Happy to try and help further via Mastodon

Fedi id : zleap@qoto.org

Tags

#Debian11,#BASH,#Shell,#Rename,#Resize,#Files,#Eucation,#GNULinux

console / terminal xmas tree

Nice shell script to make a colour Christmas tree on your terminal / console

xmas tree in console

#christmas,#shell,#coding,#hacking,#draw,#xmas,#tree, #xmastree,#bash,#scaleway,#animation

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

APG password generator

Debian comes with a useful command line utility called apg for generating passwords, based on criteria set when it is run.

You may need to install with apt install apg

Running just apg produces


ag"OnAub3 (ag-QUOTATION_MARK-On-Aub-THREE)
yissheav-Flas6 (yis-sheav-HYPHEN-Flas-SIX)
rek_OfDot6ly (rek-UNDERSCORE-Of-Dot-SIX-ly)
yorthIs0Ot; (yorth-Is-ZERO-Ot-SEMICOLON)
NapOl{aj6 (Nap-Ol-LEFT_BRACE-aj-SIX)
9Knyhik. (NINE-Kny-hik-PERIOD)

Where as using -m 16 produces a min length of 16 characters

apg -m 16


cryhejIryoatEpBi
DuVospewjopOtsye
veldIc@Ogguckeys
IalNexBeckOdjav1
drureroarAkucEdd
WinquivadLitsUk4

As a good password should be made up of Letters (upper and lower case) Numbers (0-9) Other characters ( !“£$()%^&* )

Then you need to run something like

apg -M sncl -m 16 -n 5

apg  -M sncl -m 16 -n 5 
EgUrr1slaibzydAr
IrgiOcyibgauvKan
jemUndafMinvieHo
Fliadweuldyeebup
enyaighKuedoobr3

The program man page also gives more info and an example shell script to help with the process.

man apg

shell script

[begin]----> pwgen.sh
       #!/bin/sh
       /usr/local/bin/apg -m 8 -x 12 -s
       [ end ]----> pwgen.sh

#linux,#debian,#shell,#password,#generation,#security,#help,#scripts,#secure,#unix,#gpl,#fsf,#freesoftware,#manpage, #manual,#web,#internet,#links,#letters,#numbers, #alphanumeric,#specialcharacters

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License