Hello.
Recently I started using Console Mode or CLI mode which has black background screen and not any GUI. So, I want to know, how do i copy and paste a line from one console to another? Let's say I press up arrow key so the previous command appears on console. So now, I want to copy that entire command and paste it to another console by switching AlT+F2. So, how should I do that?
Operating on Console CLI
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: Operating on Console CLI
You can use the following bash shortcuts:
- Go to end of the line
- Go to the begining of the line
- Cut the line from the cursor to the begining of the line
- Cut the line from the cursor to the end of the line
- Paste the previously cut line
Many more can be found on the web
Code: Select all
Ctrl + e
Code: Select all
Ctrl + a
Code: Select all
Ctrl + u
Code: Select all
Ctrl + k
Code: Select all
Ctrl + y
Many more can be found on the web
Re: Operating on Console CLI
Good Afternoon Ya' all. I'm back. I finished the move and now have the new apartment so that you can now walk from one end to the other without tripping over a box or some item. My workstation took more than a few days just to find all the cables, parts, monitors, etc., then discovered that the computer had loose wires (from the move), that needed to be fixed, but now I'm up and running.kumaramy wrote: ↑2019/07/11 17:08:03Hello.
Recently I started using Console Mode or CLI mode which has black background screen and not any GUI. So, I want to know, how do i copy and paste a line from one console to another? Let's say I press up arrow key so the previous command appears on console. So now, I want to copy that entire command and paste it to another console by switching AlT+F2. So, how should I do that?
OK. Your post kind of mystifies me: WHY exactly don't you have a GUI of some sort?!? We live in the Age of 1 TB SSD's that you can pick up for dirt cheap. Yep, you can work from a straight CLI, but WHY?!? You create a lot of unnecessary work for yourself. Even IF you wanted to run ONLY from a CLI, so long as you have a GUI shell, and a few Virtual Desktops, the easy way to do what you want is to simply highlight the command, copy it, move to another Virtual Desktop, hit Paste, and finally Enter.
OK suppose you don't want to to run some goofy GUI, then at *least* do yourself a favour and download a nifty utility called Midnight Commander (mc) [yum install mc] it will make your life a lot easier as it can do what you want and so much more.
Best Fishes