• 1 Post
  • 94 Comments
Joined 1 year ago
cake
Cake day: July 24th, 2023

help-circle


  • 30p87@feddit.detoProgrammer Humor@programming.devblahaj
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    3 months ago

    Because you would need to know the code for å in all kb layouts, on all OS’s, even in a bare terminal with no way to just open the emoji picker, with or without special keys and no clipboard. Of course, tab completion or globs may help you, but not in all cases.

    Try to select blåhaj.txt in a dir with blåhaj.txt and blahaj.txt present. Easy, ls bl*haj.txt | grep -i blahaj.txt. Now with blåhaj.txt and bløhaj.txt. Not as easy anymore, but doable with tail -n1 or head -n1. Now do it consistently in a script. So you again need to single out the right string, or single char, and >> it into the script so you have the special char. Then you have a component that does not like certain special chars, so you need to escape it. All because one decided to use special chars as a file name/identifier. Using [a-zA-Z0-9-_.:;,]* would be so easy.






  • 30p87@feddit.detoFunny@sh.itjust.worksBut why?
    link
    fedilink
    arrow-up
    3
    ·
    3 months ago

    We do that. But at some point, it has to stop. We can’t just say “one last client” when new ones come in right after the previous leaves, and you don’t want to be unfair. And cleaning takes HOURS. Even in a small fast food restaurant. You need to strategically close things down, preferably things we’re out of anyway.












  • Netcat is basically just a utility to listen on a socket, or connect to one, and send or receive arbitrary data. And as, in Linux, everything is a file, which means you can handle every part of your system (eg. block devices [physical or virtual disks]) like a normal file, i.e. text, you can just transfer a block device (e.g. /dev/sda3) over raw sockets.


  • Nah, it’s probably more efficient to .tar.xz it and use netcat.

    On a more serious note, I use sftp for everything, and git for actual big (but still personal) projects, but then move files and execute scripts manually.

    And also, I cloned my old Laptops /dev/sda3 to my new Laptops /dev/main/root (on /dev/mapper/cryptlvm) via netcat over a Gigabit connection with netcat. It worked flawlessly. I love Linux and its Philosophy.