u/lukmly013 💾 (lemmy.sdf.org)

I like computers, trains, space, radio-related everything and a bunch of other tech related stuff. User of GNU+Linux.
I am also dumb and worthless.
My laptop is HP 255 G7 running Manjaro and Linux Mint.
I own RTL-SDRv3 and RSP1 clone.

SDF Unix shell username: user224

  • 126 Posts
  • 3.06K Comments
Joined 2 years ago
cake
Cake day: June 17th, 2023

help-circle











  • Depends for whom.

    I got a 2-in-1 ThinkPad L390 Yoga, and for me, that’s absolutely awesome. But the S10+ weights only 571g, this ThinkPad is 1.54kg. I personally don’t mind the weight though.
    And the keyboard is already built in. It kinda sounds like you’re basically searching for a laptop.

    Originally, I thought I wouldn’t even use the touchscreen, I only took it as I heard that the yoga version has better display colors, but oh wow does it make sense on a portable device. Something like viewing a map makes far more sense, it’s also better for scrolling and in KDE Plasma I also have gestures for nicer window switching.
    And I can also just use it as a full on tablet if I flip the keyboard around.

    Never have I thought I’d want laptop with a touchscreen, but now I don’t want one without it.






  • Welcome.

    Don’t blindly copy-paste commands from the web (on any OS).

    If someone gives you commands check the man page to figure what it actually does.
    Let’s say some prankster gives you a command to “free up wasted disk space”: sudo rm -rf --no-preserve-root /

    sudo let’s you execute commands as root (similar to “run as Administrator” on Windows), so let’s skip to rm

    man rm let’s you view the manual, though you can also use the internet. There’s also info pages, but I always just get confused by those.

    To quit press q. Now let’s see what the stuff does. -rf are 2 short options which could also be written as -r and -f. Though confusingly some commands use single hyphen for long options too…

    Anyway, let’s search for it. Slash searches forward, question mark backwards. n goes to next find, N to previous.
    On top you see

    NAME
           rm - remove files or directories
    
    SYNOPSIS
           rm [OPTION]... [FILE]...
    

    So you know rm removes stuff. There’s also a description below I haven’t copied which also states directories (folders) aren’t deleted by default.
    Let’s search for -r using / -r (3 spaces before option so it doesn’t match “-r” elsewhere in text)

    -r, -R, --recursive
                  remove directories and their contents recursively
    

    Well, if we had -R or --recursive the 3 spaces would break it, but anyway… So now you know this option let’s you delete directories and their contents including sub-directories.
    Next let’s try / -f

    Pattern not found  (press RETURN)
    

    So either it’s not indented with 3 spaces like the -R, OR it’s somewhere above. ? -f finds it above

    -f, --force
                  ignore nonexistent files and arguments, never prompt
    

    So this will just keep going regardless of errors. / --no-preserve-root

    --no-preserve-root
                  do not treat '/' specially
    

    Because /, the target file/directory in the above example, is the root of the filesystem, there’s probably no good reason to attempt removing it. This wasn’t always the case, but it was added later, in 2006 it seems.

    I specifically chose this command because it’s an often-used joke, but it could be worse, like executing some malware, etc…
    Basically, by blindly copy-pasting commands, you let someone, most likely a stranger, use your computer for you. And they may not always have good intentions.

    Same goes for running random scripts/programs, but I guess those already look scary enough by default.