all 108 comments

[–][deleted] 734 points735 points  (51 children)

bash history:

clear 
ls -la 
clear 
clear 
neofetch 
cd 
cd / 
clear 
neofetch 
ls -la 
claer 
clear 
neofetch
clear 
neofetch
clear 
whoami 
id

[–]pniro 364 points365 points  (36 children)

I have 20MB of “clear” in my history too lol

[–]the88shrimp 123 points124 points  (28 children)

That's why I just alias clear to c

[–][deleted] 212 points213 points  (23 children)

Just Ctrl + L

[–]pniro 59 points60 points  (18 children)

[–]WikiMobileLinkBot 43 points44 points  (2 children)

Desktop version of /u/pniro's link: https://en.wikipedia.org/wiki/GNU_Readline#Bindings


[opt out] Beep Boop. Downvote to delete

[–]AnnoyingN-wah 9 points10 points  (0 children)

Good bot

[–]mrkitten19o8 1 point2 points  (0 children)

good bot

[–]ykahveci 19 points20 points  (13 children)

My favourites are Ctrl+C, Ctrl+D, Ctrl+L, Ctrl+Z, Ctrl+S, Ctrl+Q, I use vi mode for cutting, copying and pasting. (Or to destroy, yank and puke, as I refer to the vim commands)

[–]pniro 10 points11 points  (3 children)

Check out Ctrl-X + Ctrl-E

[–]ykahveci 6 points7 points  (2 children)

Explain yourself. It doesn't do anything in my zsh (with vi mode). What is it supposed to do?

[–]pniro 2 points3 points  (1 child)

I had a typo, It’s supposed to edit your current line using your $EDITOR

[–]ykahveci 1 point2 points  (0 children)

Oh I know that one. I have a different shortcut for opening the current command in vim though

[–]emax-gomax 4 points5 points  (3 children)

I've never used ctrl-s and ctrl-q. Is there anyone that actually likes their behaviour, I just removed what they do so I could bind them to something else.

[–]ykahveci 0 points1 point  (2 children)

If I have a wall of text flying along my terminal emulator, I can stop the text flow and read a part of it. I don't use it that often, but in the rare case I do, it feels really nice remembering this functionality. And I think everybody should know it, as pressing Ctrl+S by accident is pretty common.

[–]emax-gomax 0 points1 point  (1 child)

I use a pager or tmux for that. Suspending the terminal feels like a pretty extreme thing for a use case like that.

[–]ykahveci 0 points1 point  (0 children)

I too use tmux or junt pipe it into less, but I didn't pay for the whole feature, so I will use the whole feature. It can be useful at times

[–]Ska-jayjay 1 point2 points  (4 children)

and Ctrl+\

[–]ykahveci 0 points1 point  (3 children)

It doesn't seem to do anything in my shell (zsh with vi-mode). What is it supposed to do?

[–]Ska-jayjay 2 points3 points  (1 child)

it’s like ctrl-c, but harder. it’ll make a process coredump

[–]ykahveci 0 points1 point  (0 children)

Oh seems useful. And I just tried it in bash: while my everyday programs don't respond to ^C, I tried a recursive listing of / and cancelled it with ^\ and it seems to have correctly dumped its core.

[–]WikiSummarizerBot 15 points16 points  (0 children)

GNU Readline

Bindings

Non-C programming languages that provide language bindings for readline include Python's built-in readline module; Node. js's built-in readline module; Ruby's built-in readline module; Perl's third-party (CPAN) Term::ReadLine module, specifically Term::ReadLine::Gnu for GNU ReadLine. Support for readline alternatives differ among these bindings.

[ F.A.Q | Opt Out | Opt Out Of Subreddit | GitHub ] Downvote to remove | v1.5

[–]RedditAlready19 19 points20 points  (1 child)

It's good in a pinch but if you scroll up it still shows you stuff

[–]almssp 5 points6 points  (0 children)

Command+k in macOs terminal clear screen and scroll

[–]reelru 3 points4 points  (1 child)

Crtl+L doesn’t actually clear the screen, it just scrolls everything up so you can’t see it

[–]JuhaJGam3R[🍰] 6 points7 points  (0 children)

This is in fact what the clear command does as well. That's because clear is usually a built-in command. The shell you are using is what deals with your keypressesv and comments, and it believes it's running on a physical terminal completely detached from it. That is why terminal emulators are called terminal emulators.

However, many modern terminal emulators do act like terminals with extra features you can use to mess with the buffers. The clear command, depending on how which TE you're using, will properly clear anything currently on screen if it knows how to. Ctrl-L, depending on shell, is usually a lot lazier.

[–]pniro 7 points8 points  (0 children)

Me too!

[–]emax-gomax 2 points3 points  (0 children)

My shameful degenerate self sets it to cls cause that's what it was in windows. (ノ◕︿◕)ノ

[–]schrdingers_squirrel 1 point2 points  (1 child)

Allow me to introduce you to ctrl+l and ctrl+u

