you can, for example, substitute what is contained in the $PWD environment variable (or in any other environment variable), even without the “command”, but only with a keyboard shortcut. unless, of course, your shell uses gnu / readline to edit the command line.
for example, such a command will bind the alt + o keyboard shortcut by substituting the value of the $PWD variable (and a slash at the end for convenience) to the current cursor position:
$ bind '"\eo": "$PWD/\e\Ce"'
here \eo is alt + o (and, for example, \Co is ctrl + o ).
so that this binding is created automatically in each shell session, you can add the above command, for example, to the start script of the shell being used - ~/.${SHELL##*/}rc .
or even better, add the line, which in the example above was transferred to the bind shell builtin command, directly to the ~/.inputrc (the conf. file used by gnu / readline ):
"\eo": "$PWD/\e\Ce"
inspired by this answer: Bash: call script with customized keyboard shortcuts?
find 'pwd'/имя_файла(quotes aroundpwdare inverse). Or a bunch of options, for example, withreadlink, as indicated in the answer below. The number of commands and / or arguments does not have any meaning at all, for there are aliases. - user6550