Durchsuchen nach
Tag: delete

Linux Bash: Delete certain file types on your hard drives (no recycling bin)

Linux Bash: Delete certain file types on your hard drives (no recycling bin)

What is the command „find“? Okay, imagine your computer’s hard drive is like a giant library, full of books (files) in different rooms (folders). The find command is like a super-smart librarian that helps you locate specific books based on certain criteria. I create for my videos on YouTube (and Dailymotion) a lot of .mp4 files, because Kdenlive cannot use the container MOV. Kdenlive change it into the .mp4 file format. The mp4 files are bigger as mov files. For…

Weiterlesen Weiterlesen

In Linux Scripts und der Befehl „rm“

In Linux Scripts und der Befehl „rm“

Warum auch immer funktioniert der sonst übliche „rm“ Befehl in Scripts nicht. Die Hintergründe sind mir nicht geläufig und ich habe auch noch nichts gefunden. Es gibt aber eine Alternative. Man benutzt ein anderes Kommando, nämlich „find“. Das ist ein Auszug auf meines Aktualisierungsscript. Der Befehl „find“ ist eigentlich dazu da um Dateien zu finden. Nach der Verzeichnisangabe werden alle regulären Dateien gesucht (-type f) und dann kommt der Henker sozusagen mit dem Befehl -delete. Der Ordner „Trash“ ist der…

Weiterlesen Weiterlesen