top 50 comments

sorted by: hot top controversial new old
[–] 198 points 1 year ago* (19 children)
$ cd ..
$ ls
$ cd ..
$ ls

"hmm yes.. everything seems to be in order"

  • source
  • hideshow 19 child comments
  • [–] 42 points 1 year ago* (11 children)

    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

  • source
  • parent
  • hideshow 11 child comments
  • [–] 22 points 1 year ago (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 10 points 1 year 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.

  • source
  • parent
  • [–] 6 points 1 year ago (3 children)

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

  • source
  • parent
  • hideshow 3 child comments
  • load more comments (1 reply)
  • load more comments (3 replies)
  • load more comments (7 replies)
    [–] 56 points 1 year ago* (2 children)

    cd ..
    ⭑ ⏎
    ⭑ ⏎
    ⭑ ⏎

  • source
  • hideshow 2 child comments
  • [–] 54 points 1 year ago* (5 children)
    In your rc:
    alias ..='cd ..'
    alias ...='cd ../..'
    alias ....='cd ../../..'
    
    Usage:
    1/2/3 $ ...
    1 $
    
  • source
  • hideshow 5 child comments
  • load more comments (4 replies)
    [–] 45 points 1 year ago* (4 children)
  • [–] 30 points 1 year ago

    cd .. ls cd .. ls cd .. ls cd .. ls

  • source
  • [–] 30 points 1 year ago (1 child)

    Depending on where you are, maybe just "cd".

  • source
  • hideshow 1 child comment
  • [–] 29 points 1 year ago* (2 children)
    alias cd..='cd ..'
    alias cd...='cd ../..'
    alias cd....='cd ../../..
    alias cd.....='cd ../../../..'
    
  • source
  • hideshow 2 child comments
  • [–] 25 points 1 year ago (2 children)

    I alias .. to cd ..

    Works for me 🀷🏻

  • source
  • hideshow 2 child comments
  • load more comments (1 reply)
    [–] 25 points 1 year ago

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

  • source
  • [–] 23 points 1 year ago (10 children)
  • [–] 10 points 1 year ago (7 children)

    Installing zoxide led me to installing fzf, which has improved my terminal experience by about 35%, I already installed it in all the machines I'm managing

    Got any more tools? :)

  • source
  • parent
  • hideshow 7 child comments
  • [–] 5 points 1 year ago*

    Check out Atuin. Its another must have for me. When you push up arrow, it shows your command history in a very pleasing list. You can even generate account keys to migrate your history between PCs, but I've never bothered with it. You can also search past commands on the history menu.

    You don't need an account for it. That's only for the migration keys.

  • source
  • parent
  • load more comments (6 replies)
  • load more comments (2 replies)
    [–] 17 points 1 year ago

    I use a lot cd - (go to previous) or just cd to go home.

  • source
  • [–] 17 points 1 year ago* (4 children)

    Or the alias I have set up

    …..

  • source
  • hideshow 4 child comments
  • load more comments (3 replies)
    [–] 16 points 1 year ago (3 children)

    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

  • source
  • hideshow 3 child comments
  • load more comments (3 replies)
    [–] 14 points 1 year ago* (2 children)
    load more comments (2 replies)
    [–] 14 points 1 year ago (4 children)

    You forgot the pwd after each 'cd'.

  • source
  • hideshow 4 child comments
  • load more comments (4 replies)
    [–] 13 points 1 year ago (3 children)
    load more comments (3 replies)
    [–] 12 points 1 year ago
    cd ..
    !!
    !!
    !!
    
  • source
  • [–] 12 points 1 year ago (4 children)

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

  • source
  • hideshow 4 child comments
  • load more comments (4 replies)
    [–] 9 points 1 year ago (1 child)
    alias ..='cd ..' #: up one directory
    alias ...='cd ../..' #: up two directories
    
  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 9 points 1 year ago (1 child)
    load more comments (1 reply)
    [–] 8 points 1 year ago (3 children)
    load more comments (3 replies)
    [–] 8 points 1 year ago

    Tbf it is less key presses since you can generally just recall the last command.

  • source
  • [–] 6 points 1 year ago*
    ~$ mkdir -p 1/2/3/4
    ~$ pushd 1
    ~/1 ~
    1$ pushd 2/3/4
    ~/1/2/3/4 ~/1 ~
    4$ popd
    ~/1 ~
    1$
    
  • source
  • [–] 6 points 1 year ago (1 child)

    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 ;)

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 6 points 1 year ago (2 children)
    load more comments (2 replies)
    [–] 5 points 1 year ago

    Wait until we tell them about autojump

  • source
  • load more comments
    view more: next β€Ί