It's hacker time

backup config files

835 points · 80 comments · view on lemmy.world

80 Comments

jakemehoff11@sh.itjust.works · 126 pts · 88d (24 replies)

Bonus points for using the mouse to copy/paste

queerlilhayseed@piefed.blahaj.zone · 70 pts · 88d (17 replies)

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

NotSteve_@lemmy.ca · 63 pts · 88d (16 replies)

CTRL+shift+[c/v], my beloved

albbi@piefed.ca · 27 pts · 88d (9 replies)

Such an annoying kludge to make a common operation work.

queerlilhayseed@piefed.blahaj.zone · 44 pts · 88d (3 replies)

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.

brisk@aussie.zone · 21 pts · 88d

Super is for my window manager.

Which I guess is kind of where copy paste live so I'm on board, barring semantic nitpicks

Mountainaire@lemmy.world · 1 pts · 87d (1 reply)

Alt+F4 is for p|_|ssies. Alt+Space, X is the ergonomic way to go.

Anarki_@lemmy.blahaj.zone · 1 pts · 86d

The word you're looking for is "pussies".

SpaceNoodle@lemmy.world · 18 pts · 88d

Personally, I think it was quite rude of all of those applications to make the standard "break" command mean "copy."

DmMacniel@feddit.org · 13 pts · 88d (2 replies)

Control commands are older than the shortcuts for cut copy paste though.

albbi@piefed.ca · 3 pts · 87d (1 reply)

I got pretty used to CTRL-INS and Shift-INS for copy and paste. I don't know if those even still work though.

DmMacniel@feddit.org · 1 pts · 87d

yes, yes they do :)

NotSteve_@lemmy.ca · 10 pts · 88d

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😅

toynbee@piefed.social · 5 pts · 88d (2 replies)

See, I prefer middle click.

albbi@piefed.ca · 1 pts · 87d (1 reply)

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

toynbee@piefed.social · 2 pts · 87d

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?

tdawg@lemmy.world · 2 pts · 88d

One of the things I always setup is a pbpaste & pbcopy function to mirror Marcos's. I know that's not what the meme is about but pbpaste > /tmp/filename.json is too handy

Damage@feddit.it · 1 pts · 88d (1 reply)

Shift+ins

albbi@piefed.ca · 2 pts · 87d

My man! 🤜 🤛

DigDoug@lemmy.world · 10 pts · 88d (4 replies)

The true LinuxMan uses middle-mouse click to paste.

DmMacniel@feddit.org · 5 pts · 88d (3 replies)

A truetrue LinuxUser uses the alternative clipboard instead.

Rubanski@discuss.tchncs.de · 1 pts · 86d (2 replies)

The what now?

DmMacniel@feddit.org · 1 pts · 86d (1 reply)

You know Ctrl+z/x/c right? Now check shift+insert, shift+delete, Ctrl+insert.

Rubanski@discuss.tchncs.de · 1 pts · 86d

Uhh interesting!

Echolynx@lemmy.zip · 1 pts · 87d

What season is that still from? I can't remember if I've seen it or not but I only saw about 3 seasons.

slazer2au@lemmy.world · 45 pts · 88d (17 replies)

an hacker?

thefactremains@lemmy.world · 32 pts · 88d (1 reply)

Yes. It's french

queerlilhayseed@piefed.blahaj.zone · 4 pts · 88d

In Quebec they call hackers "dame blanche agaçante"

palordrolap@fedia.io · 19 pts · 88d (1 reply)

Trolling is a art.

jaybone@lemmy.zip · 5 pts · 88d

an art?

degenerate_neutron_matter@fedia.io · 16 pts · 88d (10 replies)
[ removed ]
slazer2au@lemmy.world · 12 pts · 88d (9 replies)

Mountainaire@lemmy.world · 2 pts · 87d (8 replies)

Source?

slazer2au@lemmy.world · 1 pts · 87d (7 replies)

Duck duck go images???

Mountainaire@lemmy.world · 3 pts · 87d (6 replies)

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

slazer2au@lemmy.world · 4 pts · 87d (5 replies)

Have you not seen the 1996 masterpiece, Mars Attacks?

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

