LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-03-2004, 11:00 AM   #1
dubbuk
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
How to exit the less textfile command?


sounds veeery newbish but i sill dont know it.

if i use the linux console and try to view a textfile with the editor with the command

less readme.txt

how can i exit it and get back where i can write new commands?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-03-2004, 11:02 AM   #2
sterrenkijker
Member
 
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Rep: Reputation: 31
'q'







(I think...)
 
1 members found this post helpful.
Old 05-03-2004, 11:36 AM   #3
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
if it is like vi or man.. it is...

:q (enter)
 
Old 05-03-2004, 04:41 PM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Plain 'q' will do. If you need to do a quick command, you don't even need to exit. Just type '!' and your command. If you want to switch from the pager to an editor, do 'v'. Check out the less man page - it's an extremely cool program.
 
2 members found this post helpful.
Old 05-03-2004, 04:47 PM   #5
sterrenkijker
Member
 
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Rep: Reputation: 31
hey cool, I didn't know about the 'v'
 
Old 07-20-2017, 08:16 PM   #6
vincebanzon
LQ Newbie
 
Registered: Jul 2017
Posts: 1

Rep: Reputation: Disabled
Wink How I got out

CTRL + C first to clear all other text that you have tried to input.
then
:q
to exit from it.
 
Old 07-20-2017, 08:27 PM   #7
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
Welcome to LQ!

You have replied to a 13+ year dead thread by a one time visitor who never returned.

If you have a similar issue it is best to open your own thread for better visibility and to attract replies from currently active members.
 
Old 03-31-2018, 10:29 AM   #8
ditatu
LQ Newbie
 
Registered: Mar 2018
Posts: 1

Rep: Reputation: Disabled
Smile Thank you

Answers were great I learn that I can use v and sometimes also need :q instead of q. I am learning Linux with Raspberry Pi3 starting today.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
X-windows exit command?... Minime80 Linux - Software 4 02-16-2005 09:31 PM
SSH: execute one command then exit kleptophobiac Linux - Software 10 01-30-2004 08:21 PM
RHL9.0 hangs when logout/exit command line mellsie25 Linux - Newbie 7 10-17-2003 09:30 PM
How to exit from > in command prompt ? FinnGnome Linux - Newbie 6 05-09-2003 02:50 PM
script 'exit' command kilobravo Linux - General 8 01-16-2003 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration