shell

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
shell [13/10/2024 - 05:43] thommie4shell [25/12/2024 - 17:00] (aktuell) – [Shell Basics] thommie_netzwissen.de
Zeile 1: Zeile 1:
-====== Shell allgemein ======+====== Shell Basics ======
  
 [[http://www.gnu.org/software/bash/manual/bashref.html|http://www.gnu.org/software/bash/manual/bashref.html]] [[http://www.gnu.org/software/bash/manual/bashref.html|http://www.gnu.org/software/bash/manual/bashref.html]]
  
 [[https://www.shellscript.sh/|https://www.shellscript.sh/]] [[https://www.shellscript.sh/|https://www.shellscript.sh/]]
- 
-[[http://www.linux-services.org/shell/|http://www.linux-services.org/shell/]] 
  
 ===== GB keyboard ===== ===== GB keyboard =====
Zeile 74: Zeile 72:
 =====   Find   ===== =====   Find   =====
  
-Alle Dateien älter als xxx finden+Alle Dateien älter als 365 Tage finden 
 <code> <code>
-find ./ -mtime +365 -type f+find /mnt/pve/sb_u203461/dump/ -mtime +365 -type f
 </code> </code>
  
-Luxus Variante+Mit löschen: 
 + 
 +<code> 
 +find /mnt/pve/sb_u203461/dump/ -mtime +365 -type f -delete 
 +</code> 
 + 
 +Luxus Variante mit Backup
  
 <code> <code>
Zeile 107: Zeile 112:
 </code> </code>
  
- +===== sed =====
-==== sed ====+
  
 replace "-d" with "-d " replace "-d" with "-d "
Zeile 123: Zeile 127:
  
  
 +===== Alte Kernels raus schmeissssen =====
 +
 +<code>
 +uname -mrs = current kernel
 +dpkg --list | egrep -i --color 'linux-image|linux-headers'
 +aptitude purge linux-image-5.10.0-{18,19,20}-amd64
 +update-grub
 +reboot
 +<code>
  • shell.1728798201.txt.gz
  • Zuletzt geändert: 13/10/2024 - 05:43
  • von thommie4