• 0 Posts
  • 15 Comments
Joined 8 months ago
cake
Cake day: October 23rd, 2023

help-circle





  • macattack@lemmy.worldtoSelfhosted@lemmy.worldHow do I automount sshfs?
    link
    fedilink
    English
    arrow-up
    0
    arrow-down
    2
    ·
    edit-2
    4 months ago

    I run Debian 12 and ran into similar issues trying to automount NFS, even down to having to use an alternative console to log in and undo f stab edits

    My solution was simple and so hopefully it helps you as well. In fstab, the backslashes don’t cancel out spaces. Since my directory path had a space in it, that would break fstab:

    Path/to/your/Video\ Files breaks fstab

    Path/to/your/VideoFiles good


  • macattack@lemmy.worldtoLinux@lemmy.worldDo you use aliases?
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    5 months ago

    I’ve got a ton, most are already listed or along the same vein.

    The two suggestions I have are not actual aliases but worth remembering:

    • Ctrl + Alt + E - turn your alias into its original command
    • \ - Place before your alias to run the original command’s meaning. Useful if you overwrite a default command (overwriting default commands is not recommended though… often the alias will ignore any options passed through and so let’s say you overwrite rm with another app that deletes files, then you forget that, and then try to delete some files using rm-i to get a prompt for each removed file. Often the alias will just operate as normal w/o a prompt saying that it ignored -i completely)