[ Pobierz całość w formacie PDF ]
.This works because the shell orders the filesalphabetically, so ab is guaranteed to follow aa.Accessing a Computer Through the Network: telnetThe telnet command allows you to log in to a remote computer using a shell.For all practicalpurposes, you are working on a console on the remote computer, and you can use any command just asthough you were physically at the keyboard of the computer in question.The telnet command is veryeasy to use: Just type telnet followed by the host name of the system with which you want to work.This will present you with a login prompt much the same as the ones you have been using in the past fewsections.One thing with telnet sessions is that sometimes your keyboard won t behave the way that it ought to.To fix this problem, see the sidebar discussion on the stty command in Chapter 13,  Text Editing Undera Shell.To exit from a telnet session, type exit or press Ctrl+D at your prompt.Working on the Console: setfontIf you are working using a text interface on a EGA/VGA console, you might wonder why you cannot seemore than 24 lines of text.Well, there s a way of fixing that: the setfont command.The setfont command changes the font used by the console to a different size.Changing the size of thefont also changes the maximum line width and the number of lines you can see; therefore, the font youselect will determine your visible working space.A number of fonts are installed in the /usr/lib/kbd/consolefonts directory.The font files arenamed using a type; typically, you ll want to pick one whose name starts with default (as the type ofcharacters will change depending on the fonts) and a size.Standard VGA font size is 16 (16 pixels tall),so using a smaller font will make a huge difference.The font type/size combination also affectsreadability quite a bit, and different fonts of the same size will look very different on the screen.Somefont files contain all three sizes: 8, 14, and 16.To specify the correct size, just provide a dash (-) followedby the size (setfont will prompt you when it s needed).If your screen goes nuts, just enter setfontagain to return to your default setting.To change a font, specify the name of the font file (you don t need to give the full path):setfont fontnameOne of the more popular fonts which will increase your display size considerably is selected using:Setfont /usr/lib/kbd/consolefonts/alt-8x8Experiment with different types and sizes until you find one that feels most readable to you.Previous Table of Contents Nexthttp://www.itknowledge.com/reference/standard/078971826x/ch17/198-200.html (2 of 3) [1/27/2000 5:51:16 PM] Complete Idiot's Guide to Linux:Command Toolbox: Useful Shell Command and ShortcutsProducts | Contact Us | About Us | Privacy | Ad Info | HomeUse of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc.All rights reserved.Reproduction whole or in part in any form or medium without express written permission of EarthWeb isprohibited.http://www.itknowledge.com/reference/standard/078971826x/ch17/198-200.html (3 of 3) [1/27/2000 5:51:16 PM] Complete Idiot's Guide to Linux:Command Toolbox: Useful Shell Command and ShortcutsTo access the contents, click the chapter and section titles.Complete Idiot's Guide to Linux(Publisher: Macmillan Computer Publishing)Author(s): Manuel RicartGo!ISBN: 078971826xPublication Date: 12/22/98KeywordBrief FullAdvancedSearch this book:SearchSearch TipsGo!Previous Table of Contents Next-----------UNIX Printing PrimerIn this book, I sort of neglected telling you how to print files, partly because if you are using aword processor such as StarOffice, WordPerfect, or Applix, these programs already know how toprint without going through this fuss (StarOffice is included on the CD that comes with thisbook.)If you want to do UNIX text processing from the command line (as contrasted with wordprocessing in a GUI), there are a few things you need to know that will affect the finalpresentation of the document you print.Printing under Linux and UNIX is radically differentfrom printing under Windows or the Macintosh.Printing from the command line involves threesteps:1.Create a document with a text editor, adding any formatting commands to it as youneed.These formatting commands, or macros, will depend on the formatting program youuse.However, the idea of text markup (text processing, as UNIX folks like to call it) is thesame.2.Run your document through one or more filters (some filters might be as basic as thefmt command I talked about earlier); the final filter will typically produce a file thatcontains all the necessary printer control codes to render your document.Sometimes, thefilter can send this output directly to the printer.3.Send your filtered file to the printer using a program called lpr.If you only need to print a plain text file, you ll have to do several things.The program you usewill depend on the type of printer you have.Typically, printers are separated into two camps:those that have PostScript and those that don t.If your printer has PostScript support, you ll probably use a program called enscript.If not,you ll use a program called pr.At the surface level, these programs are equivalent save thatenscript harnesses features available to PostScript so it has a lot more of them.Theseprograms at the basic level allow you to specify margins, headers, and length of a line of text.http://www.itknowledge.com/reference/standard/078971826x/ch17/200-201.html (1 of 2) [1/27/2000 5:51:17 PM] Complete Idiot's Guide to Linux:Command Toolbox: Useful Shell Command and ShortcutsNot fancy, but they provide the basic formatting capabilities you need to generate a reasonablyplain-looking document.Here s an example.If you wanted to print a text file called intro [ Pobierz caÅ‚ość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • higrostat.htw.pl
  •