Durchsuchen nach
Schlagwort: directory

Python: To generate a qrcode – UPDATE

Python: To generate a qrcode – UPDATE

I have updated my little Python script from 29.09.2025. Updates: The modules pathlip and os were imported. Clear the screen (def clear screen). I think that it is better to have a clear screen as you the script begins in the middle of the monitor. The clear command is for Windows and Linux, Unix and BSD (Berkley Software Distribution like FreeBSD, OpenBSD, NetBSD etc.). User input – the user can now add directly an own file name User input –…

Weiterlesen Weiterlesen

How to determine the folder in a directory – size

How to determine the folder in a directory – size

It is a Python script for a Linux operating system: The results are (yes the folders haven the German language, because I live in Germany, and I’m German – sorry for that) Größen der Unterverzeichnisse in /home/sven/Musik 1980-1989: 6,8GMusikvideo: 12M1970-1979: 3,2Gsonstige_Musik: 6,7G1990-1999: 121MPodcast: 5,8G1960-1969: 2,7GWeihnachten: 921M2000-2009: 8,5G2010-2019: 1,7GHörbücher: 92MKlassik: 1,5GMusikalben: 3,5Gerster_Versuch: 136K1950-1959: 95M

Linux Bash: to find the biggest folder in a directory.

Linux Bash: to find the biggest folder in a directory.

In order to find the biggest folder in a directory. You need the find command and xargs find . -type d -iname „Linu*“ -print0 | xargs -0 ls -ldhS The output: find . -type d -iname „Linu*“ -print0 | xargs -0 ls -ldhSdrwxr-xr-x. 1 sven sven 490 19. Mai 15:07 ./Videos/eigene_Aufnahmen/Linuxdrwxr-xr-x. 1 sven sven 348 6. Jul 21:06 ./Linux_PCdrwxr-xr-x. 1 sven sven 194 4. Sep 2024 ./.local/lib/python3.12/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_macdrwxr-xr-x. 1 sven sven 194 14. Mai 07:59 ./.local/lib/python3.13/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_macdrwxr-xr-x. 1 sven sven 172 9….

Weiterlesen Weiterlesen