Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. Speicherplatz von entferntem System auslesen (df -h)

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Speicherplatz von entferntem System auslesen (df -h)

    This topic has been deleted. Only users with topic management privileges can see it.
    • David G.
      David G. last edited by David G.

      Danke für die ganzen Antworten.

      Ich habe es jetzt mal mit Linux-control getestet.

      Mein

      df -h /dev/sdb1
      

      schreibt das Ergebniss schön in einen Datenpunkt.

      Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
      /dev/sdb1       2,0T    1,6T  307G   84% /cloudplan
      

      Gibt es auch Befehle, mit denen ich mir Größe, Benutzt, Verf. und Verw% einzeln auslesen kann?

      Ansonsten zerlege ich mir das mit Blockly.

      liv-in-sky Thomas Braun 2 Replies Last reply Reply Quote 0
      • liv-in-sky
        liv-in-sky @David G. last edited by

        @david-g

        liest du die post auch ?

        https://forum.iobroker.net/post/685049

        David G. 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @David G. last edited by

          @david-g

          Entweder mit awk zerhacken oder mit der FIELD_LIST:

          https://linuxcommand.org/lc3_man_pages/df1.html

          1 Reply Last reply Reply Quote 0
          • David G.
            David G. @liv-in-sky last edited by

            @liv-in-sky

            Sorry,

            hatte es gelesen aber nicht ganz verknüpft in meinem Kopf........

            Habe jetzt

            df -h /dev/sdb1 | awk `NR==2 {print $2}`
            

            probiert.

            Habe aber scheinbar einen Fehler drinnen.

            cloudplan@Cloudplan-VM-Server:/$ df -h /dev/sdb1 | awk `NR==2 {print $2}`
            Der Befehl »{print« wurde nicht gefunden, meinten Sie vielleicht:
             Befehl »qprint« aus dem Paket »qprint« (universe)
             Befehl »print« aus dem Paket »mime-support« (main)
            {print: Befehl nicht gefunden.
            Usage: awk [POSIX or GNU style options] -f progfile [--] file ...
            Usage: awk [POSIX or GNU style options] [--] 'program' file ...
            POSIX options:          GNU long options: (standard)
                    -f progfile             --file=progfile
                    -F fs                   --field-separator=fs
                    -v var=val              --assign=var=val
            Short options:          GNU long options: (extensions)
                    -b                      --characters-as-bytes
                    -c                      --traditional
                    -C                      --copyright
                    -d[file]                --dump-variables[=file]
                    -D[file]                --debug[=file]
                    -e 'program-text'       --source='program-text'
                    -E file                 --exec=file
                    -g                      --gen-pot
                    -h                      --help
                    -i includefile          --include=includefile
                    -l library              --load=library
                    -L[fatal|invalid]       --lint[=fatal|invalid]
                    -M                      --bignum
                    -N                      --use-lc-numeric
                    -n                      --non-decimal-data
                    -o[file]                --pretty-print[=file]
                    -O                      --optimize
                    -p[file]                --profile[=file]
                    -P                      --posix
                    -r                      --re-interval
                    -S                      --sandbox
                    -t                      --lint-old
                    -V                      --version
            
            To report bugs, see node `Bugs' in `gawk.info', which is
            section `Reporting Problems and Bugs' in the printed version.
            
            gawk is a pattern scanning and processing language.
            By default it reads standard input and writes standard output.
            
            Examples:
                    gawk '{ sum += $1 }; END { print sum }' file
                    gawk -F: '{ print $1 }' /etc/passwd
            
            
            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @David G. last edited by

              @david-g sagte in Speicherplatz von entferntem System auslesen (df -h):

              Da fehlt das Paket mit print drin:

              Befehl »qprint« aus dem Paket »qprint« (universe)
              Befehl »print« aus dem Paket »mime-support« (main)

              Aber du wolltest ja nichts nachinstallieren.

              liv-in-sky David G. 2 Replies Last reply Reply Quote 0
              • liv-in-sky
                liv-in-sky @Thomas Braun last edited by

                @thomas-braun

                kann mich nicht erinnern, dass ich das jemals installieren mußte (debian 10) - fällt dir ein anderer befehl ein ?

                1 Reply Last reply Reply Quote 0
                • David G.
                  David G. @Thomas Braun last edited by

                  @thomas-braun

                  So eine Kleinigkeit kann ich nachinstallieren.
                  Da meckert keiner aus der EDV.
                  Ist ein Ubuntusystem.

                  Dann

                  sudo apt install qprint
                  

                  Für print finde ich den Befehl nicht.

                  Einfach

                  sudo apt install print
                  

                  ?

                  Thomas Braun liv-in-sky 2 Replies Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @David G. last edited by

                    @david-g

                    Ich würde wohl eher das Paket

                    mime-support aus dem main-Repo nehmen.

                    sudo apt install mime-support
                    
                    1 Reply Last reply Reply Quote 1
                    • liv-in-sky
                      liv-in-sky @David G. last edited by

                      @david-g hilft das https://stackoverflow.com/questions/30948436/trying-to-use-awk-to-print-a-column-but-says-print-not-found

                      andere hochkommas

                      David G. 1 Reply Last reply Reply Quote 1
                      • David G.
                        David G. @liv-in-sky last edited by

                        @liv-in-sky

                        Hab grad auch noch getestet.
                        Erst das qprint nachinstalliert. Ohne Erfolg.

                        Dann sind mir auch die Hochkommas aufgefallen, dass die bei mir was schief stehen und bei dir nicht.
                        Mit den richtigen Hochkommas klappt es jetzt, auch ohne das print nachzuinstallieren.

                        Ich danke euch vielmals.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        436
                        Online

                        31.9k
                        Users

                        80.3k
                        Topics

                        1.3m
                        Posts

                        5
                        17
                        794
                        Loading More Posts
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes
                        Reply
                        • Reply as topic
                        Log in to reply
                        Community
                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                        The ioBroker Community 2014-2023
                        logo