another #linux question if I may: how do you deal with long and complex folder paths in the terminal?
./Psychiatric-Mental Health Nurse Practitioner-Board Certified (PMHNP-BC)/ ./Psychiatric-Mental Health Nurse Practitioner-Board Certified (PMHNP-BC) Test Book 2025/Conversation
Notices
-
Embed this notice
kaia (kaia@brotka.st)'s status on Saturday, 11-Oct-2025 21:49:14 JST
kaia
-
Embed this notice
hiddenalpha (hiddenalpha@mastodon.social)'s status on Saturday, 11-Oct-2025 22:16:26 JST
hiddenalpha
@kaia
Glob patterns can be handy too:echo Psy*Test*
echo Psy*BC?
Same works for any command. Like with cd:
cd Psy*BC?
In my example "*" stands for several chars and "?" says here's exactly one char. shell globs have some more features like sequences, sets etc.
kaia likes this. -
Embed this notice
kaia (kaia@brotka.st)'s status on Saturday, 11-Oct-2025 22:16:51 JST
kaia
@hiddenalpha oh that is new to me, thank you!! -
Embed this notice
sampo (sampo@pleroma.soykaf.com)'s status on Saturday, 11-Oct-2025 22:18:11 JST
sampo
@kaia bind TAB:menu-complete kaia likes this. -
Embed this notice
Martina Neumayer (martinaneumayer@mastodon.social)'s status on Saturday, 11-Oct-2025 23:35:49 JST
Martina Neumayer
@kaia With tabulator key.
kaia likes this. -
Embed this notice
ZeStig (zstg@fedia.social)'s status on Saturday, 11-Oct-2025 23:44:14 JST
ZeStig
@kaia tab complete and zoxide (thanks for the video @thelinuxcast!)
kaia likes this. -
Embed this notice
बुद्धीविनाषक् भेड़ मीपर् [Meeper] (meeper@udongein.xyz)'s status on Sunday, 12-Oct-2025 01:29:40 JST
बुद्धीविनाषक् भेड़ मीपर् [Meeper]
@kaia Wildcards?
* - matchws any Character 0 and infinity times so like Psy*Test\ Book\ 2025
? matches any (single character)
You'd probaby need regex for some stuff and fine yourself using Find+xargs (or something less shitth like fd)kaia likes this. -
Embed this notice
👾 Seher Taak 🐃 (taak@troet.cafe)'s status on Sunday, 12-Oct-2025 01:50:36 JST
👾 Seher Taak 🐃
@kaia Use the fzf shell plugin. Then hit alt-c fuzzy search to your destination directory.
kaia likes this. -
Embed this notice
Aroop Roelofs (finlaydag33k@social.linux.pizza)'s status on Monday, 13-Oct-2025 03:30:24 JST
Aroop Roelofs
@kaia I use "nushell" which allows me to just press `tab` and then I can just select whichever option I want with the arrow keys and pressing "enter".
kaia likes this. -
Embed this notice
Andrzej Wąsowski ☑️ 🟥 (andrzejwasowski@social.itu.dk)'s status on Monday, 13-Oct-2025 16:23:00 JST
Andrzej Wąsowski ☑️ 🟥
@kaia Also: fzf https://github.com/junegunn/fzf
kaia likes this.
-
Embed this notice