Mountainaire@lemmy.world · 2 pts · 86d

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

Lisk91@sh.itjust.works · 3 pts · 88d (1 reply)

🩹

slazer2au@lemmy.world · 1 pts · 87d

:)

thebestaquaman@lemmy.world · 39 pts · 88d (7 replies)

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.

bryndos@fedia.io · 19 pts · 88d (2 replies)

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.

jaybone@lemmy.zip · 4 pts · 88d (1 reply)

Do you mean telnet?

bryndos@fedia.io · 5 pts · 88d

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.

tdawg@lemmy.world · 4 pts · 88d

Don't forget using cmatrix as a sudo-screensaver

tal@lemmy.today · 3 pts · 88d (2 replies)

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.

FudgyMcTubbs@lemmy.world · 1 pts · 86d

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.

thebestaquaman@lemmy.world · 1 pts · 88d

Fair enough, I guess my overall point was more that we've all at some point taken that first step of doing something that now feels mundane, but at the time felt like we were doing something very advanced.

gurty@lemmy.world · 35 pts · 88d

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

jaybone@lemmy.zip · 29 pts · 88d (4 replies)

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.

tal@lemmy.today · 6 pts · 88d (1 reply)

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.

Mountainaire@lemmy.world · 2 pts · 87d

*newbie tries to comprehend*
*head explodes*

corsicanguppy@lemmy.ca · 3 pts · 88d

shit got all fucked up because you added a third party repository

Dependency hell is always, always, self-inflicted.

apt is only SLSA1 or 2 anyway, so there's a lot more wiggle room.

conartistpanda@lemmy.world · 2 pts · 88d

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.

daggermoon@piefed.world · 14 pts · 88d (3 replies)

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

Riverside@reddthat.com · 5 pts · 88d (2 replies)
[ removed ]
hanrahan@slrpnk.net · 3 pts · 88d (1 reply)

amen to that LMDE and use the GUI here

Riverside@reddthat.com · 1 pts · 88d
[ removed ]
Adulated_Aspersion@lemmy.world · 11 pts · 88d (6 replies)

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

You know. Just your standard Hacker, hackin'.

tal@lemmy.today · 5 pts · 88d (5 replies)
$ !!

It keeps its handses on the home row.

tdawg@lemmy.world · 4 pts · 88d (4 replies)

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

queerlilhayseed@piefed.blahaj.zone · 6 pts · 88d (1 reply)

You may enjoy ctrl + r. It hasn't completely replaced grepping history for me but it's close.

Deebster@infosec.pub · 4 pts · 88d

If you trigger fzf with ctrl-r then you might never need to grep again.

tal@lemmy.today · 3 pts · 88d

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
$ 
pinball_wizard@lemmy.zip · 1 pts · 88d

sudo !!

Never again, lol.

Last time I did that, it was not what I remembered. I didn't break anything, but it was close enough that I scared the shit out of myself.

normalentrance@lemmy.zip · 9 pts · 88d (1 reply)

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

tal@lemmy.today · 5 pts · 88d
$ 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.

juipeltje@lemmy.world · 6 pts · 88d

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."

TheEighthDoctor@lemmy.zip · 6 pts · 88d

$ hollywood

bluey@lemmy.world · 6 pts · 88d
M33@piefed.world · 3 pts · 87d

Bitch please: curl install.sh | bash -

Echolynx@lemmy.zip · 3 pts · 87d

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

Bluescluestoothpaste@sh.itjust.works · 3 pts · 87d

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

alice_gosta_de_doces@lemmy.blahaj.zone · 2 pts · 87d

while using kali linux

Avicenna@programming.dev · 2 pts · 87d

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

mazzilius_marsti@lemmy.world · 2 pts · 87d

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.

rumba@lemmy.zip · 1 pts · 87d

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!!!!!

MidsizedSedan@lemmy.world · 1 pts · 87d

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

ekZepp@lemmy.world · 1 pts · 87d

yay -Syu

tal@lemmy.today · 1 pts · 88d
[ removed ]
FuglyDuck@lemmy.world · 0 pts · 88d

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