If this both commands show different files, the reason is the content of directories, listed by ls:
# find . -mtime -1
# find . -mtime -1 -exec ls -lah {} \;
Solution is -d :
If this both commands show different files, the reason is the content of directories, listed by ls:
# find . -mtime -1
# find . -mtime -1 -exec ls -lah {} \;
Solution is -d :
Combine Find and Grep to find "max_execution_time = 60" in all *.ini files (for PHP config).
Example:
find / -type f -name "*.ini" -exec grep -H 'max_execution_time = 60' {} \;Mit einem Befehl alle .JPG und .PNG Dateien finden:
find ./ -size +1024 -type f \( -iname \*.jpg -o -iname \*.png \) -exec du -sh {} \;
Code:
find / -name art 2>&1 | grep -v "Permission denied"
Damit "No Permission Errors / Keine Berechtigung Fehler" es nicht unübersichtlich machen:
find / -name '*.jpg' -mtime -30 ... 2>/dev/null
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 {} \;
Wenn man Anzahl aller Dateien unter mehreren Verzeichnisse rekursive herausfinden will, kann man diese Befehl verwenden.
find -maxdepth 1 -type d | while read -r dir; do printf "%s : \t" "$dir"; find "$dir" | wc -l; done
Ergebnis sieht so aus:
./sys: 12658
./boot: 423
./selinux: 1
./sbin: 174
./proc: 130920
./opt: 1
./mnt: 1
./Maildir: 17
./etc: 5393
./usr: 77215
ich versuche mit einer Kombination von find + mv alle .tar.gz Datein zu einen neuen ordner kopieren aber es geht leider nicht. Ich bekomme folgende Fehlermeldung:
find: paths must precede expression: mv
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]
Shell Code ist:
# find ./ -name '*tar.gz' mv -v {} "meine-ordner/" \;
Neueste Kommentare
Wildcard
Let’s Encrypt will only accept a wildcard via DNS challenge.
If your Plesk instance can’t create the _acme-challenge.example.com TXT (external DNS), the extension can’t complete validation and will show no success.
Same problem
Warning: Undefined array key "url" in Drupal\Core\Asset\JsCollectionOptimizerLazy->optimizeGroup()set-timezone Europe/Berlin
sudo timedatectl set-timezone Europe/BerlinTry this:1. Go to Tools &…
Try this:
Alternative (without warnings like "no crontab for user")
Alternative (without warnings like "no crontab for dovecot") to see all tasks:
php 8.3 apcu
php 8.3 apcu failed
über Plesk hat es geklappt.
phpize failed error?
install:
# sudo apt install php-devphpize
# sudo apt install…
phpize
# sudo apt install php-devdetails
Problem:
/opt/plesk/php/8.3…
Problem:
Problem:PHP APCu caching…
Problem: