The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Is it possible to select and copy text in terminal without a mouse?

    Discussion in 'Linux Compatibility and Software' started by jimmyrazor, Oct 14, 2018.

  1. jimmyrazor

    jimmyrazor Newbie

    Reputations:
    0
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    5
    So I use ls command to list all the files in a folder. There's one with very long name that I don't want to retype it. Is there anyway I can select the text and copy/paste it without a mouse, or maybe do something like rolling to read after use --help option?
     
    Last edited by a moderator: Oct 16, 2018
  2. Dennismungai

    Dennismungai Notebook Deity

    Reputations:
    785
    Messages:
    933
    Likes Received:
    867
    Trophy Points:
    106
    Hello there,

    Here's what you can do:

    For content that's in the clip board, you can paste it to the terminal via the Ctrl + Shift + V combination.

    To copy the path to the clipboard, you can do something like this:

    cd /full-path
    pwd | xclip -sel clip

    Then paste said content to the required terminal via the Ctrl+Shift+V combo.
     
    Vasudev and jclausius like this.
  3. jclausius

    jclausius Notebook Virtuoso

    Reputations:
    6,160
    Messages:
    3,265
    Likes Received:
    2,573
    Trophy Points:
    231
    Besides @Dennismungai's helpful suggestion, is there a wildcard you could use to 'shorten' the name?
     
    Vasudev likes this.
  4. Vasudev

    Vasudev Notebook Nobel Laureate

    Reputations:
    12,045
    Messages:
    11,278
    Likes Received:
    8,815
    Trophy Points:
    931
    You can also try auto-complete by typing partial name and hitting Tab key.
     
    alexhawker and jclausius like this.