You forgot the pwd after each ‘cd’.
ls*
Ls doesn’t tell them where they are, just what files exist in their current location.
Yup,
But I want to know if the file I’m looking for is in this directory or I have to cd… once more
That’s when locate piped to grep is your best friend.
cd .
More like cd… dir cd… dir cd…
deleted by creator
Wait until we tell them about autojump
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 typeits similar to what the zsh users in the comment section are doing
deleted by creator
I was about to post something similar. With fish you can do your own functions, right? So, you can pass any dots as arguments to a function called
cd
, so, for every extra dot after..
, you append a/..
at the end.yeah, but its less visual
cd .....
is harder to understand thancd ../../../..
also the extension work with any commend, not just
cd
cd … ls cd … ls cd … ls cd … ls
cd /some/thing/i/remember
I use a lot
cd -
(go to previous) or justcd
to go home.cd…
z myDir
cd ./…
cd …/._Or the alias I have set up
……
Ya, this is the way. I use
all the time
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.
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.
I kept saying “cd up” in my mind so I just made an alias for
cdu
, became a reflex within the next day
cd ‘/dev/sda1’
or
cd “C:/”
alias .4=cd …/…/…/…
alias -g .4=“…/…/…/…”