Code:
find / -name art 2>&1 | grep -v "Permission denied"
Code:
find / -name art 2>&1 | grep -v "Permission denied"
for d in ./*/ ; do (cd "$d" && my_linux_command); done
Damit "No Permission Errors / Keine Berechtigung Fehler" es nicht unübersichtlich machen:
find / -name '*.jpg' -mtime -30 ... 2>/dev/null
Install bash-completion
apt-get install bash-completion
Add to file: /etc/bash.bashrc
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
1. Datei öffnen:
pico -w /root/.bashrc
2. Hinzufügen ( zB am Ende):
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
Wenn es bash-completion nicht gibt:
apt-get install bash-completion
Es gibt eine Liste von Dateien, die Städtenamen oä haben. Ich möchte Dateien finden und löschen, die NICHT :
find ./ -not -name 'Nieder*' -not -name '*Burg' -exec rm -vf {} \;
Szenario:
Mehrere Personen laden tausende Dateien wie Bilder-Videos usw per FTP hoch. Eine Überschreibungsgefahr existiert. Wir wollen Dateien die komplett hochgeladen sind, verschieben. In diesem Fall, Dateien, die in der letzten 11 Minuten geändert wurden, werden als offene Dateien behandelt und nicht verschoben. Rest wird verschoben.
* * * * * /usr/bin/find /home/meinFTPOrdner1 -mmin +11 -exec /bin/mv -v {} /home/meinFTPOrdner2/ \; >> /logs/output-von-mv.txt
mv --backup=t /path/to/source_file /path/to/destination_file
Kopieren ohne existierende Dateien zu überschreiben:
- cp -n
- cp --no-clobbe
- rsync -a -v --ignore-existing src dst
Befehl:
tar -zxvf archive.tar.gz /folder/in/archive
Neueste Kommentare
Same with Drush 13 + PHP 8.3 and my Solution
Same with Drush 13 + PHP 8.3
Error : Failed to install the required package 'RPM' by using AP
Initializing...
Error : Failed to install the required package 'RPM' by using APT. Please install it manually.
Exit
Solution:
Installieren & Aktivieren
So habe es installiert und dann mit Hilfe von Key/Code (über Website von Acronis Cyber Protect) aktiviert:
I have a view with a path…
I have a view with a path like
/my-content-export
to export entivies as JSON or CSV.admin_toolbar 3.5.2 is the…
admin_toolbar 3.5.2 is the reason. Patch coming ...
Tools & Settings >> Security…
Tools & Settings >> Security Policy :
Allow only secure FTPS connections
List config vaiables
/usr/sbin/mariadbd --help --verbose | grep "query.*size"
Restart MariaDB / MySQL
Commandline:
MariaDB Restart (after changes in /etc/mysql/db-performance.cnf)
After my changes in /etc/mysql/db-performance.cnf
Error: configure: error: no acceptable C compiler found in $PATH
Error: