creditCrazy,
@creditCrazy@lemmy.world avatar

Scammers trying to make a virus to infect Linux users

RegalPotoo,
@RegalPotoo@lemmy.world avatar

Talk to your cat about set +o history before they end up leaking credentials

palordrolap,

Can also recommend HISTFILE="", which amounts to the same thing.

ludwik,

Real OGs put a space right after the prompt.

RegalPotoo,
@RegalPotoo@lemmy.world avatar

Not quite. Unsetting HISTFILE, or setting it to an invalid path will mean the shell doesn’t update the history file while it quits. set +o history makes the shell stop recording until you do set -o history, which is useful if you want shell history generally, but don’t want some specific commands to be recorded - if you just unset HISTFILE, the commands still show up if you press the up arrow

synae,
@synae@lemmy.sdf.org avatar

Ctrl-R

tetraodon,

Another fzf’er

XEAL,

A colleague mocked me the other day because I didn’t know about the “history” command and I was using “cat .bash_history”

vox,
@vox@sopuli.xyz avatar

the what command?

meekah, (edited )
@meekah@lemmy.world avatar

they mean arrow up, right?

Rin,

So, yk how the history command outputs something like this:


<span style="color:#323232;">1   Abcd
</span><span style="color:#323232;">2   Efgh
</span><span style="color:#323232;">3   Ijkl
</span>

If you run !2, you will run Efgh.

It blew my mind the first time I saw it, but maybe I’m just stupid.

lemann,

TIL

rtxn,
XEAL,

I actually use quite frequently "sudo !!“, but I didn’t know the details of why it worked…

Now I see more sense in using the history command, specially combined with grep.

platypus_plumba,

Same here, I just assumed it was a special thing that saved the last command. Had no idea it was actually a query to the history

JackGreenEarth,

Get your Apple product placement out of here!

rickdg,
@rickdg@lemmy.world avatar

Not enough bashing.

Presi300,
@Presi300@lemmy.world avatar

laughs in fish shell

dukk,

laughs harder in nushell

Pantherina,

Laughs hardest in nutshell

caseyweederman,

cries in kornshell

Pantherina,

Ponies in Ponyshell?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linuxmemes@lemmy.world
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #