The Linux console under control: shell tips and tricks

4





The Linux console under control:  Man pages to command-line tools and commands are mostly extra-dry, but they are less deterrent in the PDF reader. SSH jumps with manage a roll backwards through the firewall.

linux console
linux console

Linux console: documentation

Read man pages as PDF
Command line commands and tools provide their own documentation under Linux. These manual pages, called “man pages”, provide a lot of text and application examples in the shell with the commandand / tool] to explain the use of a co man [commmmand and its options as well as parameters. For many pages, however, it is worthwhile to start the text in peace.

First, make sure that the distribution you are using also provides all the German-language manpages. Many systems leave this part of the documentation away, in order to save space. For Ubuntu / Mint, Debian install the package “manpages-de” and in Fedora “man-pages-de”, while for Open Suse the unofficial repository provides a suitable RPM package.

Comprehensive documentation in the terminal to read is tiring: The manual pages look much better in a PDF reader, black on white and with proportional fonts. To do this, you can create postscript files, which can then be opened with a reader such as Okular and Evince:

man -t bash >bash.ps
Linux console
Linux console

 

Linux console: documentation

Read man pages as PDF
Command line commands and tools provide their own documentation under Linux. These manual pages, called “man pages”, provide a lot of text and application examplesin the shell with the command man [command / tool] to explain the use of a command and its options as well as parameters. For many pages, however, it is worthwhile to start the text in peace.

First, make sure that the distribution you are using also provides all the German-language manpages. Many systems leave this part of the documentation away, in order to save space. For Ubuntu / Mint, Debian install the package “manpages-de” and in Fedora “man-pages-de”, while for Open Suse the unofficial repository provides a suitable RPM package.

Comprehensive documentation in the terminal to read is tiring: The manual pages look much better in a PDF reader, black on white and with proportional fonts. To do this, you can create postscript files, which can then be opened with a reader such as Okular and Evince:




SSH

Reverse SSH: Through the firewall
If Linux computers  are to be accessible in the local network via the Internet,SSH . And  port switching and port forwarding is necessary on the router. In the home network this is connected with some configuration effort, but no technical obstacle. Different in company networks or in public WLANs: A port forwarding is usually not possible there, since this a network administrator would have to set up.

 SSH (Secure Shell) into a protocol with client-server model. However, an SSH tunnel can also swap the role of client and server if the connection is previously initiated with an open return channel. The prerequisite is that both an SSH server runs on the Linux system (server) behind the firewall and also on the Linux PC (client), from which the former is accessed.

In addition, the client must be accessible from the outside, in the case of the domestic Linux PC, for example, via a normal port forwarding on the router. From the server, prepare the connection using this command:

ssh -R 1234:localhost:22 [Client]

Instead of the [Client] placeholder, specify the Internet IP address or the (dynamic) host name of the client that will be accessed later. Later on the client, you can use the already established SSH connection to connect back to the server from there:

ssh benutzername@localhost -p 1234

The required user name is the one on the server, and the port specified behind the -p parameter, here, for example, 1234, is the previously constructed back channel. If the connection is automatically terminated after a period of inactivity, SSH on the server needs a supplement in the configuration file "/ etc / ssh / sshd_config". Make sure that there are the two options

KeepAlive yes ServerAliveInterval 60

documentation

Read man pages as PDF
Command line commands and tools provide their own documentation under Linux. These manual pages, called "man pages", provide a lot of text and application examples in the shell with the command man [command / tool] to explain the use of a command and its options as well as parameters. For many pages, however, it is worthwhile to start the text in peace.

The Linux console under control:  First, make sure that the distribution you are using also provides all the German-language manpages. Many systems leave this part of the documentation away, in order to save space. For Ubuntu / Mint, Debian install the package "manpages-de" and in Fedora "man-pages-de", while for Open Suse the unofficial repository provides a suitable RPM package.

Comprehensive documentation in the terminal to read is tiring: The manual pages look much better in a PDF reader, black on white and with proportional fonts. To do this, you can create postscript files, which can then be opened with a reader such as Okular and Evince:

man -t bash >bash.ps
This command creates a postscript file called "bash.ps", for example, from the documentation for the shell "Bash". If it is to be a PDF instead, which is then also easily readable with apps on tablets and smartphones, then the tool ps2pdf then makes the postscript file a PDF. It is part of the "ghostscript" package and pre-installed on most Linux distributions. With a tight

ps2pdf bash.ps
You will get a PDF file named "bash.pdf" in the same directory.

4 COMMENTS

  1. Usually I don’t read article on blogs, but I wish to say that this write-up very pressured me to try and do so! Your writing taste has been amazed me. Thanks, quite nice article.|

  2. I’ve read a few excellent stuff here. Definitely value bookmarking for revisiting. I surprise how a lot attempt you put to create the sort of magnificent informative web site.

  3. […] The Linux console under control: shell tips and tricks […]

  4. There is definately a lot to know about this issue. I really like all the points you have made.

Comments are closed.