deluser, delgroup

deluser, delgroup – remove a user or group from the system

deluser  [options]  [--force] [--remove-home] [--remove-all-files] [--backup] [--backup-to
       DIR] user
deluser --group [options] group
delgroup [options] [--only-if-empty] group
deluser [options] user group

usermod -aG sudo USERNAME

deluser USERNAME sudo

random password

< /dev/urandom tr -dc a-z#-_ | head -c11; echo

openssl rand -base64 11

for pw in {1..10}; do openssl rand -base64 11; done

for pw in {1..10}; do gpg2 –gen-random –armor 1 14; done

cygwin,cygwin64

cygwin  https://cygwin.com/setup-x86_64.exe

https://cygwin.com/setup-x86.exe

apt-cyg  https://github.com/transcode-open/apt-cyg.git

 

WP install plugins

wordpress  plugins content folder  /usr/share/wordpress/wp-content/plugins

plugin active folder  /opt/bitnami/wordpress/wp-content/plugins

  1. Download zip format plugins
  2. unzip to /usr/share/wordpress/wp-content/plugins
  3. create soft link in  /opt/bitnami/wordpress/wp-content/plugins
  4. grant privileged to folder

 

 

 

diff patch linux commands

Create a Patch for a Single File in Linux

diff -u OriginalFile UpdatedFile > PatchFile
diff -ruN OriginalDir UpdatedDir > PatchFile

Apply a Patch to a File

patch OriginalFile &lt; PatchFile
patch -p0 < PatchFile

Undo a Patch

patch -R OriginalFile < PatchFile
patch -R -p0 OriginalFile < PatchFile