NekuSoul-Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
weird@sub.wetshaving.social to linuxmemes@lemmy.world · 2 天前

That is the way

sub.wetshaving.social

message-square
140
fedilink
879

That is the way

sub.wetshaving.social

weird@sub.wetshaving.social to linuxmemes@lemmy.world · 2 天前
message-square
140
fedilink
alert-triangle
You must log in or register to comment.
  • some_guy@lemmy.sdf.org
    link
    fedilink
    arrow-up
    7
    ·
    3 小时前
    alias ..='cd ..' #: up one directory
    alias ...='cd ../..' #: up two directories
    
  • ian@feddit.uk
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 小时前

    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.

  • bitchkat@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    ·
    5 小时前

    You forgot the pwd after each ‘cd’.

    • Owl@mander.xyz
      link
      fedilink
      arrow-up
      2
      ·
      3 小时前

      ls*

      • bitchkat@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 小时前

        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 小时前

          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
            ·
            2 小时前

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

  • technotony@sh.itjust.works
    link
    fedilink
    arrow-up
    5
    ·
    10 小时前

    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
      2 小时前

      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
    13 小时前

    alias cdr=‘cd /’

    Heh

  • MoogleMaestro@lemmy.zip
    link
    fedilink
    English
    arrow-up
    7
    ·
    22 小时前
    cd .. && ls
    !!
    !!
    !!
    !!
    
    • grrgyle@slrpnk.net
      link
      fedilink
      arrow-up
      1
      ·
      3 小时前

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

  • Matriks404@lemmy.world
    link
    fedilink
    arrow-up
    29
    ·
    edit-2
    1 天前
    alias cd..='cd ..'
    alias cd...='cd ../..'
    alias cd....='cd ../../..
    alias cd.....='cd ../../../..'
    
    • AA5B@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      8 小时前

      Then forget all that and just use

      cd ~ or cd /

  • Dizzy Devil Ducky@lemm.ee
    link
    fedilink
    English
    arrow-up
    3
    ·
    19 小时前

    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
    ·
    22 小时前

    cd …/…

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

    “hmm yes… everything seems to be in order”

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

        I ain’t reading allat

        • grrgyle@slrpnk.net
          link
          fedilink
          arrow-up
          2
          ·
          2 小时前

          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 天前

      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
        ·
        2 小时前

        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
        ·
        4 小时前

        A window, you say!?

      • Fushuan [he/him]@lemm.ee
        link
        fedilink
        arrow-up
        19
        ·
        2 天前

        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 天前
          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
            ·
            2 天前

            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 天前

        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 天前

        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 天前

          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
            ·
            20 小时前

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

        • marx2k@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          1 天前

          What’s a GUI?

      • Bappity@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 天前

        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 天前

      pwd seems more appropriate than ls

      • turtlesareneat@discuss.online
        link
        fedilink
        English
        arrow-up
        12
        ·
        2 天前

        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 天前

          fair point

    • peoplebeproblems@midwest.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 天前

      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 小时前

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

  • wpb@lemmy.world
    link
    fedilink
    arrow-up
    44
    ·
    edit-2
    2 天前

    ..... for zsh users

    • karmiclychee @sh.itjust.works
      link
      fedilink
      arrow-up
      34
      ·
      2 天前

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

      • beeng@discuss.tchncs.de
        link
        fedilink
        arrow-up
        10
        ·
        1 天前

        Exactly. The fucking what now?

        • grrgyle@slrpnk.net
          link
          fedilink
          arrow-up
          1
          ·
          2 小时前

          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 天前

    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 小时前

      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
        8 小时前

        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 天前

      deleted by creator

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

      That’s pretty neat

    • petersr@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 天前

      This is the way.

    • marx2k@lemmy.world
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      1 天前

      Or just use zsh

      • Matriks404@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        1 天前

        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 天前

          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: !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.

  • 2.08K users / day
  • 3.44K users / week
  • 9.56K users / month
  • 19.2K users / 6 months
  • 1 local subscriber
  • 25.1K subscribers
  • 1.63K Posts
  • 80.5K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.world
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org