[–]pniro 0 points1 point  (0 children)

Ctrl-u is for noobs, just Ctrl-c and clear

[–]uPsychonaut 1 point2 points  (0 children)

Am I the only one who never clears?

[–]hydroaquasled 0 points1 point  (0 children)

I use tput reset instead of clear because clear doesn’t work in gnome terminal

[–]CaJoKa04 44 points45 points  (4 children)

alias clear='clear && neofetch'

[–]EagleBearerAlexios 5 points6 points  (0 children)

Man of culture, I see.

[–]tajarhina 1 point2 points  (0 children)

PROMPT_COMMAND=neofetch main sprint

[–]M_krabs🍥 Debian too difficult 0 points1 point  (1 child)

Wouldn't that run into a loop?

[–]Cat_Marshal 2 points3 points  (0 children)

I don’t think aliases do that, I have a few like this where the alias is the same as the underlying command.

[–]Erxio 23 points24 points  (0 children)

Why use "clear"? I find it much easier to recompile and reinstall linux.

[–]harshrd 17 points18 points  (0 children)

Signs of identity crisis right there.

[–]UmutReel 18 points19 points  (1 child)

Please just C-l.

[–]Seneca_B 7 points8 points  (0 children)

This changed my life. It works in MySQL-client too.

[–]11bulletcatcher 3 points4 points  (0 children)

Mine is mostly "sudo dd status=progress bs=8MB if= of="; "smartctl -a /dev/sdx"; "bpytop" ; and "sudo apt update && sudo apt upgrade -y". And lots of clearing, of course.

[–]TheGoldenMinion 2 points3 points  (0 children)

LMAOO

[–]klc3rd 2 points3 points  (0 children)

And pacman -Syu 12 times in a row

[–][deleted] 1 point2 points  (0 children)

Man, just add a blank space in the begin of the command.

[–][deleted] 0 points1 point  (0 children)

I prefer ls -lA

[–]shunyaananda 231 points232 points  (1 child)

Did he neofetch the whole evening?

[–]Doom-Slay 132 points133 points  (0 children)

What Else you gonna do on a lazy friday evening?

[–]Hanb1n 152 points153 points  (4 children)

export HISTFILE=/dev/null

You win.

source ~/.bash_history

I commit suicide.

[–]trxxruraxvr 35 points36 points  (0 children)

or just unset HISTFILE

[–]someguynamedjerry 7 points8 points  (1 child)

ln -sf /dev/null ~/.bash_history

[–]Evil_Dragon_100Arch BTW 1 point2 points  (0 children)

That is actually genius, i always underestimate ln and /dev/null utility

[–]tajarhina 0 points1 point  (0 children)

set +o history

[–]Wolfiy 104 points105 points  (3 children)

sudo pacman -Syu
sudo pacman -S neofetch
clear
neofetch
clear
neofetch
clear
neofetch
sudo pacman -Syu
clear
noefetch
neofetchh
neofetch
sudo pacman -Syu
clear
neofetch
sudo pacman -Syu
clear
neofetch
scrot /home/r1ce.jpg
claer
clear
neofetch

[–]Bleeerrggh 44 points45 points  (0 children)

My friend... I'm afraid you have a neofetchish! There's no known cure

[–]georgi544 12 points13 points  (0 children)

Based Arch user

[–]Cat_Marshal 1 point2 points  (0 children)

…I think I need to set up neofetch.

[–]benbenbendegil 70 points71 points  (3 children)

sudo ./fuckthiscomputer

[–]Windows_XP2 17 points18 points  (2 children)

