-
-
CentOS | Code | Debian | Fedora | macOS | macOS Shell | Raspberry Pi | Raspbian (Raspberry Pi OS) | Red Hat | Ubuntu | UNIX | UNIX Shell Scripts | Zorin OS
UNIX – List USB Devices With lsusb
On the Mac “lsusb -v” is rather clean in comparison to other systems.
-
CentOS | Code | Debian | Fedora | Raspberry Pi | Raspbian (Raspberry Pi OS) | Red Hat | Ubuntu | UNIX | UNIX Shell Scripts | Zorin OS
UNIX – Set SSH Banner
Obviously it will be slightly different depending on your network and version but it will look something like this. Kittell.net WARNING This computer system is the property of Kittell.net. It may be accessed and used only for authorized Kittell.net business by authorized personnel. Unauthorized access or use of this computer system may subject violators to…
-
Red Hat / CentOS / Fedora – Create Jailed SFTP User
If you are working on a project and need SFTP capabilities but don’t want users to see each other’s files create a SFTP Jailed server. Assumptions for the code below is that you are running Red Hat, CentOS, or Fedora and already have the OS running. NOTE: In this first script block it will restart…
-
CentOS | Code | Fedora | macOS | Raspberry Pi | Raspbian (Raspberry Pi OS) | Red Hat | Ubuntu | UNIX | UNIX Shell Scripts | Zorin OS
UNIX – SED Replace Tab with Space(s)
Originally found at https://linuxconfig.org/replace-all-tab-characters-with-spaces
-
Red Hat – Failed to initialize NSS library
If you recently updated or recently installed a Red Hat server and get a message like this when trying to run yum the below will help. Reference: https://access.redhat.com/solutions/3134931
-
Red Hat / CentOS / Fedora – Fix Yum Duplicates
When nothing else seemed to work this helped me to get rid of all the duplicates from failed yum updates. After trying the above I still had some duplicates on a different server but the ‘Remove Duplicates’ script below seemed to work fine for me. NOTE: I was looking at having to rebuild one of…
-
Strong Password
Need help with what a strong password is? Strong password recommendations are as follows: Must contain 14 or more characters Must contain upper and lower case letters Must contain a number or special character (e.g. !@#$%^) Must NOT be the same as your previous 12 passwords Must NOT be similar to your username Must NOT…
-
Uptime Formated
If you simply want uptime formatted this small script will help. Uptime by itself will display similar to: 20:25:48 up 3 days, 8:14, 1 user, load average: 2.07, 2.17, 2.35 Formatted using the code above will display similar to: 3 days, 8 hours, 15 minutes.
-
CentOS | Code | Fedora | macOS | macOS Shell | Raspberry Pi | Red Hat | Ubuntu | UNIX | UNIX Shell Scripts
Bash – Trim/Remove White Space