this post was submitted on 15 Jan 2026
355 points (99.2% liked)

linuxmemes

28974 readers
673 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don't come looking for advice, this is not the right community.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     

    "Everything is a file" is what made me start understanding linux few years ago and from there it got easier to use with each new concept.

    Still this was really revolutionary to me when I first heard it. Made a bunch of things just click.

    you are viewing a single comment's thread
    view the rest of the comments
    [–] janet_catcus@lemmy.blahaj.zone 12 points 4 days ago (2 children)

    it's all fun and games until you want to use your mouse and keyboard inputs on another machine and also view the other machines screen contents. then all of a sudden stuff stops being a file. quaint.

    if only there was a way to share resources over a network...

    [–] FooBarrington@lemmy.world 11 points 4 days ago (2 children)

    Why aren't the Linux devs just using SMB to forward the mouse and keyboard files? Are they stupid?

    [–] mumblerfish@lemmy.world 23 points 4 days ago

    What do you mean? This

    remoteuser@server$ nc -l -p 4444 > /dev/input/event0
    
    
    localuser@laptop$ cat /dev/input/event0 | nc server 4444
    

    doesn't work?

    eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeew scoots faaaar away from you actually when writing the prior comment, i was thinking about the ease that is doing what i described on plan9, there everything is in fact a file, which you can simply mount via the 9p protocol

    what mumblerfish suggests looks interesting and i would have to read some the man page of "nc", i suppose...

    [–] FauxLiving@lemmy.world 6 points 3 days ago (1 children)

    I've figured out how to control computers remotely and I'll share the script:

    Client:

    #!/bin/bash
    PASSWORD="your_password_here"
    sshpass -p "$PASSWORD" scp /dev/stdin user@server:/path/to/cmd.txt <<< "$1"
    

    Server:

    #!/bin/bash
    while true; do
        while IFS= read -r line; do
            eval "$line"
        done < "cmd.txt"
        > "cmd.txt"
    done
    

    Just chmod 777 both files and run as root, ez.

    [–] jim3692@discuss.online 4 points 3 days ago (1 children)

    What's the difference between this and the classic "ssh user@server" ?

    [–] FauxLiving@lemmy.world 2 points 3 days ago (1 children)

    we're fans of internet horror memes and being loud in libraries. so we love scp and hate ssh

    [–] jim3692@discuss.online 3 points 2 days ago (2 children)
    [–] FauxLiving@lemmy.world 1 points 2 days ago

    Don't judge me

    [–] caseyweederman@lemmy.ca 0 points 2 days ago (1 children)

    In case you were genuinely curious: the above humorous example bypasses very many very good safety precautions and conveniences.
    When you boil everything down, one element stands out: the s in scp stands for ssh, so you are in fact still using ssh, just with several hoops bolted on.

    [–] FauxLiving@lemmy.world 2 points 1 day ago (1 children)

    the above humorous example bypasses very many very good safety precautions and conveniences.

    I was taught in school that security and convenience are diametrically opposed, so if you can find any way of making this less secure/more convenient I'd be happy to deploy it to the entire credit union.

    [–] caseyweederman@lemmy.ca 2 points 1 day ago (1 children)

    Just make the entire filesystem 777. And bypass the ssh warning when id_rsa is too permissible.

    [–] FauxLiving@lemmy.world 2 points 1 day ago

    By god, imagine the labor savings we're about to experience