Poeng.link
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
weird@sub.wetshaving.social to linuxmemes@lemmy.world · 7 days ago

That is the way

sub.wetshaving.social

message-square
126
link
fedilink
852

That is the way

sub.wetshaving.social

weird@sub.wetshaving.social to linuxmemes@lemmy.world · 7 days ago
message-square
126
link
fedilink
alert-triangle
You must log in or register to comment.
  • bitchkat@lemmy.world
    link
    fedilink
    English
    arrow-up
    13
    ·
    6 days ago

    You forgot the pwd after each ‘cd’.

    • Owl@mander.xyz
      link
      fedilink
      arrow-up
      2
      ·
      6 days ago

      ls*

      • bitchkat@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        6 days ago

        Ls doesn’t tell them where they are, just what files exist in their current location.

        • Owl@mander.xyz
          link
          fedilink
          arrow-up
          3
          ·
          6 days ago

          Yup,

          But I want to know if the file I’m looking for is in this directory or I have to cd… once more

          • bitchkat@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            6 days ago

            That’s when locate piped to grep is your best friend.

  • Matriks404@lemmy.world
    link
    fedilink
    arrow-up
    26
    ·
    edit-2
    7 days ago
    alias cd..='cd ..'
    alias cd...='cd ../..'
    alias cd....='cd ../../..
    alias cd.....='cd ../../../..'
    
    • AA5B@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      6 days ago

      Then forget all that and just use

      cd ~ or cd /

      • NostraDavid@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        5 days ago

        No need for ~ - just cd works as well.

  • Naich@lemmings.world
    link
    fedilink
    arrow-up
    23
    ·
    7 days ago

    for i in { 1…4 }; do cd …; done

  • zitrone 🍋@lemmings.world
    link
    fedilink
    arrow-up
    13
    ·
    7 days ago

    i use fish shell with https://github.com/nickeb96/puffer-fish

    basically when i type ... it expands to ../.. and adds another /.. for every additional dot i type

    its similar to what the zsh users in the comment section are doing

    • oni ᓚᘏᗢ@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      6 days ago

      I was about to post something similar. With fish you can do your own functions, right? So, you can pass any dots as arguments to a function called cd, so, for every extra dot after .., you append a /.. at the end.

      • zitrone 🍋@lemmings.world
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        6 days ago

        yeah, but its less visual

        cd ..... is harder to understand than cd ../../../..

        also the extension work with any commend, not just cd

    • Matriks404@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      7 days ago

      deleted by creator

  • axEl7fB5@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    10
    ·
    7 days ago
    cd ..
    !!
    !!
    !!
    
  • technotony@sh.itjust.works
    link
    fedilink
    arrow-up
    4
    ·
    6 days ago

    Easiest solution, use fish instead of bash! Default fish keybindings will allow you to just type . . or name a directory similar to how you could do with Zoxide.

    Also, wait until you find about pushd and popd ;)

    • sleet01@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      6 days ago

      Really buried the lede there: pushd and popd are what I use instead of cd most times!

  • MoogleMaestro@lemmy.zip
    link
    fedilink
    English
    arrow-up
    6
    ·
    6 days ago
    cd .. && ls
    !!
    !!
    !!
    !!
    
  • SchwertImStein@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    7
    ·
    7 days ago
    .....
    
  • hperrin@lemmy.ca
    link
    fedilink
    English
    arrow-up
    8
    ·
    7 days ago

    alias .4=cd …/…/…/…

    • ziggurat@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      7 days ago

      alias -g .4=“…/…/…/…”

  • Dizzy Devil Ducky@lemm.ee
    link
    fedilink
    English
    arrow-up
    4
    ·
    6 days ago

    I feel called out. Should definitely make an alias or two that auto CDs me the amount of times I need…

  • demunted@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    6 days ago

    cd …/…

  • unsubtle@sh.itjust.works
    link
    fedilink
    arrow-up
    4
    ·
    7 days ago

    Wait until we tell them about autojump

  • NotProLemmy@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    6 days ago

    alias cdr=‘cd /’

    Heh

  • Shanmugha@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    7 days ago

    cd /some/thing/i/remember

  • moopet@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    3
    ·
    7 days ago

    git () { if [ "$1" = "cd" ] then shift cd "./$(command git rev-parse --show-cdup)$*" else command git "$@" fi }

linuxmemes@lemmy.world

linuxmemes@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linuxmemes@lemmy.world

Hint: :q!


Sister communities:
  • !tech_memes@lemmy.world
  • !memes@lemmy.world
  • !lemmyshitpost@lemmy.world
  • !risa@startrek.website

Community rules (click to expand)

1. Follow the site-wide rules
  • Instance-wide TOS: https://legal.lemmy.world/tos/
  • Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
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 figures

We 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.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 239 users / day
  • 3.87K users / week
  • 8.57K users / month
  • 13.3K users / 6 months
  • 1 local subscriber
  • 25.2K subscribers
  • 644 Posts
  • 13.2K Comments
  • Modlog
  • mods:
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org