LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Entering Command Line commands (https://www.linuxquestions.org/questions/linux-newbie-8/entering-command-line-commands-695059/)

johnmtb 01-05-2009 04:01 AM

Entering Command Line commands
 
Dear All,

I need to issue a command, at the command prompt, NOT in X Windows, and from the book I am reading, I am instructed to:

“For the sake of accuracy, it is recommended to use a copy-and-paste method when issuing the following command.”

I was not aware that one could copy-and-paste commands.

If anyone can advise me on this I would be very grateful.

Regards,

john

repo 01-05-2009 04:04 AM

If you have a command in a file, or whatever, you can copy the command, and paste it in the terminal

Didier Spaier 01-05-2009 04:34 AM

To do that,
- highligt the text you want to copy with the mouse,
- then, still with the mouse, put the cursor at the place you want to paste this text
- press the middle button (the wheel) of the mouse.

You don't need Ctrl+c then Ctrl+v as in Windows.

davee 01-05-2009 05:01 AM

Quote:

Originally Posted by Didier Spaier (Post 3397621)
To do that,
- highligt the text you want to copy with the mouse,
- then, still with the mouse, put the cursor at the place you want to paste this text
- press the middle button (the wheel) of the mouse.

You don't need Ctrl+c then Ctrl+v as in Windows.

Can't do that in command only. As stated above, place the command(s) in a text file, then:
`cat textfile.txt`

Including quotes (they're the ones facing top left to bottom right)

pwc101 01-05-2009 05:08 AM

Quote:

Originally Posted by davee (Post 3397640)
Can't do that in command only.

You can if gpm has been enabled (which most distros do by default).

johnmtb 01-06-2009 01:26 AM

All,

thank you for your help. i tried Davee's suggestion, and it worked. it is something new that i have learnt.

Thank you Davee, and thank you all.

regards,

john


All times are GMT -5. The time now is 06:05 PM.