LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to exit the less textfile command? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-exit-the-less-textfile-command-177361/)

dubbuk 05-03-2004 11:00 AM

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?

sterrenkijker 05-03-2004 11:02 AM

'q'

:)





(I think...)

trey85stang 05-03-2004 11:36 AM

if it is like vi or man.. it is...

:q (enter)

slakmagik 05-03-2004 04:41 PM

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.

sterrenkijker 05-03-2004 04:47 PM

hey cool, I didn't know about the 'v' :)

vincebanzon 07-20-2017 08:16 PM

How I got out
 
CTRL + C first to clear all other text that you have tried to input.
then
:q
to exit from it.

astrogeek 07-20-2017 08:27 PM

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.

ditatu 03-31-2018 10:29 AM

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.


All times are GMT -5. The time now is 07:59 AM.