Dateien ab einer bestimmten Größe anzeigen lassen:
1 2 3 |
[blue@matrix:~]> ls -lahS $(find / -type f -size +15000k) |
Dateien ab einer bestimmten Größe anzeigen lassen:
1 2 3 |
[blue@matrix:~]> ls -lahS $(find / -type f -size +15000k) |
Windows Shutdown via cmd.exe
1 2 3 4 5 6 |
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten. C:\Users\blue-matrix> shutdown /s |
1 2 3 4 5 6 |
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten. C:\Users\blue-matrix> shutdown /s /t 180 |
1 2 3 4 5 6 |
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten. C:\Users\blue-matrix> shutdown /r |
1 2 3 4 5 6 |
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten. C:\Users\blue-matrix> shutdown /a |
1 2 3 4 5 6 |
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten. C:\Users\blue-matrix> shutdown /l |
1 2 3 4 5 6 |
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten. C:\Users\blue-matrix> shutdown /f |
1 2 3 4 5 6 |
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten. C:\Users\blue-matrix> shutdown /c "Kommentar einfügen" |
1 2 3 4 5 6 |
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten. C:\Users\blue-matrix> shutdown /i |
Häufige Befehle
Weniger häufig verwendete Befehle
Immer wieder hilfreich -> Netstat
netstat -lt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
Aktive Internetverbindungen (Nur Server) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 localhost.localdom:9043 *:* LISTEN tcp 0 0 xxxx-xxxxx.tld:domain *:* LISTEN tcp 0 0 localhost.locald:domain *:* LISTEN tcp 0 0 *:ftp *:* LISTEN tcp 0 0 *:ssh *:* LISTEN tcp 0 0 localhost.localdoma:953 *:* LISTEN tcp 0 0 *:smtp *:* LISTEN tcp 0 0 localhost.localdom:6010 *:* LISTEN tcp 0 0 xxxx-xxxxx.tld:10011 *:* LISTEN tcp 0 0 localhost.localdom:9020 *:* LISTEN tcp 0 0 *:sieve *:* LISTEN tcp 0 0 *:imaps *:* LISTEN tcp 0 0 *:pop3s *:* LISTEN tcp 0 0 localhost.localdo:10024 *:* LISTEN tcp 0 0 localhost.localdo:10025 *:* LISTEN tcp 0 0 *:mysql *:* LISTEN tcp 0 0 *:submission *:* LISTEN tcp 0 0 localhost.localdo:11211 *:* LISTEN tcp 0 0 localhost.localdom:9037 *:* LISTEN tcp 0 0 *:pop3 *:* LISTEN tcp 0 0 *:imap2 *:* LISTEN tcp 0 0 xxxx-xxxxx.tld:30033 *:* LISTEN tcp 0 0 *:ssmtp *:* LISTEN tcp 0 0 localhost.localdo:21201 *:* LISTEN tcp6 0 0 [::]:domain [::]:* LISTEN tcp6 0 0 [::]:ftp [::]:* LISTEN tcp6 0 0 [::]:ssh [::]:* LISTEN tcp6 0 0 localhost:953 [::]:* LISTEN tcp6 0 0 [::]:smtp [::]:* LISTEN tcp6 0 0 localhost:6010 [::]:* LISTEN tcp6 0 0 [::]:https [::]:* LISTEN tcp6 0 0 [::]:imaps [::]:* LISTEN tcp6 0 0 [::]:pop3s [::]:* LISTEN tcp6 0 0 [::]:submission [::]:* LISTEN tcp6 0 0 [::]:pop3 [::]:* LISTEN tcp6 0 0 [::]:imap2 [::]:* LISTEN tcp6 0 0 [::]:http-alt [::]:* LISTEN tcp6 0 0 [::]:http [::]:* LISTEN tcp6 0 0 [::]:tproxy [::]:* LISTEN tcp6 0 0 [::]:ssmtp [::]:* LISTEN |
Taskmanager unter Windows aufrufen kennt jeder:
[Strg] + [Shift] + [ESC]
Unter Umständen kann man dies so nicht aufrufen. (RDP) Dann einfach ein Klick auf die Microsoft Orb und ins Suchfeld eingeben:
taskmgr.exe
Alternativ:
Rechtsklick auf die Taskleiste und im Context-Menü „Task-Manager starten“ auswählen.
HTTP Compression Test:
http://www.whatsmyip.org/http-compression-test/
Perl-Version auf der Shell auslesen:
1 2 3 4 5 |
[blue@matrix:~]> perl --version This is perl 5, version 14, subversion 2 (v5.14.2) built for arm-linux-gnueabihf-thread-multi-64int (with 80 registered patches, see perl -V for more detail) |
PHP Version auf der Shell auslesen:
1 2 3 4 5 6 |
[blue@matrix:~]> php --version PHP 5.2.0-8+etch15 (cli) (built: May 1 2009 10:25:25) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies |
Größe von Verzeichnissen anzeigen lassen:
du -h --max-depth=1 /
db Dump aus Rescure-System
mount /md1 /mnt
mount –bind /dev /mnt/dev
mount –bind /proc /mnt/proc
mount –bind /sys /mnt/sys
chroot /mnt
/usr/bin/mysqld_safe –skip-grant-tables –skip-networking &
mysqldump –all-databases > mysql_alle_DB.sql
Die Custom Menus von WordPress scheinen viele sehr zu begeistern. Bemerkbar macht sich dies mit Hilferufen.
Symptom:
-> „suhosin.post.max_vars“
-> „suhosin.request.max_vars“
Hilfe soll es geben in Form von einer eigenen php.ini, mit welcher man durchaus den Wert setzen kann – vorausgesetzt PHP läuft nicht als FastCGI. Dann hier werden eigene php.ini Dateien oft nicht berücksichtigt. Von dieser Art der Manipulation der PHP-Variabeln rate ich sowieso ab, da man zu viel beachten muss.
Dank PHP 5.3 kann auf solche „Lösungen“ verzichtet werden.
Eine .user.ini soll unser Held sein.
Textdatei erstellen, speichern mit dem Namen „php.ini“
Diese Datei öffnen und mit diesem Inhalt füllen:
suhosin.post.max_vars = 5000
suhosin.request.max_vars = 5000
Datei ins Verzeichnis laden, welches diese Einstellung benötigt.
In einer Cloud passiert per Default nichts aus heiterem Himmel.
blue-matrix
Shell aufteilen – so lässt es sich leben. – #hach #tmux
– Posted using MobyPicture.com
Cache-Plugins für WordPress sind viel zu oft unzureichend dokumentiert. Nun gut – man kennt sich ja ein wenig aus.
Heute : XCache Object Cache Backend http://wordpress.org/extend/plugins/xcache/
Fehler:
Plugin could not be activated because it triggered a fatal error.
Fatal error: Cannot redeclare wp_cache_add() (previously declared in /.../.../wp-includes/cache.php:24) in /.../.../wp-content/plugins/xcache-1/object-cache.php on line 16