Friends of JLH
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
weird@sub.wetshaving.social to linuxmemes@lemmy.world · 8 hours ago

That is the way

sub.wetshaving.social

message-square
63
fedilink
387

That is the way

sub.wetshaving.social

weird@sub.wetshaving.social to linuxmemes@lemmy.world · 8 hours ago
message-square
63
fedilink
alert-triangle
You must log in or register to comment.
  • RamblingPanda@lemmynsfw.com
    link
    fedilink
    arrow-up
    6
    ·
    7 hours ago

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

    • errer@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      6 hours ago

      Biggest issue I have with custom macros is I’m logging into like 5 different machines a day. Don’t wanna keep copying over my custom bash files. Prefer built-in commands.

      • LiveLM@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 hours ago

        Me too. Would love a tool that allows me to have bells and whistles on my remote machines without having to install extra packages on them.

      • RamblingPanda@lemmynsfw.com
        link
        fedilink
        arrow-up
        2
        ·
        6 hours ago

        Yeah, I get that. But I’m traversing my machine a lot while developing, so I want that as hassle free as possible.

    • witty_username@feddit.nl
      link
      fedilink
      arrow-up
      4
      ·
      7 hours ago

      Heyy I have that in my .bashrc
      Works a charm

      • RamblingPanda@lemmynsfw.com
        link
        fedilink
        arrow-up
        2
        ·
        6 hours ago

        Had it in my .zshrc. I should look for it, it was helpful

  • Olap@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    7 hours ago

    https://www.gnu.org/software/bash/manual/html_node/Bourne-Shell-Builtins.html#index-cd

    TIL about $CDPATH may have to populate that!

  • xor@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    6
    ·
    4 hours ago
    cd ..  
    ls  
    ls -la  
    cd ..  
    ls  
    cd ..   
    rm -rf /  
    
  • Drekaridill@feddit.is
    link
    fedilink
    Íslenska
    arrow-up
    29
    ·
    7 hours ago

    cd … ls cd … ls cd … ls cd … ls

  • Bappity@lemmy.world
    link
    fedilink
    English
    arrow-up
    60
    ·
    edit-2
    4 hours ago
    $ cd ..
    $ ls
    $ cd ..
    $ ls
    

    “hmm yes… everything seems to be in order”

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

    • Zachariah@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      34 minutes ago

      pwd seems more appropriate than ls

      • turtlesareneat@discuss.online
        link
        fedilink
        English
        arrow-up
        2
        ·
        31 minutes 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
          1
          ·
          26 minutes ago

          fair point

    • LiveLM@lemmy.zip
      link
      fedilink
      English
      arrow-up
      10
      ·
      edit-2
      2 hours 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

      • Prime@lemmy.sdf.org
        link
        fedilink
        arrow-up
        3
        ·
        1 hour 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
        1
        ·
        1 hour 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

      • Fushuan [he/him]@lemm.ee
        link
        fedilink
        arrow-up
        3
        ·
        1 hour 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
          1
          ·
          5 minutes ago
          cs () {
              cd $1;
              ls ${@:2}
          }
          

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

  • Crazyslinkz@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    2 hours ago
    cd ..
    pwd
    
  • OpenStars@discuss.online
    link
    fedilink
    English
    arrow-up
    24
    ·
    7 hours ago

    Depending on where you are, maybe just “cd”.

    • Midnight Wolf@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      5 hours ago

      Smh when are you going to upgrade to dvd

  • funkajunk@lemm.ee
    link
    fedilink
    English
    arrow-up
    22
    ·
    6 hours ago

    I alias .. to cd ..

    Works for me 🤷🏻

    • Bonsoir@lemmy.ca
      link
      fedilink
      arrow-up
      18
      ·
      5 hours ago

      I do that too!
      I also alias ... to cd ../... I’ll be honest, I often forget to do it, but in theory it can speed things up.

  • NorthWestWind@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    4 hours ago

    cd ./…
    cd …/._

  • astrsk@fedia.io
    link
    fedilink
    arrow-up
    1
    ·
    1 hour ago

    z myDir

  • over_clox@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    8 hours ago

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

    cd ....

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      7
      ·
      7 hours ago

      I believe, zsh supports that.

      • over_clox@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        6 hours ago

        Interesting, I might have to check that out someday.

        Though when I write scripts, I’m not a fan of blind folder navigation like that, there’s a good reason for the pushd and popd script commands.

        • Ephera@lemmy.ml
          link
          fedilink
          English
          arrow-up
          2
          ·
          6 hours ago

          Oh yeah, I wouldn’t use that for scripts. I wouldn’t use zsh for scripts either.
          I mean, I believe, it’s generally compatible with bash, but just throwing a shebang like #!/bin/sh or #!/bin/bash into the first line of the script will make it execute with sh or bash, even when you run it from zsh.

    • tehmics@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      edit-2
      5 hours ago

      Windows be like

      cd …

      ls

      grumble grumble

      dir

      • over_clox@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        3 hours ago

        Wanna fix that real quick?

        echo @dir %1 %2 %3 %4>%SystemRoot%\System32\ls.bat

    • vortic@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      7 hours 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
        link
        fedilink
        arrow-up
        3
        ·
        7 hours ago

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

        • cygnus@lemmy.ca
          link
          fedilink
          arrow-up
          2
          ·
          7 hours ago

          Zoxide is nice, or use Yazi so you can actually see where you’re going.

  • zqwzzle@lemmy.ca
    link
    fedilink
    English
    arrow-up
    8
    ·
    3 hours ago

    Try zoxide

    • Danitos@reddthat.com
      link
      fedilink
      arrow-up
      2
      ·
      1 hour ago

      zoxide, btop and lazygit are a must for me in any computer.

    • lobut@lemmy.ca
      link
      fedilink
      arrow-up
      2
      ·
      3 hours ago

      Yup. I usually have zoxide installed. It’s grand.

  • Fizz@lemmy.nz
    link
    fedilink
    arrow-up
    8
    ·
    4 hours ago

    Me doing it the worst way > opening up dolphin(file explorer) navigating to the folder then opening terminal there.

    • palmtrees2309@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 hours ago

      Doesnt dolphin has a terminal in built so you can watch files in gui and still use cli?

      • Mechanite@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        29 minutes ago

        Yep you can toggle it with F4

    • 10001110101@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      ·
      39 minutes ago

      I like ranger (https://github.com/ranger/ranger).

  • Fushuan [he/him]@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    59 minutes 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

  • billwashere@lemmy.world
    link
    fedilink
    English
    arrow-up
    16
    ·
    edit-2
    7 hours ago

    Or the alias I have set up

    ……

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

      Ya, this is the way. I use ... all the time

    • not_woody_shaw@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 hours ago

      Once you’ve typed … you know if you type more dots it’s to go up more dir, so you don’t really need two dots for each additional dir.

      • billwashere@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 hours ago

        Yeah so it was five dots for four directories up. I also have

        … for 2

        And

        …. for 3

        I don’t think I have one for 5. I’d have to look. I also use autojump and fzf which is very useful.

    • confusedpuppy@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      8
      ·
      6 hours ago

      I kept saying “cd up” in my mind so I just made an alias for cdu, became a reflex within the next day

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.01K users / day
  • 5.36K users / week
  • 9.27K users / month
  • 19.1K users / 6 months
  • 1 local subscriber
  • 25.1K subscribers
  • 1.64K Posts
  • 81.4K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.world
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org