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

Moebuntu

Well-known member
Joined
Jul 1, 2016
Messages
97
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
173
Best answers
0
Ratings
3
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
853
Best answers
0
Ratings
58
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
976
Replies
13
Views
4,568
Replies
4
Views
1,026
Replies
4
Views
759
Latest Threads
Replies
0
Views
20
  • Awaiting approval
Replies
0
Views
1
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.