In your rc: alias ..='cd ..' alias ...='cd ../..' alias ....='cd ../../..' Usage: 1/2/3 $ ... 1 $
That’s pretty neat
cd .....
I use zsh btw$ cd .. $ ls $ cd .. $ ls
“hmm yes… everything seems to be in order”
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
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.
cs () { cd $1; ls ${@:2} }
You (probably) only want to pass the first argument to
cd
, this’ll send the rest tols
.
It is called windows 2000 explorer and it’s great for file operations :) In Linux i have yet to find a really good replacement ;(
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.
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
pwd
seems more appropriate thanls
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
fair point
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?
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
cd .. pwd
Try zoxide
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? :)
zoxide, btop and lazygit are a must for me in any computer.
Yup. I usually have zoxide installed. It’s grand.
z myDir
cd …
<Up arrow>
<Up arrow>
<Up arrow>
<Up arrow>
cd …
history
!1
!1
!1
…
cd .. !! !! !!
cd -
helpsMe doing it the worst way > opening up dolphin(file explorer) navigating to the folder then opening terminal there.
I like ranger (https://github.com/ranger/ranger).
Doesnt dolphin has a terminal in built so you can watch files in gui and still use cli?
Yes I use it sometime but then I close it and forget about it
Yep you can toggle it with F4
I alias
..
tocd ..
Works for me 🤷🏻
I do that too!
I also aliasto
cd ../..
. I’ll be honest, I often forget to do it, but in theory it can speed things up.
Tbf it is less key presses since you can generally just recall the last command.
cd ..
⭡ ⏎
⭡ ⏎
⭡ ⏎
square
Oh, shit.
cd … ls cd … ls cd … ls cd … ls
cd .. ls ls -la cd .. ls cd .. rm -rf /