I was recently in a predicament where I was inside a folder, and I wanted to cd
to a sub directory folder. There was only one folder, inside this folder and it was a really long name.
Home (I am here)
|
|
--> /reallylongnamefolder
Is there any way of going into that folder instead of typing out:
cd reallylongnamefolder
cd */
orcd rea*/
if unsure there is only 1 subdir at all times (if using bash, you can alsocd rea[TAB]
.. in other shells too but the way to expand name may vary). If "/reallylongnamefolder" is an absolute path, same thing, but with '/' in front, for ex:cd /rea*/