Create strong passwords in Unix
openssl command helps in creating strong passwords for user accounts, email addresses, web forms etc. openssl rand 12 -base64 The above command will create a random base 64 encoding string each time it’s run.
openssl command helps in creating strong passwords for user accounts, email addresses, web forms etc. openssl rand 12 -base64 The above command will create a random base 64 encoding string each time it’s run.
To paste contents of two files horizontally, paste command can be used. Create a file called cmd with the following content: # cat cmd /usr/sbin/useradd /usr/sbin/useradd /usr/sbin/useradd Create another file called newusers # cat newusers tom dick harry Now run the following command # paste -d ” ” cmds newusers > add.sh The -d ” […]
find command provides two options to detect empty files $ find . -size 0c or $ find . -empty To find and delete all the empty files under the current directory at one go $ find . empty -exec rm -f {} \; To find and delete all empty directories under the current directory $ […]
Capture top command output in a file The output of top command can be captured as follows top -b -n1 > /tmp/top1.txt This will run top command once and write the output to a file, then exit. To run top 3 times with an interval of 5 seconds, run the following command top -b -n3 […]
Display Info about FreeBSD system 1) Determining the Hardware Type/platform: # uname -m 2) Determining machine processor architecture: # uname -p 3) Determining FreeBSD release level: # uname -r 4) Generally, following command is use to get all info at a time: # uname -mrs 5) Determining how long a system has been up # […]
Difference between grep and egrep egrep is extended grep which includes additional regular expression metacharacters like ?, +, () and | Eg: egrep “(People|sense)” values.txt This command searches for patterns People and sense in file values.txt
Can’t connect to Plesk SQL Server (after updating Plesk admin password) Jet engine is configured as Plesk Database Provider by default and Plesk SQL (MySql) service is set to disabled. However Plesk installer sets MySQL admin’s password the same as Plesk’s admin. If Plesk’s admin password is changed MySQL admin’s password remains the same which […]
Can’t change administrator email address Error : Unable to update administrator information: Error 2 at CMMFile::CMMFile: open file C:\inetpub\vhosts\default\htdocs\index.html: The system cannot find find the file specified. Solution : You should be able to resolve this after getting the contents css img favicon.ico index.html replaced over here ‘C:\inetpub\vhosts\default\htdocs’. You will be able to update the […]
Unable to add/remove domain alias in Helm Control Panel You could have experienced this error CDomainAlias.DeleteEx 0-xxxxxxxxxx: Unknown error while adding host header: A name contained an invalid character. in Helm Error Logs. If that’s the case please remove IIS.XML in the remote server where the domain is actually hosted. P.S. IIS.XML is available at […]
Accessing Plesk shows invalid security certificate Accessing Plesk Control Panel with https displays the following; mydomain:8443 uses an invalid security certificate. The certificate is not trusted because it is self signed. The certificate is only valid for plesk. (Error code: sec_error_ca_cert_invalid) You don’t need to buy another certificate, the certificate you now have is auto-generated […]