unreachable.cloud
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
weird@sub.wetshaving.social to linuxmemes@lemmy.world · 2 days ago

That is the way

sub.wetshaving.social

message-square
140
fedilink
877

That is the way

sub.wetshaving.social

weird@sub.wetshaving.social to linuxmemes@lemmy.world · 2 days ago
message-square
140
fedilink
alert-triangle
You must log in or register to comment.
  • some_guy@lemmy.sdf.org
    link
    fedilink
    arrow-up
    7
    ·
    4 hours ago
    alias ..='cd ..' #: up one directory
    alias ...='cd ../..' #: up two directories
    
  • bitchkat@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    ·
    5 hours ago

    You forgot the pwd after each ‘cd’.

    • Owl@mander.xyz
      link
      fedilink
      arrow-up
      2
      ·
      4 hours ago

      ls*

      • bitchkat@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 hours ago

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

        • Owl@mander.xyz
          link
          fedilink
          arrow-up
          2
          ·
          3 hours 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
            ·
            3 hours ago

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

  • ian@feddit.uk
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 hours ago

    The good thing about Dolphin is you can have the real tree following your navigation. Want to go up a few levels, just click once, directly where you want to go next. None of this up, up, up nonsense. Great for snooping in many different folders in quick succession.

  • technotony@sh.itjust.works
    link
    fedilink
    arrow-up
    5
    ·
    10 hours 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
      3 hours ago

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

  • NotProLemmy@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    14 hours ago

    alias cdr=‘cd /’

    Heh

  • Matriks404@lemmy.world
    link
    fedilink
    arrow-up
    29
    ·
    edit-2
    1 day ago
    alias cd..='cd ..'
    alias cd...='cd ../..'
    alias cd....='cd ../../..
    alias cd.....='cd ../../../..'
    
    • AA5B@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      8 hours ago

      Then forget all that and just use

      cd ~ or cd /

  • MoogleMaestro@lemmy.zip
    link
    fedilink
    English
    arrow-up
    7
    ·
    23 hours ago
    cd .. && ls
    !!
    !!
    !!
    !!
    
    • grrgyle@slrpnk.net
      link
      fedilink
      arrow-up
      1
      ·
      3 hours ago

      What’s so surprising?? What did you see in that dir??

  • Dizzy Devil Ducky@lemm.ee
    link
    fedilink
    English
    arrow-up
    3
    ·
    19 hours 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
    5
    ·
    23 hours ago

    cd …/…

  • Bappity@lemmy.world
    link
    fedilink
    English
    arrow-up
    194
    arrow-down
    2
    ·
    edit-2
    2 days ago
    $ cd ..
    $ ls
    $ cd ..
    $ ls
    

    “hmm yes… everything seems to be in order”

    • grrgyle@slrpnk.net
      link
      fedilink
      arrow-up
      3
      ·
      3 hours ago
      cd ..
      pwd
      ls
      ls -a
      tree -d
      git status -bs
      
      cd ..
      ...
      
      • Bappity@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 hours ago

        I ain’t reading allat

        • grrgyle@slrpnk.net
          link
          fedilink
          arrow-up
          2
          ·
          3 hours ago

          Then you invite chaos to sit in your lap, friend

    • LiveLM@lemmy.zip
      link
      fedilink
      English
      arrow-up
      41
      arrow-down
      1
      ·
      edit-2
      2 days ago

      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

      • grrgyle@slrpnk.net
        link
        fedilink
        arrow-up
        2
        ·
        3 hours ago

        You probably want rangerfm or vifm. They use miller columns for to show you your surrounding context.

      • ivanafterall ☑️@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        5 hours ago

        A window, you say!?

      • Fushuan [he/him]@lemm.ee
        link
        fedilink
        arrow-up
        20
        ·
        2 days ago

        Put this in bashrc or whatever flavour of shells’s bashrc you use:

        function cs () { cd “$@” && ls }

        I didnt remember the function sintax of bash so I just copied it from SO.

        • Artyom@lemm.ee
          link
          fedilink
          arrow-up
          18
          ·
          2 days ago
          cs () {
              cd $1;
              ls ${@:2}
          }
          

          You (probably) only want to pass the first argument to cd, this’ll send the rest to ls.

          • ka1ikasan@lemmy.zip
            link
            fedilink
            arrow-up
            5
            ·
            2 days ago

            Did that years ago, just called it cds. I also have an “up” command which is an alias to “cds …”. Oh, and I have a “setup server_name” they copy all my aliases to a server and create an alias that allow me to “ssh -A server_name” using only server_name.

      • Eyedust@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        10
        ·
        2 days ago

        Alternatively, you could use a TUI file manager. Once you get the navigation down you can manage things pretty quickly. Especially with ones that have options for dual directory layouts, like Midnight Commander or vifm.

      • Prime@lemmy.sdf.org
        link
        fedilink
        arrow-up
        6
        ·
        2 days ago

        It is called windows 2000 explorer and it’s great for file operations :) In Linux i have yet to find a really good replacement ;(

        • Lifter@discuss.tchncs.de
          link
          fedilink
          arrow-up
          13
          ·
          2 days ago

          Try Dolphin. Press F4 to open the terminal view. It stays in dync with the gui so if you use cd in the terminal, the contents of the new folder will be shown.

          • Ziglin (it/they)@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            21 hours ago

            That sounds really cool but I spent so much time making things look pretty …

        • marx2k@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          1 day ago

          What’s a GUI?

      • Bappity@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 days ago

        that, or you have to make ABSOLUTELY SURE that you haven’t accidentally pressed a button on your keyboard that has inevitably resulted in the total destruction of the directory contents

    • Zachariah@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      2 days ago

      pwd seems more appropriate than ls

      • turtlesareneat@discuss.online
        link
        fedilink
        English
        arrow-up
        12
        ·
        2 days ago

        Doesn’t let you rifle through things approvingly as you go. "Yes this is the correct directory because it has the three files I was looking at earlier–

        You know what let’s do a ls -al just to be super sure it’s the right modification

        • Zachariah@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          2 days ago

          fair point

    • peoplebeproblems@midwest.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days 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?

  • Phoenicianpirate@lemm.ee
    link
    fedilink
    English
    arrow-up
    3
    ·
    22 hours ago

    Childhood me with only MS-DOS machines is all feeling nostalgic.

  • wpb@lemmy.world
    link
    fedilink
    arrow-up
    44
    ·
    edit-2
    2 days ago

    ..... for zsh users

    • karmiclychee @sh.itjust.works
      link
      fedilink
      arrow-up
      34
      ·
      2 days ago

      Excuse me what? I’ve been multi cd’ing for years like a chump?

      • beeng@discuss.tchncs.de
        link
        fedilink
        arrow-up
        10
        ·
        1 day ago

        Exactly. The fucking what now?

        • grrgyle@slrpnk.net
          link
          fedilink
          arrow-up
          1
          ·
          3 hours ago

          Doesn’t work on my machine… is it a setting that needs to be enabled or something?

  • zitrone 🍋@lemmings.world
    link
    fedilink
    arrow-up
    16
    ·
    1 day 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
      18 hours 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
        9 hours 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
      ·
      1 day ago

      deleted by creator

  • axEl7fB5@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    11
    ·
    1 day ago
    cd ..
    !!
    !!
    !!
    
  • lemmyhavesome@lemmy.world
    link
    fedilink
    arrow-up
    52
    arrow-down
    1
    ·
    edit-2
    2 days ago
    In your rc:
    alias ..='cd ..'
    alias ...='cd ../..'
    alias ....='cd ../../..'
    
    Usage:
    1/2/3 $ ...
    1 $
    
    • /home/pineapplelover@lemm.ee
      link
      fedilink
      arrow-up
      12
      ·
      2 days ago

      That’s pretty neat

    • petersr@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 day ago

      This is the way.

    • marx2k@lemmy.world
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      1 day ago

      Or just use zsh

      • Matriks404@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        1 day ago

        Yeah, let’s use whole different shell, because you can’t add some few aliases to your .bashrc.

        • marx2k@lemmy.world
          link
          fedilink
          arrow-up
          4
          ·
          1 day ago

          That’s not why I use a whole different shell. It just happens to be a perk of the one I use.

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: [email protected]

Hint: :q!


Sister communities:
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]

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.

  • 2.39K users / day
  • 6K users / week
  • 9.61K users / month
  • 19.2K users / 6 months
  • 1 local subscriber
  • 25.1K subscribers
  • 1.64K Posts
  • 74.9K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.world
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org