651
That is the way (sub.wetshaving.social)
(page 3) 28 comments
sorted by: hot top controversial new old
[-] finitebanjo@lemmy.world 1 points 2 weeks ago

cd '/dev/sda1'

or

cd "C:/"

[-] tehn00bi@lemmy.world 1 points 2 weeks ago

More like cd… dir cd… dir cd…

[-] fushuan@lemm.ee 1 points 2 weeks 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

[-] 7dev7random7@suppo.fi 1 points 2 weeks ago
[-] 7dev7random7@suppo.fi 1 points 2 weeks 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 ...

[-] 6nk06@sh.itjust.works 0 points 2 weeks ago

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.

[-] toynbee@lemmy.world 0 points 2 weeks ago

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

[-] over_clox@lemmy.world 0 points 2 weeks ago* (last edited 2 weeks ago)

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

cd ....

[-] Vorticity@lemmy.world 1 points 2 weeks ago* (last edited 2 weeks ago)

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 1 points 2 weeks ago

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

load more comments (2 replies)
load more comments (2 replies)
[-] SoulKaribou@lemmy.ml 0 points 2 weeks ago

alias !="cd .."

Approximative syntax but you get the idea.

load more comments (2 replies)
[-] NorthWestWind@lemmy.world -1 points 2 weeks ago* (last edited 2 weeks ago)

cd ./..
cd ../._

[-] RamblingPanda@lemmynsfw.com -1 points 2 weeks ago

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

load more comments (2 replies)
load more comments
view more: ‹ prev next ›
this post was submitted on 25 May 2025
651 points (98.2% liked)

linuxmemes

25622 readers
1245 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