in black and white
Main menu
Home About us Share a book
Biology Business Chemistry Computers Culture Economics Fiction Games Guide History Management Mathematical Medicine Mental Fitnes Physics Psychology Scince Sport Technics

Linux for dummies - Klimas M.

Klimas M. Linux for dummies - Wiley publishing , 2002. - 169 p.
Download (direct link): linuxfordummies2002.pdf
Previous << 1 .. 98 99 100 101 102 103 < 104 > 105 106 107 108 109 110

# This sets the graph resolution (the default is 100) set samples 600
# Save the plot to a *.png file (make it colour) set output "my_plot.png"
set terminal png color
#interesting terminals: png, x11, postscript, postscript eps, hpgl set title "My Graph" # Graph title
set xlabel "Distance [m]" # title of x1 axis (bottom)
set x2label "Distance [feet]" # title of x2 axis (top)
set ylabel "sin meters" # title of y1 axis (left)
set y2label "log feet" # title y2 axis (right)
Part 6: Some Essential Linux Applications
Linux Newbie Guide by Stan, Peter and Marie Klimas
set xtics # control major tic marks on the axis
set x2tics; set ytics; set y2tics #commands can be separated with semicolons
set mytics # control minor tics on the axis, here I add them to the y axis
set xrange [0:15] # Range for display on the x1 axis
set x2range [0:15.0/0.305] #Expressions are ok. This one converts meters to feet.
set yrange [*:*] # The sets the range to auto
set y2range [*:*] # Range for the y2 axis
set nologscale # or "set logscale x1x2y1y2" #Control logscale, linear scale is the default
set nogrid # or "set grid" #Control gridlines, no grid is the default
set key outside # or "set nokey" #Control legend and its positions: "top", "bottom", "left"
# The following line creates the plot with 4 graph series
plot sin(x) axes x1y1, log(x) axes x2y2, "data.dat" using 1:2, \
"data.dat" using 1:3
# Long lines can be split with \
# The third series uses columns 1 and 2 from the file
# The fourth plots the 3 column agains the 1st column from the data file.
Goto part 7: Learning with Linux
Part 6: Some Essential Linux Applications
Part 7: Learning with Linux
Linux newbie administrator guide
ver. 0.193 2002-12-14 by Stan, Peter and Marie Klimas The latest version of this guide is available at
Copyright (c) by Peter and Stan Klimas. Your feedback, comments, corrections, and improvements are appreciated. Send them to linux This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0, 8 or later
with the modification noted in lnag licence.html.
Contents of this section:
7.1 Linux Advanced Text Processing Tools: banner; script, emacs, vi, nano, diff, patch, grep, regular expressions, sed, (g)awk, cvs. sort and ascii, gpg (pgp) , ...
7.2 Simple Programming under Linux: perl, python, tcl/tk/wish, c/c++, kdevelop, glade, ruby, g77,...
7.3 Math tools: _dc,_bc and "regular" calculator, scilab , generation of random characters on the command line, ...
7.4 : Miscellaneous: wine, RAID disk tools, network traffic shaping.
intro: This page contains commands that are not essential for newbies but can be fun and/or very productive if you take the time to learn them. Above all, they can be very educational—linux is a great learning platform. There are thousands of free programs available on Linux, but some of them may be missing on your system, depending on your distribution. You can always find the hompage with google, and then download them.
7.1 Linux Advanced Text Processing Tools
/usr/games/banner -w79 "Happy Birthday, Marie" > marie.txt
Create an ascii "banner" with the width of 79 characters. The output is sent to file marie.txt. Funny, old-fashioned tool. Another utilty for asci text art is figlet. E.g. figlet "Funny!" produces this on in my terminal (I always use a fixed-size font to display ascii art):
l_l \__,_|_| l_l_l l_l\__, (_)
l /
Log my current session in the text terminal into a text file typescript (the default filename). The log finishes when I type exit or press <Ctrl>d.
(in X-terminal) The emacs text editor. Advanced and sophisticated text editor. Seems for gurus only: "emacs is not just an editor, it is a way of living". Emacs surely seems rich or bloated, depending on your point of view. There are likely 3 versions of emacs installed on your system: (1) text-only: type emacs in a text (not X-windows) terminal (I avoid this like fire); (2) graphical-mode: type emacs in an X-windows terminal (fairly usable even for a newbie if you take some time to learn it); and (3) X-windows mode: type "xemacs" in an X-windows terminal.
The famous (notorious?) "vi" text editor (definitely not recommended for newbies). To exit "vi" (no changes saved) use these five characters: <ESC>:q!<Enter> I use the "kate&" (under X) or "pico" (command line) or "nano" (command line) text editors and don't ever need vi (well, unless I have to unmount the /usr subsystem and modify/edit some configuration files, then vi is the only editor avialable). To be fair, modern Linux distributions use vim (="vi improved") in place of vi, and vim is somewhat better than the original vi. The GUI version of vi is also available (type gvim in an X terminal). Here is one response I have seen to the criticism of vi interface being not "intuitive": "The only intuitive interface is the nipple. The rest must be learned." (Well, so much for MS Windows being an "intuitive" interface.)
Previous << 1 .. 98 99 100 101 102 103 < 104 > 105 106 107 108 109 110