LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 12:00 PM   #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?
 
Old 05-03-2004, 12:02 PM   #2
sterrenkijker
Member
 
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Rep: Reputation: 30
'q'







(I think...)
 
Old 05-03-2004, 12:36 PM   #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, 05: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.
 
1 members found this post helpful.
Old 05-03-2004, 05:47 PM   #5
sterrenkijker
Member
 
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Rep: Reputation: 30
hey cool, I didn't know about the 'v'
 
Old 07-20-2017, 09: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, 09:27 PM   #7
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,524
Blog Entries: 6

Rep: Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434Reputation: 2434
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:31 PM
SSH: execute one command then exit kleptophobiac Linux - Software 10 01-30-2004 09:21 PM
RHL9.0 hangs when logout/exit command line mellsie25 Linux - Newbie 7 10-17-2003 10:30 PM
How to exit from > in command prompt ? FinnGnome Linux - Newbie 6 05-09-2003 03:50 PM
script 'exit' command kilobravo Linux - General 8 01-16-2003 04:24 PM

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

All times are GMT -5. The time now is 08:21 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration