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

Moebuntu

Well-known member
Joined
Jul 1, 2016
Messages
99
Best answers
0
Ratings
1 1
Points
8
#1
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?
 
Joined
Jul 16, 2016
Messages
48
Best answers
0
Ratings
1
Points
8
#2
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
Joined
Apr 24, 2016
Messages
193
Best answers
1
Ratings
4
Points
18
#3
In Nano
Alt T will delete all content in a file
Ctrl K will delete the current line at your cursor.
 

mar06

New member
Joined
Jan 15, 2018
Messages
5
Best answers
0
Points
0
#4
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
Joined
Jun 14, 2016
Messages
904
Best answers
0
Ratings
69 1
Points
28
#5
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
1,027
Replies
13
Views
4,654
Replies
4
Views
1,051
Replies
4
Views
786
Latest Threads
Replies
0
Views
5
Replies
4
Views
16
Replies
0
Views
18
Replies
0
Views
1
Replies
2
Views
26

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

Top