How do I select all text from a file with nano editor in Linux?

Moebuntu

Well-known member
Registered
Joined
Jul 1, 2016
Messages
103
Points
18
I open a file in Centos nano editor from the command line and I want to copy all the content of that file so I can paste it in an another application outside the shell or delete. How can I do that?
 

mattnz

Member
Registered
Joined
Jul 16, 2016
Messages
48
Points
8
Cursor at the beginning of a file
Ctrl + 6 to set a mark
Alt + Shift + T to cut to the end of the file
Ctrl + O to save in Nano.

You can use your mouse to select text if your file content is not too big.
 

Mujkanovic

Well-known member
Collaborate
Registered
Joined
Apr 24, 2016
Messages
424
Points
18
In Nano
Alt T will delete all content in a file
Ctrl K will delete the current line at your cursor.
 

mar06

New member
Registered
Joined
Jan 15, 2018
Messages
5
Points
0
I don't know yet about this nano editor in linux. Any one here may tell me about this thing. All I know is just typing those words I want to type. :)
 

David Beroff

Well-known member
Registered
Joined
Jun 14, 2016
Messages
1,476
Points
63
David Beroff
It looks like notepad in Windows which allows you type words and save them into a file.
If your Linux has not got this editor then running this command to install it ans starting using this great editor.

Code:
yum install nano
Hope that helped.
 
Newer Threads
Replies
3
Views
3,037
Replies
13
Views
8,358
Replies
4
Views
2,813
Replies
4
Views
2,344
Recommended Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top