backup config files

top 75 comments

sorted by: hot top controversial new old
[–] 119 points 5 months ago (17 children)

Bonus points for using the mouse to copy/paste

  • source
  • hideshow 17 child comments
  • [–] 66 points 5 months ago (14 children)

    Only way to do it. everyone knows ctrl-c angers the terminal daemons.

  • source
  • parent
  • hideshow 14 child comments
  • [–] 58 points 5 months ago (13 children)
  • [–] 24 points 5 months ago (6 children)

    Such an annoying kludge to make a common operation work.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 42 points 5 months ago (3 children)

    My hot take: cross-application or system-wide shortcuts like copy/paste should all be controlled with the Super/Meta key. Looking hard at you, alt-F4.

    App developers, you get your pick of Shift, Ctrl, and Alt modifiers. Super/Meta is for the OS only.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 9 points 5 months ago

    I guess I'm so used to it at this point that I just add the shift automatically and don't really consider it annoying

    Such an annoying kludge to make a common operation work.

    That describes nearly everything in software, doesn't itπŸ˜…

  • source
  • parent
  • [–] 5 points 5 months ago (2 children)
  • [–] 1 point 5 months ago (1 child)

    I prefer to keep my hand away from my mouse if possible. And I'm not even a vim user!

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 5 months ago

    Same! Well, about the mouse. I am definitely a vi (and all its variants) user.

    However, for transferring text between windows, the mouse is probably the best option. It's not necessarily needed for highlighting, but definitely beneficial. If you don't like ctrl+shift+v or middle click, shift+insert often works?

  • source
  • parent
  • [–] 43 points 5 months ago (17 children)
  • [+] 16 points 5 months ago (10 children)
  • [–] 12 points 5 months ago (9 children)
  • [–] 2 points 5 months ago (8 children)
  • [–] 1 point 5 months ago (7 children)
  • [–] 3 points 5 months ago (6 children)

    Oh, I wasn't sure if that character was from some media.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 4 points 5 months ago (5 children)

    Have you not seen the 1996 masterpiece, Mars Attacks?

    https://www.imdb.com/title/tt0116996/

  • source
  • parent
  • hideshow 5 child comments
  • [–] 2 points 5 months ago (4 children)

    Oh. Nope, though I now see how it may have put Pierce Brosnan on the radar...

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 5 months ago (3 children)

    ........... It didn't. Have you not heard of James Bond or Remington Steele

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 5 months ago (2 children)

    What I mean was prior to 007, like maybe getting him known even to be cast for that!

  • source
  • parent
  • hideshow 2 child comments
  • [–] 36 points 5 months ago (7 children)

    Let's be reasonable: We were all at some point at the stage where doing anything at all in the terminal made us feel like a god.

  • source
  • hideshow 7 child comments
  • [–] 16 points 5 months ago (2 children)

    It's weird to have grown up with things like bbc micro and MS-DOS and see how alien the terminal is to people who didn't.

    Back then CLIs were all over, even like library catalog terminals, were CLI. TBF some still had card indexes though.

    At university everyone had to ssh in to the email server from whatever tty client even on windows (nt4/nt5/98/2k/mackintosh PCs).

    You definitely didn't feel like any hacker. The hacker level thing was to successfully connect via GUI mail client and actually have your emails update and sync properly - very few bothered.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 4 points 5 months ago (1 child)
  • [–] 5 points 5 months ago

    Very possibly.

    I vaguely remember using putty on port 22 which i thought was ssh, but maybe it was telnet. we were leaving the 90s by then, so I think ssh was around. Might also have been different protocol on the uni LAN vs WAN connections.

    The libraries I remember might have been direct terminals to local server. Few catalogs were available even on the uni-wide LAN. No big deal really since you're going to have to go there to find the book anyway.

    The catalog room was an acceptable place to have a chat or lament the size of the reading list.

  • source
  • parent
  • [–] 3 points 5 months ago (2 children)

    We were all at some point at the stage where doing anything at all in the terminal made us feel like a god.

    Some of us were at the point where GUIs weren't a thing and the terminal was the only option.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 5 months ago

    Msdos on my family's Commodore taught me my foundation of computer literacy. Then Q-Crack and editing the Duke Nukem 3D config file and sharing it with a friend so we could play over the modem together expanded my understanding and confidence. Linux paired with google searches/forums just seemed like a natural progression to me.

  • source
  • parent
  • [–] 35 points 5 months ago

    Watches update run in terminal and nods sagely as if understanding it all

  • source
  • [–] 29 points 5 months ago (4 children)

    Until your shit got all fucked up because you added a third party repository. And then you have to manually remove lock files and fix the pkg database and mess with .conf files and manually uninstall specific versions of dependent packages, and then manually re-enable some remote repo.

    Then you actually kind of do feel like a hacker.

    Until you’ve done it like 10 different times, then you are just annoyed. Still a better love story than Twilight.

  • source
  • hideshow 4 child comments
  • [–] 6 points 5 months ago* (1 child)

    You copy paste the command.

    $ sudo apt update
    -bash: sudo: command not found
    $
    

    Your distro doesn't set up/install sudo by default, so your first task is installing sudo, then understanding /etc/sudoers syntax and understanding why the command to atomically replace /etc/sudoers is visudo and why on a multiuser system there's value to atomic replacement. In the meantime, you probably learn about su and maybe, if your distro has disabled them, how to enable switching to the kernel virtual consoles on tty1 through tty7 so that in the meantime, you can do things as root while staying logged in. Also, you're going to learn about environment variables, so as to set EDITOR, and where your shell config files live, what a login shell is, and in what shells ~/.bash_profile, ~/.profile, and ~/.bashrc run. Also, you first try running visudo as a regular user, but your distro places visudo in /usr/sbin instead of /usr/bin, so you can't figure out why it's not installed and are going to learn about the FHS and mlocate and updatedb so that you can find /usr/sbin/visudo and dpkg -S so that you can figure out which package it's in and confirm that it's actually installed and learn about PATH.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 5 months ago*

    This fucking idiot here changed their debian branch to sid then wondered why the software store didnt work. Luckly I always backup config files. I mean, it's not that complicated to change some lines back, but still.

    Also it's a vbox vm so I could always restore a snapshot. And it exists to tweak so it was meant to be.

  • source
  • parent
  • [–] 14 points 5 months ago (3 children)

    We all have to start somewhere. I remember when that was me.

  • source
  • hideshow 3 child comments
  • [–] 9 points 5 months ago (1 child)

    Start btop in another full screen terminal, and then run apt update. Then you're fully in the matrix.

  • source
  • hideshow 1 child comment
  • [–] 5 points 5 months ago*
    $ sudo apt install cool-retro-term hollywood
    $ TMUX='' cool-retro-term --fullscreen -e hollywood
    

    You don't need to unset TMUX if you aren't already using and inside tmux, but including in case someone is.

  • source
  • parent
  • [–] 9 points 5 months ago (6 children)

    Even better the SECOND time you do it with the up arrow.

    You know. Just your standard Hacker, hackin'.

  • source
  • hideshow 6 child comments
  • [–] 5 points 5 months ago (5 children)
    $ !!
    

    It keeps its handses on the home row.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 4 points 5 months ago (4 children)

    sudo !! Is nice but I mostly use the up arrow to repeat something long and complicated I did 10 minutes ago. The joke there is sometimes that takes too long too. So that's where history | grep 'keyword' is nice

  • source
  • parent
  • hideshow 4 child comments
  • [–] 3 points 5 months ago* (last edited 5 months ago)

    history | grep 'keyword'

    If it's bash, it's using readline, which is in emacs-like mode by default, and so you can probably use Control-R to do a reverse i-search (incremental search). Enter to invoke the command. Control-C to abort i-search.

    If a search matches multiple candidates, tap Control-R multiple times to cycle back through results.

    EDIT: Also, ! has a built-in search, so if you are sure of the starting string, you can just do that. I generally prefer to use the interactive search to confirm that I'm not invoking something wonky.

    $ touch a
    $ rm a
    $ touch a
    $ !rm
    rm a
    $ 
    
  • source
  • parent
  • [–] 6 points 5 months ago

    $ hollywood

  • source
  • [–] 6 points 5 months ago*

    Me when i fork dwl just to add a few patches that i did not create myself, just so i can make my own package for it.

    "You know, i'm something of a developer myself."

  • source
  • [–] 6 points 5 months ago

    When i tell claude to change the filenames from spelled out dates to hyphenated dates XD

  • source
  • [–] 3 points 5 months ago

    Bitch please: curl install.sh | bash -

  • source
  • [–] 3 points 5 months ago

    Wait until you get on the sudo apt upgrade -U -y train

  • source
  • [–] 2 points 5 months ago* (last edited 5 months ago)

    while using kali linux

  • source
  • [–] 2 points 5 months ago* (last edited 5 months ago)

    imagine how you would feel if you alias that to update, mind blown

  • source
  • [–] 2 points 5 months ago

    sudo apt update either has little outputs (so nothing to show off), or it crashes because of library conflict

    For me it was: pacstrap -K /mnt blah blah to see literally everything comesin your system getting installed , followed by arch-chroot /mnt

    Oh btw, I used Arch.

  • source
  • [–] 1 point 5 months ago

    Are you SURE that is the first command new users type? I remember adding neofetch to my .bashrc (infact, I might don't again)

  • source
  • [–] 1 point 5 months ago

    LOL, I was at my sons track meet. Opened my laptop to play a game. Decrypted NixOS, and was waiting for it to splarg pre-ui the kids in the tent said... ARE YOU HACKING!!!!!

  • source
  • [–] 1 point 5 months ago
    [–] 0 points 5 months ago

    Hey boys. getta load of this guy. he doesn't use arch.

  • source