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

    “hmm yes… everything seems to be in order”

    • LiveLM@lemmy.zip
      link
      fedilink
      English
      arrow-up
      40
      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
        ·
        1 hour ago

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

      • Fushuan [he/him]@lemm.ee
        link
        fedilink
        arrow-up
        19
        ·
        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
          17
          ·
          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
            4
            ·
            1 day 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
        ·
        1 day 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 ;(

      • 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

      • 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

    • 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?