this post was submitted on 25 May 2025
908 points (98.3% liked)

linuxmemes

25357 readers
741 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     
    (page 3) 48 comments
    sorted by: hot top controversial new old
    [–] [email protected] 2 points 1 week ago (1 children)
    load more comments (1 replies)
    [–] [email protected] 23 points 1 week ago (10 children)
    [–] [email protected] 3 points 1 week ago

    Yup. I usually have zoxide installed. It's grand.

    load more comments (9 replies)
    [–] [email protected] 6 points 1 week ago (2 children)
    load more comments (2 replies)
    [–] [email protected] 197 points 1 week ago* (last edited 1 week ago) (8 children)
    $ cd ..
    $ ls
    $ cd ..
    $ ls
    

    "hmm yes.. everything seems to be in order"

    [–] [email protected] 42 points 1 week ago* (last edited 1 week ago) (11 children)

    I need a shell/plugin/tool/whatever that always shows me the content of the current dir in a little popup or something.

    Anything I do in the shell is like cd this, ls, cd there, ls *, I feel like a have the navigational awareness of a amnesiac goldfish

    load more comments (11 replies)
    [–] [email protected] 2 points 1 week ago

    Sometimes I throw off the linux admin reading my log by throwing in a pwd before going to the next one. Know it's not gonna be in that directory you know?

    load more comments (6 replies)
    [–] [email protected] 5 points 1 week ago
    cd ..  
    ls  
    ls -la  
    cd ..  
    ls  
    cd ..   
    rm -rf /  
    
    [–] [email protected] 13 points 1 week ago* (last edited 1 week ago) (1 children)
    [–] [email protected] 2 points 1 week ago* (last edited 1 week ago) (1 children)

    cd ..

    history

    !1

    !1

    !1

    ...

    [–] [email protected] 4 points 1 week ago
    cd ..
    !!
    !!
    !!
    
    [–] [email protected] 1 points 1 week ago* (last edited 1 week ago)

    cd ./..
    cd ../._

    [–] [email protected] 12 points 1 week ago (2 children)

    Me doing it the worst way > opening up dolphin(file explorer) navigating to the folder then opening terminal there.

    [–] [email protected] 5 points 1 week ago (2 children)

    Doesnt dolphin has a terminal in built so you can watch files in gui and still use cli?

    load more comments (2 replies)
    load more comments (1 replies)
    [–] [email protected] 8 points 1 week ago

    Tbf it is less key presses since you can generally just recall the last command.

    [–] [email protected] 3 points 1 week ago* (last edited 1 week ago) (1 children)

    I guess if you enjoy being a virgin that much you can do it that way.

    load more comments (1 replies)
    [–] [email protected] 25 points 1 week ago (2 children)

    I alias .. to cd ..

    Works for me 🀷🏻

    [–] [email protected] 20 points 1 week ago

    I do that too!
    I also alias ... to cd ../... I'll be honest, I often forget to do it, but in theory it can speed things up.

    load more comments (1 replies)
    [–] [email protected] 17 points 1 week ago* (last edited 1 week ago) (3 children)

    Or the alias I have set up

    …..

    [–] [email protected] 0 points 1 week ago

    Ya, this is the way. I use ... all the time

    [–] [email protected] 0 points 1 week ago (1 children)

    Once you've typed .. you know if you type more dots it's to go up more dir, so you don't really need two dots for each additional dir.

    [–] [email protected] 1 points 1 week ago

    Yeah so it was five dots for four directories up. I also have

    … for 2

    And

    …. for 3

    I don’t think I have one for 5. I’d have to look. I also use autojump and fzf which is very useful.

    [–] [email protected] 8 points 1 week ago

    I kept saying "cd up" in my mind so I just made an alias for cdu, became a reflex within the next day

    [–] [email protected] 4 points 1 week ago (1 children)

    The history of the CTO at a previous job was filled with dc and sl because he was a fucking moron. Yes I'm still bitter that he earned way more money than me who had to fix all his mess.

    [–] [email protected] 6 points 1 week ago

    You could have gifted him some silly fun with the sl package.

    [–] [email protected] 1 points 1 week ago
    [–] [email protected] 4 points 1 week ago* (last edited 1 week ago)

    Why no cd /////// speceficterm if you know how deep it is

    Those are supposed to be stars. I'm not fixing this on a phone

    [–] [email protected] 29 points 1 week ago

    cd .. ls cd .. ls cd .. ls cd .. ls

    [–] [email protected] 5 points 1 week ago (2 children)

    I've used a script that made 'up 4' a thing. Forgot to migrate it though.

    [–] [email protected] 8 points 1 week ago (2 children)

    Biggest issue I have with custom macros is I’m logging into like 5 different machines a day. Don’t wanna keep copying over my custom bash files. Prefer built-in commands.

    [–] [email protected] 1 points 1 week ago

    Me too. Would love a tool that allows me to have bells and whistles on my remote machines without having to install extra packages on them.

    [–] [email protected] 2 points 1 week ago

    Yeah, I get that. But I'm traversing my machine a lot while developing, so I want that as hassle free as possible.

    [–] [email protected] 4 points 1 week ago (1 children)

    Heyy I have that in my .bashrc
    Works a charm

    [–] [email protected] 2 points 1 week ago

    Had it in my .zshrc. I should look for it, it was helpful

    [–] [email protected] 6 points 1 week ago* (last edited 1 week ago)
    ~$ mkdir -p 1/2/3/4
    ~$ pushd 1
    ~/1 ~
    1$ pushd 2/3/4
    ~/1/2/3/4 ~/1 ~
    4$ popd
    ~/1 ~
    1$
    
    [–] [email protected] 30 points 1 week ago (1 children)

    Depending on where you are, maybe just "cd".

    [–] [email protected] 10 points 1 week ago

    Smh when are you going to upgrade to dvd

    [–] [email protected] 55 points 1 week ago* (last edited 1 week ago) (2 children)

    cd ..
    ⭑ ⏎
    ⭑ ⏎
    ⭑ ⏎

    [–] [email protected] 11 points 1 week ago
    load more comments (1 replies)
    [–] [email protected] 5 points 1 week ago* (last edited 1 week ago) (3 children)

    Honestly I haven't tried this on Linux yet, but didn't Windows implement this somewhere along the way?...

    cd ....

    [–] [email protected] 8 points 1 week ago* (last edited 1 week ago) (1 children)

    Windows be like

    cd ..

    ls

    grumble grumble

    dir

    [–] [email protected] 1 points 1 week ago* (last edited 1 week ago)

    Wanna fix that real quick?

    echo @dir %1 %2 %3 %4>%SystemRoot%\System32\ls.bat

    [–] [email protected] 7 points 1 week ago (1 children)

    I believe, zsh supports that.

    [–] [email protected] 5 points 1 week ago (1 children)

    Interesting, I might have to check that out someday.

    Though when I write scripts, I'm not a fan of blind folder navigation like that, there's a good reason for the pushd and popd script commands.

    [–] [email protected] 2 points 1 week ago

    Oh yeah, I wouldn't use that for scripts. I wouldn't use zsh for scripts either.
    I mean, I believe, it's generally compatible with bash, but just throwing a shebang like #!/bin/sh or #!/bin/bash into the first line of the script will make it execute with sh or bash, even when you run it from zsh.

    [–] [email protected] 5 points 1 week ago* (last edited 1 week ago) (1 children)

    I aliased cd to a custom funtion in my bashrc to do this at one point, but cd ../../../.. is too engrained so I never rembered to use it.

    [–] [email protected] 4 points 1 week ago (1 children)

    You will probably like zoxide (i am not sure about policy on links here, but here you go https://github.com/ajeetdsouza/zoxide)

    [–] [email protected] 4 points 1 week ago (1 children)

    Zoxide is nice, or use Yazi so you can actually see where you're going.

    load more comments (1 replies)
    load more comments
    view more: β€Ή prev next β€Ί