• Re[2]: [gentoo-user] Books about making shell scripts and other nifty c

    From Stefan Schmiedl@21:1/5 to All on Thu Jun 5 22:00:02 2025
    ------ Original Message ------
    From "Dale" <rdalek1967@gmail.com>
    To gentoo-user@lists.gentoo.org
    Date 05.06.2025 18:59:36
    Subject Re: [gentoo-user] Books about making shell scripts and other
    nifty commands.


    Like that command mountpoint. I was wondering how one can check if
    something is mounted or not. No idea that existed. o_O

    Get into the habit of perusing `apropos` when you're bored or
    investigating:

    ~ % apropos -s 1 mount
    free (1) - Display amount of free and used memory in the
    system
    fusermount (1) - mount and unmount FUSE filesystems
    mountpoint (1) - see if a directory or file is a mountpoint
    restic-mount (1) - Mount the repository
    sleep (1) - delay for a specified amount of time

    Unix systems do not only feed you fish, they also teach you how to fish.
    You just need to ask.

    TIL: I can mount my restic backups for quick "whoops" restorations :-)

    s.
    <html><head>

    <style id="signatureStyle" type="text/css"><!--#xfb3ff97bc064478 #xe61c1979f7dd4eaeb9a72a2370c0e757 p
    {margin: 0px;}
    #xfb3ff97bc064478 #xe61c1979f7dd4eaeb9a72a2370c0e757
    {font-family: "Segoe UI"; font-size: 12pt;}
    #xfb3ff97bc064478 #xe61c1979f7dd4eaeb9a72a2370c0e757 p
    {margin: 0px;}
    </style><style id="css_styles" type="text/css"><!--blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc }
    blockquote.cite2 {margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc; margin-top: 3px; padding-top: 0px; }
    a img { border: 0px; }
    li[style='text-align: center;'], li[style='text-align: center; '], li[style='text-align: right;'], li[style='text-align: right; '] { list-style-position: inside;}
    body { font-family: Consolas; font-size: 11pt; }
    .quote { margin-left: 1em; margin-right: 1em; border-left: 5px #ebebeb solid; padding-left: 0.3em; }
    a.em-mention[href] { text-decoration: none; color: inherit; border-radius: 3px; padding-left: 2px; padding-right: 2px; background-color: #e2e2e2; }
    ._em_placeholder {color: gray; border-bottom: 1px dotted lightblue;} ._em_placeholder:before{color:gray; content: '{{ ';} ._em_placeholder:after{color:gray; content: ' }}';}
    </style></head>
    <body><div><span>------ Original Message ------</span></div><div>
    <div>From "Dale" &lt;<a href="mailto:rdalek1967@gmail.com">rdalek1967@gmail.com</a>&gt;</div>
    <div>To <a href="mailto:gentoo-user@lists.gentoo.org">gentoo-user@lists.gentoo.org</a></div>
    <div>Date 05.06.2025 18:59:36</div>
    <div>Subject Re: [gentoo-user] Books about making shell scripts and other nifty commands.</div></div><div x-em-quote=""><br /></div><div id="xa4ef64ca915e454" class="plain"><blockquote cite="59793a9d-d716-1474-687f-6afc4cf8d812@gmail.com" type="cite"
    class="cite2">


    <div class="plain_line"> </div>
    <div class="plain_line">Like that command mountpoint.  I was wondering how one can check if</div>
    <div class="plain_line">something is mounted or not.  No idea that existed.  o_O </div></blockquote><span><div id="xa4ef64ca915e454" class="plain"><span><br /></span></div>Get into the habit of perusing `apropos` when you're bored or investigating:</
    span></div><div id="xa4ef64ca915e454" class="plain"><span><br /></span></div><div id="xa4ef64ca915e454" class="plain"><span>~ % apropos -s 1 mount
    </span></div><div id="xa4ef64ca915e454" class="plain"><span>free (1)             - Display amount of free and used memory in the system
    </span></div><div id="xa4ef64ca915e454" class="plain"><span>fusermount (1)       - mount and unmount FUSE filesystems
    </span></div><div id="xa4ef64ca915e454" class="plain"><span>mountpoint (1)       - see if a directory or file is a mountpoint
    </span></div><div id="xa4ef64ca915e454" class="plain"><span>restic-mount (1)     - Mount the repository
    </span></div><div id="xa4ef64ca915e454" class="plain"><span>sleep (1)            - delay for a specified amount of time</span></div><div id="xa4ef64ca915e454" class="plain"><span><br /></span></div><div id="xa4ef64ca915e454" class="plain">Unix
    systems do not only feed you fish, they also teach you how to fish.</div><div id="xa4ef64ca915e454" class="plain">You just need to ask.</div><div id="xa4ef64ca915e454" class="plain"><br /></div><div id="xa4ef64ca915e454" class="plain">TIL: I can mount my
    restic backups for quick "whoops" restorations <span style="color: rgb(0, 0, 0); font-size: 11pt;">:-)</span></div><div id="xa4ef64ca915e454" class="plain"><span><br /></span></div><div id="xa4ef64ca915e454" class="plain">s.</div>


    </body></html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)