Home > terminal > How to get out of opened documents in the terminal?

How to get out of opened documents in the terminal?

February 12Hits:0
Advertisement

I use to press CTRL+C, but there are some cases where this key combination doesn't work. E.g. if you open the perl docs:

perldoc File::Path 

The documentation is presented on the terminal and I can't get out of it. I must close the terminal and it's a little frustrating.

Answers

It really depends on the application that is used to open a document. perldoc uses application defined in PERLDOC_PAGER, MANPAGER, or PAGER environment variable.

It defaults to less viewer on most systems, so you should press q when browsing the document. But if by accident you pressed other keys, you might need to finish the operation before q would allow you to quit.

Wikipedia article on less has its keyboard shortcuts explained in detail.

Tags:perl, terminal

Related Articles

  • How to open word document file in terminal?August 1

    As I'm trying to open a word document from the terminal, i used wvWare and some other commands for the same, but i couldn't get it. Could any one please help me out! --------------Solutions------------- You can open it with help of libre-office-write

  • Is there a way to view a list of timestamp history of a document/file via terminal/command line?March 15

    This seems like it's simple but for some reason, it's not: Problem: I've been writing a paper- not even a script...just an economics paper- over the last 3 months. I'm trying to determine how much time I've spent writing it, how many times I've saved

  • read pdf document properties from terminal as seen in nautilus

    read pdf document properties from terminal as seen in nautilusMay 20

    From the terminal I would like to be access the data that is readable when right clicking on a pdf file and selecting "document". I have tried reading metadata with tools such as mminfo and pdftk but some files are password protected so they can

  • How to get out of opened documents in the terminal?February 12

    I use to press CTRL+C, but there are some cases where this key combination doesn't work. E.g. if you open the perl docs: perldoc File::Path The documentation is presented on the terminal and I can't get out of it. I must close the terminal and it's a

  • The 'File Manager' icon in the Unity launcher opens my Home folder. How can I get it to open my Documents folder instead?

    The 'File Manager' icon in the Unity launcher opens my Home folder. How can I get it to open my Documents folder instead?May 15

    I open my Documents folder more often than my Home folder. In Unity, if I want to open Documents, I click on the File manager icon in the launcher (this opens Home), then I click on Documents in the Nautilus bookmarks. I would prefer to just left-cli

  • Rename symlinks linking to ~/Documents

    Rename symlinks linking to ~/DocumentsAugust 19

    It is not possible to rename symlinks to one default folders in your home folder (~/Documents, ~/Desktop etc...) using Finder This works in Terminal. Update 2 To test: run ln -s Documents "Documents symlink" in terminal. verify you can't rename

  • How can I go to Documents folder in Mac with TerminalJune 5

    I am following a Java tutorial that I should first browse to the JAR file that I have saved in Documents folder on my Mac..How do we go there by terminal commands? Thanks --------------Solutions------------- You should be able to write down in the co

  • Prevent access to user documents for users logging in from terminal serverJuly 17

    I am fairly new to administrating servers, but I have been charged with the task of working out remote access to the company's network. The general plan is to connect through a VPN to a terminal server connected to the network. The users will then co

  • Is it possible to put documents in the launcher?July 24

    Is it possible to put documents in the launcher and if yes, how? --------------Solutions------------- I didn't find a 'normal' way to do it, so I made a bash script do the job. Well, here's the script: #!/bin/bash #This script adds to launcher a spec

  • How to plot a complicated multi-variable function in a tex document automatically, not just importing an image

    How to plot a complicated multi-variable function in a tex document automatically, not just importing an imageJuly 28

    I have the following Tex functions and I want to plot them in my tex thesis, but I don't know how. I mean, I want the Tex to draw the function, not just to include an external image to it. y[\text{x$\_$},\text{m$\_$},\text{n$\_$}]\text{:=}\text{Abs}\

  • "this network location can't be included because it is not indexed" on Windows 2008R2 Remote Desktop Services HostingApril 9

    I'm setting up a new terminal server for our users on Win2008R2 (I guess I should call it Remote Desktop Services now!) When I try to change the location of "Documents" (by removing the default Documents library and adding a new one), to use the

  • Terminal Service Bench Script (tbscript.exe) - Cannot specify password?July 28

    I'm trying to follow the testing methodology described in the Terminal Server Capacity and Scaling document using the Terminal Services Scalability Planning Tools available with the Windows Server 2003 Resource Kit Tools TBScript.exe is a script inte

  • How to find out where a macro is defined?January 8

    Using \@ifdefined (in LaTeX), we can check whether a command is defined. Using \meaning, we can get the definition of a command. Can we also get information about where a command was defined? For example, in terms of the source file and line number?

  • How to cancel LaTeX compiling in Terminal?August 22

    When I compile a LaTeX document in the terminal like so: latex document.tex How do I then abort the process? Ctrl-C doesn't work. --------------Solutions------------- Ctrl-D will do the trick. However, use -file-line-error -halt-on-error on the comma

  • Asymptotes in a plot

    Asymptotes in a plotNovember 9

    I'm using TikZ to plotting some functions for a document. For example, I want to plot 1/(x+1). So I did something like this: \begin{tikzpicture}[>=stealth,x=3mm,y=3mm] \draw (0,5) node[above]{\fimg $y=f(x+1)=\dfrac{1}{x+1}$}; \clip (-5,-5) rectangle

  • How to get back lost folders?December 30

    I want to know how to find any folder which has been deleted by accident. I cannot find my Document, Pictures and Video folders in $HOME. They just disappeared. I tried doing cd ~/Documents from the terminal but there seems to be no folder. Any idea

  • Gnuplot and PDFLatex question

    Gnuplot and PDFLatex questionJanuary 19

    I'm trying to use Gnuplot and package gnuplottex to create plots directly in LaTeX. Started with the following simple example \documentclass[a4paper]{article} \usepackage[shell]{gnuplottex} \begin{document} \begin{gnuplot}[terminal=pdf,terminaloption

  • adding gnuplot capability to latex

    adding gnuplot capability to latexFebruary 22

    I have been working with LaTeX, under TeXMaker (latest version 3.2.2) for several months, and recently added PGF/TikZ capability. On that occasion I feared there would be problems as I really have very little understanding of how the various applicat

  • Is there a combination of LaTeX gnuplot flowchart?

    Is there a combination of LaTeX gnuplot flowchart?May 18

    I know this is not always a good idea, but I think it might be a good idea in some situation. Is there an improved LaTeX version or something, can have the gnuplot scripts inside of the LaTeX file, so during compilation, it can compile the gnuplot sc

  • An expandable 'character scanning' command?May 28

    Please consider the following MWE, for a "character scanning" command "\looper" which utilizes \@tfor: \documentclass{minimal} \usepackage{trace} \makeatletter \newcommand\looper[1]{% % \def\looper#1{% \typeout{#1}% \@tfor\next:=#1 \do

Copyright (C) 2018 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.469 s.