cd .....
I use zsh btwSometimes 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
z myDir
$ cd .. $ ls $ cd .. $ ls
“hmm yes… everything seems to be in order”
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
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.
It is called windows 2000 explorer and it’s great for file operations :) In Linux i have yet to find a really good replacement ;(
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
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?
Try zoxide
zoxide, btop and lazygit are a must for me in any computer.
Yup. I usually have zoxide installed. It’s grand.
cd -
helpscd …
<Up arrow>
<Up arrow>
<Up arrow>
<Up arrow>
cd …
history
!1
!1
!1
…
cd .. !! !! !!
Me 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?
Tbf it is less key presses since you can generally just recall the last command.
cd .. ls ls -la cd .. ls cd .. rm -rf /
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.
cd ..
⭡ ⏎
⭡ ⏎
⭡ ⏎
square
Oh, shit.
cd … ls cd … ls cd … ls cd … ls
Or the alias I have set up
……
Ya, this is the way. I use
all the time
I kept saying “cd up” in my mind so I just made an alias for
cdu
, became a reflex within the next dayOnce 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.
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.