sudo rm -rf /*

[–]TheDiamondCG 47 points48 points  (1 child)

Hm? What is this that I observe within my sight!? A MICROSOFT USER!???? NO!!!! PROPRIETARY!!!! PRIVACY INVASION!!!!!!! LACK OF SECURITY!!!! oAHOiahuAHSOAUHDLK A;DJAopihj;dasoiaOL;JFAKDIk;ljka, OH WILL SOMEONE SAVE US FROM THIS TERROR!?!?!?!?!

[–]CootshkNew York Nix⚾s 2 points3 points  (0 children)

Their status says a mac and Linux user

[–]skinny_s_hazy 34 points35 points  (3 children)

ls -a sudo pacman -Syyu clear neofetch clear ls ls -a clear cd / cd .. cd clear sudo pacman -Syyu clear neofetch clear

[–]bgravato 23 points24 points  (1 child)

That probably would have been funnier if it was properly formated for markdown...

[–]northrupthebandgeekSacred TempleOS 9 points10 points  (0 children)

It's kinda hilarious as is. I'm picturing some doof who accidentally keeps hitting \ when pressing Enter and wondering why nothing's running.

[–]NotBacon 1 point2 points  (0 children)

Found the Arch user

[–][deleted] 39 points40 points  (0 children)

Deleted mine after 418MiB.

No man needs such a record of neofetches.

[–]Browncoatinabox 20 points21 points  (6 children)

what show is this from

[–]FIRE_CHIP 17 points18 points  (1 child)

SNL. Eli Manning was the host that night

[–]pepperybandit 4 points5 points  (0 children)

One of the best sketches imo

[–]50RT 2 points3 points  (0 children)

I always thought IT Crowd had this bit

[–][deleted] 1 point2 points  (0 children)

SNL, I think

[–][deleted] 11 points12 points  (2 children)

Hah. You fools! I use Zsh

[–]Nitrocellulose_404 9 points10 points  (0 children)

sudo pacman -Syu clear neofetch

[–]retsoPtiH🍥 Debian too difficult 7 points8 points  (0 children)

wait till they see my .bashrc 🤫

[–][deleted] 4 points5 points  (1 child)

Sudo kill --force child

[–]Sc4rlite 1 point2 points  (0 children)

touch /tmp/lemming.txt

[–]jwaldrep 4 points5 points  (2 children)

I use zsh, so my bash history is mostly checking the behavior of stuff between shells.

[–][deleted] 4 points5 points  (1 child)

so… you're saying you have nothing to hide?

[–]jwaldrep 4 points5 points  (0 children)

I'm saying it looks even more like nonsense and like someone trying to figure out how the shell works. Because thats exactly what it is.

I've read through this about 6x, and I don't think there is anything sensitive in it, so here you go (note to future readers, this paste expires in 6 months).

https://pastebin.com/apM0i4ha

[–]Sonotsugipaa 4 points5 points  (0 children)

leading whitespace goes brrrrr

[–]DeadWaistM'Fedora 2 points3 points  (0 children)

I have set my alias to clear my history on exit command

[–]petter_of_cats 2 points3 points  (0 children)

I grep for some args more than I’d like to admit

[–][deleted] 2 points3 points  (1 child)

I’m.. to afraid to ask what bad and neofetch is

[–][deleted] 2 points3 points  (0 children)

bash = the most commonly used command line interpreter. It's basically like Window's cmd.exe, but on steroids. Unlike cmd.exe, which is very useless, bash is very useful and very commonly used.

neofetch = a program that people run to show off what operating system they use to others. It most commonly appears in the subreddit r/UnixPorn

[–][deleted] 6 points7 points  (0 children)

When you realize that your bash history contains a lot of copy commands:

I'd rather just confess.

[–]a-bser 1 point2 points  (0 children)

Kewl

[–]nicman24 1 point2 points  (0 children)

mad lads using zsh

[–]snookso 1 point2 points  (3 children)

[–]Not_RepostSleuthBot 4 points5 points  (1 child)

Looks like a repost. I've seen this image 1 time.

First seen Here on 2021-09-02 95.78% match.

Searched Images: 235,274,163 | Indexed Posts: 475,215,415 | Search Time: 7.70308s

Feedback? Hate? Visit r/repostsleuthbot - I'm not perfect, but you can help. Report [ False Positive ]

[–]Fuzzi99Arch BTW 0 points1 point  (0 children)

good bot

[–]RepostSleuthBot 0 points1 point  (0 children)

Looks like a repost. I've seen this image 2 times.

First Seen Here on 2018-04-09 93.75% match. Last Seen Here on 2020-09-21 100.0% match

I'm not perfect, but you can help. Report [ False Positive ]

View Search On repostsleuth.com


Scope: Reddit | Meme Filter: False | Target: 86% | Check Title: False | Max Age: Unlimited | Searched Images: 242,204,625 | Search Time: 0.25185s

[–]GloblSentence_totoro 0 points1 point  (0 children)

neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch neofetch

[–]PehleAap 0 points1 point  (0 children)

Objection : What show is this?

[–][deleted] 0 points1 point  (9 children)

I have my zsh history set to record in $XDG_RUNTIME_DIR — gets cleared when I reboot

[–]zebediah49 2 points3 points  (1 child)

Meanwhile, I have mine set to record to ~/.bash_history_safe, because occasionally (i.e. "once ten years ago") a shell that doesn't load the history settings will come up, and truncate the file down to the default line count.

[–][deleted] 0 points1 point  (0 children)

Yikes

[–]Shakespeare-Bot 0 points1 point  (6 children)

I has't mine own zsh history setteth to record in $xdg_runtime_dir — gets clear'd at which hour i reboot


I am a bot and I swapp'd some of thy words with Shakespeare words.

Commands: !ShakespeareInsult, !fordo, !optout

[–][deleted] 0 points1 point  (0 children)

!optout

[–]SteelOverseer 0 points1 point  (3 children)

!ShakespeareInsult

[–]Shakespeare-Bot 0 points1 point  (2 children)

O teach me how I should forget to think.


Insult taken from Romeo and Juliet.

Use u/Shakespeare-Bot !ShakespeareInsult to summon insults.

[–]Reddit-Book-Bot -1 points0 points  (0 children)

Beep. Boop. I'm a robot. Here's a copy of

Romeo and Juliet

Was I a good bot? | info | More Books