z myDir
cd .. pwd
$ 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
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
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.
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 …
<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.
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 … ls cd … ls cd … ls cd … ls
cd ..
⭡ ⏎
⭡ ⏎
⭡ ⏎
Oh, shit.
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.
Depending on where you are, maybe just “cd”.
Smh when are you going to upgrade to dvd
cd ./…
cd …/._