Skip to content

Instantly share code, notes, and snippets.

@sen0rxol0
Last active March 7, 2021 15:11
Show Gist options
  • Save sen0rxol0/39a56ccbffc82cd069bbb25892458a85 to your computer and use it in GitHub Desktop.
Save sen0rxol0/39a56ccbffc82cd069bbb25892458a85 to your computer and use it in GitHub Desktop.
Linux sys admininstration tasks

System Configuration And Hardware Information

  uname -a
  
  lsb_release -a
  
  top
  
  #change folders/files ownership
  chown -R www-data:www-data /var/www/html
  
  #change files permissions recursive
  chmod -R 755 /var/www/cache
  
  #correctly adding folders and flies permissions
  sudo find . -type d -exec chmod 755 {} \;
  sudo find . -type f -exec chmod 644 {} \;
  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment