Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Shell Scripts, Commands, Guides

NotificationsYou must be signed in to change notification settings

Ator9/Web-Docs

Repository files navigation

/usr/local/ispconfig/server/server.shservice mariadb restartservice httpd restartservice pure-ftpd restartservice postfix restartgit checkout -- file.xxxecho>~/.bash_history;history -c# delete single line:history -d 1234;history -wcat /var/log/secure| grep"Accepted password"*****   root    pgrep httpd> /dev/null|| /bin/systemctl start httpd.service*****   root    pgrep mariadb> /dev/null|| /bin/systemctl start mariadb.service*****   root    pgrep supervisor> /dev/null|| /bin/systemctl start supervisor0 4***   root    /bin/systemctl restart mariadb.servicemysql -Vhttpd -vphp -vcat /etc/*release*nano /etc/my.cnfnano /etc/httpd/conf/httpd.confnano /etc/php.ininano /etc/postfix/main.cftail -100 /var/log/mysqld.logtail -100 /var/log/httpd/error_logtail -100 /var/log/mariadb/mariadb.logscp file.tar.gz user@domain.net:/home/userscp -r plugins user@domain.net:/home/userscp -r user@your.server.example.com:/path/to/foo /home/user/Desktop/rsync -ruvt --delete folder user@222.222.222.222:/databash-4.2# sudo /sbin/reboot --force

FIX BITBUCKET

sudo -u web115 git pullsudoecho> /var/www/site.com/.ssh/known_hostssudo -u web115 ssh-keygen -R bitbucket.org&& curl https://bitbucket.org/site/ssh>> /var/www/site.com/.ssh/known_hosts

Clean CentOS Cache

yum clean allrm -rf /var/cache/yum/# Remove orphan packagespackage-cleanup --quiet --leaves --exclude-binpackage-cleanup --quiet --leaves --exclude-bin| xargs yum remove# Remove old kernelspackage-cleanup --oldkernels --count=2

How do I force Git to overwrite local files on pull?

error: Yourlocal changes to the following files would be overwritten by merge:error: The following untracked working tree files would be overwritten by merge:git fetch --allgit reset --hard origin/master

Reset file changes

git checkout -- file.xxx

Check HTTPS Certificate. Check invalid redirects.

curl -IvL https://domain.me

Email

mail -s"asunto ejemplo" your@email.com<<<"mensaje"

Delete queued mail

postqueue -ppostsuper -d ALL

show top 10 biggest subdirs in the current dir

du -sk*| sort -nr| head -10df -h

Find files with specific size (bytes)

find /var/www/web.me/web/ -type f -size 85796c -exec ls -lh {}\;
find /var/www/web.me/web/ -type f -size +85550c -size -86000c -exec ls -lh {}\;

Find files with specific text within

grep -rnw'/path/to/somewhere/' -e'pattern'

Bind /etc/fstab (web/wordpress/ispconfig - systemctl daemon-reload if reload needed)

/var/www/clients/client1/web1/web /var/www/clients/client1/web2/web    none    bind,nobootwait,_netdev    0 0mount -a

Comprimir tar.gz

tar -zcvf backup_2012.tar.gz directory-name

Descomprimir tar.gz

tar -zxvf  backup_2012.tar.gz

Search repo rpm and delete (to solve yum conflicts)

rpm -qa| grep -i repo-namerpm -e repo-name

Composer 2 - Centos 7

cd /usr/binhttps://getcomposer.org/download/sudo mv composer.phar /usr/bin/composer

sudo -u web135 composer install

About

Shell Scripts, Commands, Guides

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp