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

linuxmemes

25136 readers
903 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
    [–] RamblingPanda@lemmynsfw.com 5 points 4 days ago (4 children)

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

    [–] witty_username@feddit.nl 4 points 4 days ago (1 children)

    Heyy I have that in my .bashrc
    Works a charm

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

    load more comments (3 replies)
    [–] CommanderCloon@lemmy.ml 3 points 4 days ago

    Nah, I always cd to full path, that way I can easily use my history to move back there

    [–] over_clox@lemmy.world 5 points 4 days ago* (last edited 4 days ago) (6 children)

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

    cd ....

    [–] Vorticity@lemmy.world 5 points 4 days ago* (last edited 4 days 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.

    [–] grimdeter@lemmy.ml 4 points 4 days 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)

    [–] cygnus@lemmy.ca 4 points 4 days ago (1 children)

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

    [–] Eyedust@lemmy.dbzer0.com 1 points 4 days ago

    Yazi, Superfile, Midnight Commander (my favorite), or Ranger. I'm sure there's more, but those are the ones I know.

    load more comments (5 replies)
    [–] gwilikers@lemmy.ml 3 points 4 days ago* (last edited 2 days ago)

    td aliased to cd $(whatever the command is to get the git root directory)

    [–] 6nk06@sh.itjust.works 4 points 4 days 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.

    load more comments (1 replies)
    [–] Forester@pawb.social 4 points 4 days ago* (last edited 4 days 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

    [–] x00z@lemmy.world 2 points 4 days ago
    [–] astrsk@fedia.io 3 points 4 days ago
    [–] letsgo@lemm.ee 2 points 4 days ago

    I created a script called GoUpALevel.

    [–] stupidcasey@lemmy.world 3 points 4 days ago* (last edited 4 days ago) (1 children)

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

    load more comments (1 replies)
    [–] oplkill@lemmy.world 2 points 4 days ago
    [–] tehn00bi@lemmy.world 1 points 3 days ago

    More like cd… dir cd… dir cd…

    [–] Crazyslinkz@lemmy.world 2 points 4 days ago (1 children)
    [–] pupbiru@aussie.zone 2 points 4 days ago

    and then rinse and repeat for every level because you just don’t trust that mischievous cd

    [–] 7dev7random7@suppo.fi 1 points 4 days ago (1 children)
    [–] 7dev7random7@suppo.fi 1 points 4 days ago

    Syntax get's twisted here. Second ^ is inserted automatically. As well as the One after the actual bash line.

    What it does: Bind Ctrl+Backspace to cd ...

    [–] finitebanjo@lemmy.world 1 points 4 days ago

    cd '/dev/sda1'

    or

    cd "C:/"

    [–] fushuan@lemm.ee 1 points 4 days ago

    Sometimes I have to swap between two routed for several things, so I create a quick in-memory alias like aa=$(pwd)

    Then I can cd $aa

    [–] NorthWestWind@lemmy.world 1 points 4 days ago* (last edited 4 days ago)

    cd ./..
    cd ../._

    [–] Olap@lemmy.world 1 points 4 days ago
    [–] SoulKaribou@lemmy.ml 0 points 4 days ago (2 children)

    alias !="cd .."

    Approximative syntax but you get the idea.

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