1

I've been struggling with this since I've installed Ubuntu:
How do I copy a directory location?

For example:

/home/user/downloads/game/game.sh 

Do I have to type every single letter on terminal?
The problem is that there are some paths which are too long to see the entire directory.
So this isn't possible...

Anyway, again, I'm sorry, but someone, please help me out with this.

zx485
  • 2,865

1 Answers1

0

If you cant use mouse, start typing directory name and press Tab. In this case bash suggest you autocomplete for directories and files inside your location in File System: https://iridakos.com/tutorials/2018/03/01/bash-programmable-completion-tutorial.html

If you talk about terminal emulator, and can use mouse.. Just copy path to buffer (Ctrl+C or Ctrl+Insert) and paste it in terminal command to cursor location using Shift+Insert

waltinator
  • 37,856
slava
  • 4,085