Spring Cleaning your Home! (~/, That is...)

Поделиться
HTML-код
  • Опубликовано: 21 янв 2025

Комментарии • 766

  • @LukeSmithxyz
    @LukeSmithxyz  4 года назад +457

    Remember kids! The only true way to be a minimalist is to recursively force rm your entire ~/!

    • @ivailopetrov2827
      @ivailopetrov2827 4 года назад +10

      do a meme review on tradwife pls

    • @k2beast879
      @k2beast879 4 года назад +22

      sudo rm -rf ~/.* is

    • @ResonantFractal
      @ResonantFractal 4 года назад +11

      yeah kids... just don't do a sudo rm -rf ~/../* - that would be a bit too minimalistic...

    • @erickrauss4006
      @erickrauss4006 4 года назад +7

      no no guys you also half to pass it this argument (--no-preserve-root) to get by the fail-safe so minimalism is more like this (#rm -rv --no-preserve-root /) p.s. new users this is a joke do not run that command you will nuke your computer. not that the data is gone completely as the disk space will not be overwritten with zeros or anything . but recovery is time consuming and not a 100%.

    • @blank2707
      @blank2707 4 года назад +4

      140... I blame windows.

  • @bruderdasisteinschwerermangel
    @bruderdasisteinschwerermangel 4 года назад +295

    Luke really took the "boomer ranting in the woods" meme even further

    • @jamesm5192
      @jamesm5192 4 года назад +17

      I want to see a kernel compiled by a campfire! Everyone roasting marshmallows and you're enabling preempt and hardware specific flags...

    • @bruderdasisteinschwerermangel
      @bruderdasisteinschwerermangel 4 года назад +11

      @@jamesm5192
      Campfire programming session!
      Campfire programming session!
      Campfire programming ses-

  • @Mawkler
    @Mawkler 4 года назад +430

    Luke: "Keep your home directory clean!"
    Also Luke: Puts downloads in his home directory like a savage

    • @stumbling
      @stumbling 4 года назад +9

      I may do this too. I never really understood the Downloads folder.

    • @alerighi
      @alerighi 4 года назад +25

      @@stumbling To not get junk accumulate in your system. I usually save everything in Download till the download folder is like 10Gb or more where I do a simplce rm -r Downloads/*, saving them in the home directory you must delete them manually one by one.

    • @edvonrattlehead2135
      @edvonrattlehead2135 4 года назад +1

      I also save some downloads to home... it's like crack addiction, even if you move them to Downloads directory you still doenload random stuff to home...

    • @_smhmd
      @_smhmd 4 года назад +14

      Downloads belong in /tmp/ unless you go out of your way to save them.

    • @stumbling
      @stumbling 4 года назад +4

      @@alerighi This seems like having a very large rug to sweep things under rather than actually helping keep things organised.

  • @ThePhiliposophy
    @ThePhiliposophy 4 года назад +76

    Before watching this video: 50
    After: 13
    Thank you Luke Smith for inspiring me to clean my Home!

  • @BradMitchell4
    @BradMitchell4 4 года назад +165

    Cheat code: Using 'A' instead of 'a' will improve your score by 2 points.

    • @ekim4926
      @ekim4926 9 месяцев назад +2

      But it would be the more "correct" score, right? Since it doesn't list `.` and `..`, which is the same for all directories anyway

  • @mark7824
    @mark7824 4 года назад +62

    Luke: mv ~/* .config/
    Also Luke: muh my home is so clean

    • @amosnimos
      @amosnimos 3 года назад +4

      Wouldn't that also put .config in .config recursivelly?

    • @DMSBrian24
      @DMSBrian24 2 года назад +9

      @@amosnimos nope itll throw an exception and leave it out but move the rest

  • @larry_the
    @larry_the 3 года назад +26

    I remember watching this video and not knowing a single thing that is going on. Life really goes downhill...

  • @一郎-e1i
    @一郎-e1i 4 года назад +24

    /home sweet /home!

  • @AZEMBadlen
    @AZEMBadlen 4 года назад +86

    You should've used ls -A as it removes directory listing of . and ..

    • @christbaumer
      @christbaumer 4 года назад +7

      Man of culture.

    • @thomaspsteven
      @thomaspsteven 4 года назад +1

      best, thanks

    • @bendover4728
      @bendover4728 4 года назад +40

      ls -a is bloated af

    • @RaveenKumar
      @RaveenKumar 4 года назад +17

      He is reducing the additional effort of pressing shift. Minimalism.

    • @heyyitsultima
      @heyyitsultima 4 года назад +5

      @@RaveenKumar this is why you alias ls -A to la

  • @jsnjyn
    @jsnjyn 4 года назад +21

    3:12 “…if you go to th-actually, let’s get my face, so you don’t forget what I look like…” lol

  • @wahspec
    @wahspec 3 года назад +27

    I have become way too obsessive about this. When I first saw the video I was at 90+ (although this included junk I didn't use anyway). I am now at 21. I even replaced some AUR packages with github versions so I could alter the source to make them comply with XDG specifications. :D

  • @BigBahss
    @BigBahss 4 года назад +7

    This is exactly the video I needed. Earlier today I was thinking about how to organize my home folder and wondering if it was okay to move all those hidden folders out of there.

  • @jeetadityachatterjee6995
    @jeetadityachatterjee6995 4 года назад +1

    I'm very glad this exists now. I have needed this since the zsh conversion video.

  • @btwiuse
    @btwiuse 4 года назад +332

    $ ls -1 | wc -l
    1263

    • @derschildkrotenveteran1013
      @derschildkrotenveteran1013 4 года назад +27

      Lol. I got 62 and thought that was bad.

    • @elidrissii
      @elidrissii 4 года назад +12

      Not even "ls -1a", and that much.
      Kind of a "yikes" as the kids would say.

    • @btwiuse
      @btwiuse 4 года назад +30

      ​@@elidrissii $ ls -1a | wc -l
      1708
      It's even more, YIKES

    • @mallock8529
      @mallock8529 4 года назад +1

      powerful...

    • @paulgrougnie7028
      @paulgrougnie7028 4 года назад +5

      I thought I had the worst with 131...

  • @KonsolN
    @KonsolN 4 года назад +13

    put "export ZDOTDIR="$HOME/.config/zsh"
    into /etc/zshenv (if it doesn't exist, create it)
    zsh ALWAYS reads it, followed by the zshenv of the user, but that way you can put your user zshenv into your zsh folder. it will even work for other users that happen to use zsh on your system.

  • @sudorm-rf9032
    @sudorm-rf9032 4 года назад +5

    I've been doing this for ~1hour and went from 95 to 73 ! And still haven't made it through half the list yet... I got a bunch of pretty annoying ones like snap, ssh, steam, paradoxlauncher and mozzilia that don't support at all the xdg specs unfortunately... But thanks for making me discover this !

  • @teunissenstefan
    @teunissenstefan 4 года назад +8

    I love the thumbnail.

  • @joaofnds
    @joaofnds 4 года назад +11

    81
    Apparently every program I use creates a dotfile in my home folder.

    • @VictorRodriguez-zp2do
      @VictorRodriguez-zp2do 4 года назад +4

      Same, almost every terminal program I have has a .history file in my home directory because they couldn't figure out a better place to put it

  • @MattyFez
    @MattyFez 4 года назад +1

    I was actually waiting for a video on this topic. Thanks a lot king

  • @Terr0r798
    @Terr0r798 4 года назад +1

    Thanks for the video. My full home folder always annoyed me but thanks to the wiki link it's much better now.

  • @zigginzag584
    @zigginzag584 4 года назад +72

    rm -rf ~/*
    instacleaned my home directory
    say no to bloat

  • @hmagellanlinux307
    @hmagellanlinux307 4 года назад +52

    0:00 Luke Smith - Specter of the Great Library

    • @dhiegov
      @dhiegov 4 года назад

      lol, thanks

  • @_smhmd
    @_smhmd 4 года назад +2

    You should have explained .local and .cache and how you use them. That would have been helpful. For instance, what's the ideal location for Node global packages? Or custom builds of Suckless software?

    • @LukeSmithxyz
      @LukeSmithxyz  4 года назад +19

      suckless builds: ~/.local/src
      npm packages: /dev/null

  • @petewest3122
    @petewest3122 4 года назад +22

    Clean your ~/ Bucko. One of 12 Rules for GNU/life by professor Luke B(oomer) Perterson.

  • @wjckc79
    @wjckc79 4 года назад +4

    I inherited an employment position from someone who decided to "clean up" the filesystem.

  • @shorthouse06
    @shorthouse06 4 года назад +9

    The virgin careful home directory cleaning vs the chad leaving home to bloatmaxx and just making a separate files partition.

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 4 года назад +6

    5:01 That “du” command looks like an expensive way to find subdirectories.

  • @maciekrakrak
    @maciekrakrak 4 года назад +2

    Woah, was pretty sure my 73 would be mess, but you guys are just brutal.

  • @BCDeshiG
    @BCDeshiG 4 года назад +4

    I had 43 and a lot of those were folders like 'Music' or '.steam'.

  • @GuerreroMisterioso95
    @GuerreroMisterioso95 4 года назад +6

    I got 65, and I only have two months with my Arch installlation.

  • @dn232
    @dn232 4 года назад +38

    "I disavow video games"
    N64 emulator and physical N64 in spare room
    Enough pretending gives us what we all want: the rest of that Deus Ex playthrough.

    • @babitz0r
      @babitz0r 4 года назад +2

      wait there was a dx playthrough? was it a stream?

    • @dn232
      @dn232 4 года назад +2

      @@babitz0r yeah it was a stream

    • @xerneastrainer8111
      @xerneastrainer8111 3 года назад

      @@dn232 No way. I wish he archived those streams or something.

  • @veda-powered
    @veda-powered 4 года назад +1

    204... and one of those is a.out.
    I have some cleaning to do

  • @liamh1621
    @liamh1621 4 года назад

    Nice shot of Trinity Library

  • @0000xFFFF
    @0000xFFFF 4 года назад +5

    I like when you start typing the camera starts shaking.

  • @TheToniz4
    @TheToniz4 4 года назад +3

    before
    ls -a | wc -l
    ~55
    now
    ls -a | wc -l
    11
    feels good man

    • @magnusanderson6681
      @magnusanderson6681 4 года назад

      This is the way
      How did you get so low jesus! I bet you put your xdg_downloads in /tmp don't you

  • @nikozdev
    @nikozdev 2 года назад

    24 is my result...
    I always try to clean up my home dir, adding environment variables, aliases with --directory opts.
    But there are some annoying pieces of software that do not want to leave my home directory, like...
    ssh, pki, npm, nuget, mono, steam, xorg...

  • @rogzinho
    @rogzinho 4 года назад

    THANKS LUKE

  • @porky1118
    @porky1118 3 года назад +5

    Oh, my result is 100.
    I reinstalled my system a few months ago.
    In my old home directory it's even 300.
    I guess, part of the reason is, that my screenshots done with "import name.png" land in home.
    After moving them, it's only 83.
    I also have a few random text files in my home, which I stored in home directly because of convenience.
    After moving them, it's only 71.
    And most of them are some config files or directories (the ones starting with a dot): 48
    Then I have a few other files (one video, one pdf, one text document without an ending, and similar, less then 10).
    And a few directories, which were mostly there form the beginning, but also some, I added for my own needs (bin, Blender, Unity).

  • @samdeur
    @samdeur 4 года назад

    excellent idea.. needed to move sum stranded files to the correct location .. ls -a gives me 33 files.
    but that's with all the .dot files. ls -l gives me 11 files.

  • @J43rv1
    @J43rv1 4 года назад +1

    I just finished setting up manjaro and I have 33

  • @dameck9570
    @dameck9570 4 года назад

    That's the video I needed for a cleanup day 👍

  • @cillianberragan5947
    @cillianberragan5947 4 года назад +1

    It's worth editing the Arch Wiki if it's not up to date, quite simple to do.

  • @benary5620
    @benary5620 4 года назад

    Where can we find a current version of your zshenv file? I cannot locate it on the voidrice repo.

    • @LukeSmithxyz
      @LukeSmithxyz  4 года назад +1

      On my dotfiles, it's ~/.zprofile now.

    • @benary5620
      @benary5620 4 года назад

      @@LukeSmithxyz thanks, Luke. I have used larbs on multiple machines, it was actually what got me into arch and i3. However, due to different needs, I just use it as a reference for my personal setup. Unfortunately, my Linux skills are not advanced as yours. Perhaps a video idea: how does your script installing software from the .csv file work, and how could one add other package managers to it (I believe you got pacman, AUR, and npm; I'd add pip -even though nobody uses python, of course ;))? While I could copy, paste, modify, then test, your script over and over, I'd prefer to actually understand how it works and build a solution that works for me. Currently, I run `pacman - Qqe > ~/.backup/packages` (or similar, writing this on my phone and am not sure if those are the correct parameters) to backup my packages. There is a script for the AUR packages as well, but it'd be nice to have a script install the bare minimum I'd want on all machines from a csv file.

  • @turtleb01
    @turtleb01 4 года назад

    ls -A doesn't show . and .. (of course you can just remove those with rm -R if they are bothering you)

  • @AtomToast
    @AtomToast 4 года назад

    I am at 90. I tried but at some point I gave up because there are too many programs I need that are too ignorant for this standard

  • @AdityaFingerstyle
    @AdityaFingerstyle 4 года назад +1

    Hi Luke, Isn't it better to put all env vars into .profile ?

  • @pZq_
    @pZq_ 4 года назад

    where do you keep your prv data then?

  • @TheHermitHacker
    @TheHermitHacker 4 года назад

    I grabbed a 2 tb external drive and moved all my crap off my desktop and some other directories, only to find out the external drive is far too small. At least 10 years of work... spending now several days doing decade level spring cleaning, but also releasing a lot of code I've written as open source projects.

  • @xxISHOWTiiMExx
    @xxISHOWTiiMExx 4 года назад +1

    I’m loving these videos lately

  • @abanoubsameh6608
    @abanoubsameh6608 4 года назад +3

    @Luke Smith
    You can create /etc/zsh/zshenv with these lines inside it. Then you can move your ~/.zshenv to the ~/.config/zsh directory
    #!/bin/sh
    [ "$USER" = "luke" ] && ZDOTDIR="$HOME/.config/zsh"

  • @krazykowsr
    @krazykowsr 4 года назад +1

    146 files - on the user I abandonned for the specific reason to clean my directory and move everything that can be moved to their XDG counterpart.
    Currently I have 24 (I could possibly get rid of the 3 .bash-files as I'm using zsh, but I don't know if anything will need them)

  • @jacobhilker7722
    @jacobhilker7722 4 года назад

    320, i have no idea why i suck at organization (but some aren't configs, some are symlinks and some are regular files)

  • @zastanawiacz
    @zastanawiacz 2 года назад

    141
    I like chaos. Cannot live without it.

  • @mirtanimahmed8336
    @mirtanimahmed8336 4 года назад

    can anyone tell his polybar backdroud code ?

  • @Ganerrr
    @Ganerrr Год назад

    100 bro literally everything is a .directory and i have zero clue what is or isn't being used as a dependency for another program

    • @Ganerrr
      @Ganerrr Год назад

      ok down to 33 i half suspect everything to break as soon as i restart

  • @chrisatmachine
    @chrisatmachine 4 года назад

    12, just installed OSX

  • @randomness3235
    @randomness3235 4 года назад

    Where can I get a hold of that cool background? Also, what do you use to record your videos and screen at the same time? Thanks.

  • @llollercoaster
    @llollercoaster 3 года назад

    wc -l has a bunch of unneeded padding/white space on darwin :(

  • @LoLei3239
    @LoLei3239 4 года назад

    How'd you change the Arch Wiki font? I have the same dark theme, but the original font...

  • @apostate855
    @apostate855 4 года назад +1

    22. Thank you based minimalism god.

  • @ewrietz
    @ewrietz 4 года назад

    Dr. Skywalker,
    What ancient veda wisdom to you use to keep your config files in your home directory and simultaneously managed in a GitHub repository known as "voidrice".
    Idk how you ls your home directory and a "README.md" and "LICENSE" file do not appear.

  • @antonlee0
    @antonlee0 4 года назад

    Is there a script to move dot files into .config?

  • @zhejabello658
    @zhejabello658 4 года назад

    The mad lad finally did it! Video saved!

  • @SpencerA99
    @SpencerA99 4 года назад

    How do you move the .Xresources file? I tried to do so in my .xinitrc but that gave me a bunch of issues...

    • @LukeSmithxyz
      @LukeSmithxyz  4 года назад

      Xresources never has a real default location. It's all an issue of which script runs it; just change it there.

  • @MarekFajkus
    @MarekFajkus 3 года назад +4

    Frankly I think it's better to have a lot of stuff on FS in some directory than to have too many environmental variables set. All of these exports end up in one global namespace (ENV) while the files are at least namespaced by directory they're placed in (home).
    $ env | wc -l

    • @samgould8567
      @samgould8567 2 года назад

      Agreed. Just use the defaults in tandem with a version-controlled GNU Stow directory. Way less overhead both cognitively and computationally.

  • @viva_la_dotexe
    @viva_la_dotexe 4 года назад

    yeah i need to clean the home folder on my server. i have so many random things that i had copied into the home folder over scp and then copied somewhere else on the server and just never deleted...

  • @notsatvrn
    @notsatvrn 4 года назад

    is 112 somewhat ok?

  • @yoshi314
    @yoshi314 4 года назад +5

    15 year old install - 270 files (actually mostly dirs).
    i don't even mind. but .config might use some cleanup

    • @claytonsililo8428
      @claytonsililo8428 4 года назад

      What distro do you use?

    • @yoshi314
      @yoshi314 4 года назад +1

      @@claytonsililo8428 Gentoo, but it doesn't really matter.

    • @anactualfennecfox1
      @anactualfennecfox1 4 года назад

      With how much I reinstall out of habit, getting to fifteen weeks is a challenge, let alone years.

    • @claytonsililo8428
      @claytonsililo8428 4 года назад

      @@anactualfennecfox1 I was the same but now I'm stuck with KDE Neon and Xubuntu which are essentially Ubuntu.

    • @claytonsililo8428
      @claytonsililo8428 4 года назад

      @@yoshi314 Gentoo, I've been wanting to give it a spin but ah laziness always pulls me back.
      Guess I'll just have to try it. By the way how well does it work?

  • @willpaxman5236
    @willpaxman5236 4 года назад +1

    Mine is 65 im proud that im on the lower side

  • @hmodarres
    @hmodarres 4 года назад

    i dont use home i put everything in root and im always working as root user

  • @LoLei3239
    @LoLei3239 4 года назад

    I got 196. 72 of those are zsh history files. 12 vim tmp files. A lot of dot dirs.

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 4 года назад +1

    5:17 So now instead of dotfile clutter, you have environment clutter instead.

  • @mattematt
    @mattematt 4 года назад

    I noticed a password store environment variable. Is there a program you use to autocomplete passwords?

  • @igeljaeger
    @igeljaeger 4 года назад +2

    I think I'll just abandon my Home directory itself at this point and treat it as a config folder lol. It's a lost cause

  • @saeedbaig4249
    @saeedbaig4249 4 года назад +1

    Houses are bloat; that's why Luke's recording in the great outdoors.

  • @jordansunix-basedmachine5222
    @jordansunix-basedmachine5222 4 года назад

    I am an idiot and first did the command in a different directory I had been using and got a really low number. My real number is 49.

  • @somber_soul
    @somber_soul 4 года назад

    Before I watch this video - is that background the library at Trinity College Dublin? Because that's my background. I'm not sure what to think about this.

  • @_sneer_
    @_sneer_ Год назад

    210
    EDIT: why would you do all that (move all . dirs and set up env)?

  • @paoloprem8111
    @paoloprem8111 4 года назад +5

    For those program for which there are no options for changing the config directory you can use the following:
    env HOME=/path/to/custom/config/folder name-of-the-program
    It will run the program with the same env variables but the HOME one, so it is gonna trash the folder you specified

  • @DavidJBurbridge
    @DavidJBurbridge 4 года назад

    What's making the noise at about 4:55? I thought it was a kitten at first but it might be a bird.

  • @senninscorpion
    @senninscorpion 4 года назад

    Did a little cleanup
    ls -A | wc -l
    33
    (Was 40)

  • @TrevorZenk
    @TrevorZenk 4 года назад

    I got 48.
    Its mostly old dotfiles, I hate those things!

  • @NerdistRay
    @NerdistRay 4 года назад

    I got 41! I'm gonna clean it up now.

  • @francescominnocci
    @francescominnocci 4 года назад

    hei Luke I can't get gnupg to recognise his home directory after setting the env var to XDG_DATA_HOME/gnupg, I tried "`gpg2 --homedir "$XDG_DATA_HOME"/gnupg
    `" from the archwiki info but it doesn't work... suggestions?

  • @noib358
    @noib358 4 года назад +1

    > ls -A | wc -l
    18
    (using -A instead of -a) but I'm on macOS, and Finder automatically creates .Trash, Desktop, Documents, Movies, Music and Pictures folders which are all empty, and if this wasn't enough to make it a garbage os, I have to have a .CFUserTextEncoding file which who tf knows what it does.
    So really it's 11.

  • @kastlekatofficial8839
    @kastlekatofficial8839 2 года назад

    Prior to watching I had 88 files, 2 hours later I have 28. Feels satisfying, but to be honest I'm not sure if it was worth it... Nice video btw, the arch site was very helpful

    • @hanhthien2948
      @hanhthien2948 11 месяцев назад

      not worth it, it will break your system soon

  • @SomethingSpecialLP
    @SomethingSpecialLP 4 года назад

    Where did you get that Stylus theme for ArchWiki from?

  • @townoo6493
    @townoo6493 4 года назад

    So, where do you keep your downloads, pictures, documents, etc directories? I'm using LARBS since the very beginning... You've created this forever newbie user!

  • @andrewyu6996
    @andrewyu6996 4 года назад

    My weird machine has ls aliased to cat /dev/zero so I get nothing in my count output... :D

  • @asome32
    @asome32 4 года назад +1

    his head floating in the beginning freaked me out

  • @Auttieb
    @Auttieb 4 года назад

    Thanks to an OS bug 2 distros ago all of my .bash-history-xxxx.tmp were not deleted so I had 2600 empty files in my home. I have fixed this and am now at only 45, and I will be doing even more cleaning

  • @jamesyeoman794
    @jamesyeoman794 4 года назад

    I can't help it! Everything creates folders and files in my home directory!!!

  • @rdqsr
    @rdqsr 4 года назад +1

    >286
    How much did I fuck up?

  • @silicondecay
    @silicondecay 4 года назад

    Does this terminal color scheme have a name?

  • @BombedByMe
    @BombedByMe 4 года назад

    you should do a video about stow

  • @nickleonardthomas
    @nickleonardthomas 4 года назад

    Noob to Arch (and Linux) here so this is probably a stupid question - where do you install programs to if not in your home directory? For example I just installed dwm and st but they're currently in my home directory

  • @donnaken15
    @donnaken15 4 года назад +1

    are we counting Windows users?
    74, 51 excluding backups
    :(

    • @donnaken15
      @donnaken15 4 года назад

      I have only 23 dotfiles/folders though

  • @Mellcula
    @Mellcula 2 года назад

    I got 36, maybe artix has changed since he did the video because I only installed about a week ago

  • @sranstankovic233
    @sranstankovic233 4 года назад

    What terminal emulation you use? :D

  • @hen6003
    @hen6003 4 года назад

    how do you have a line in you're st build? (i use you're's btw)