pico /usr/bin/scrub
# Remove all comments and empty lines
sed -e ‘s/#.*//’ -e ‘s/[ ^I]*$//’ -e ‘/^$/ d’ $1
chmod 755 /usr/bin/scrub
pico /usr/bin/clrspace
# Remove all leading and trailing whitespace from each line;
sed ‘s/^[ t]*//;s/[ t]*$//’ $1
chmod 755 /usr/bin/clrspace
now you can simply run
scrub filename
clrspace filename
Obter certificado do servidor para LDAPS no Linux
Pegar certificado LDAPS: 1. Conecte-se ao servidor com openssl s_client ex: openssl s_client -connect ldap.example.com:636 -showcerts Isso ...
Mais vistos
-
Find Users Who Have Never Logged On Use the following PowerShell Command; Get-ADUser -Filter { LastLogonDate -notlike "*" -and En...
-
Java Keytool Command These commands allow you to generate a new Java Keytool keystore file, create a CSR, and import certificates. A...
-
To configure NGINX as a secure load balancer for WebSocket ( wss:// ) connections,use an HTTP upgrade map, increase connection timeouts, a...