rm -rf foldername
tar -zcvf public_html.tar.gz html
tar -zxvf public_html.tar.gz
scp /var/www/public_html.tar.gz [email protected]:/home/username/domains/xxx.com
crontab -u root -l
cd /var/spool/cron
pscp -P 22 D:\xampp\htdocs\html.zip [email protected]:/var/www/
pscp.exe [email protected]:/var/www/dbbkp20201108.sql D:\privateJobs\downloads
ln -s /etc/apache2/sites-available/xxx.com.vhost /etc/apache2/sites-enabled/xxx.com.vhost
passwd
deluser --remove-home test
deluser username
cat /etc/passwd
cat /etc/shadow
tail -f xxx.log
useradd -d /var/www/clients/client7/web28 username
useradd -d /var/www/clients/client7/web28 username -s /bin/bash
UPDATE mysql.user SET PASSWORD=PASSWORD('xxxxx')
find * -type d -exec chmod 755 {} +
find * -type f -exec chmod 644 {} +
find .* -type f -exec chmod 644 {} +
usermod -a -G client7 username
chown -R username *
chown -R username .*
find -name *.pdf -type f
nano /etc/ssh/sshd_config
service sshd restart
mysqldump -p -h localhost -u kullaniciAdi databaseAdi > yedekDosyasi.sql
screen
shift+ctrl+A+C
shift+ctrl+A+N
ps -aux | grep xxxx
supervisor appname
sshd sshd1 sshd2 : 127.0.0.1 : ALLOW
sshd sshd1 sshd2 : xx.xx.xx.xx : ALLOW
sshd sshd1 sshd2 : ALL : DENY
tzselect
dpkg-reconfigure tzdata
date -s "22:43:10"
timedatectl status
timedatectl set-timezone UTC
certbot certificates
certbot renew --force-renewal
certbot -d damainname.com,www.damainname.com --force-renewal
systemctl restart httpd
//1 - create ssh key
ssh-keygen -t rsa -b 4096 -C "[email protected]"
//2 - run in background
eval "$(ssh-agent -s)"
//3 - give a permission
ssh-add .ssh/id_rsa
//4 - view pub
cat .ssh/id_rsa.pub
//5 - copy what is displayed and add from there
https://github.com/settings/keys