welcome to the video tutorial on print
email and install software on Linux as
we already know now that commands play a
vital role in performing different
processes on Linux easily let us learn
some more of them for performing
day-to-day tasks for printing in Linux
you need to use the pr command this
command helps in formatting the file for
printing on the terminal what more your
original file does not get affected At
All by the formatting that you
do there are many options available with
this command which help in making
desired format changes on the file for
example using the option hyphen X will
divide the data into X columns if you
want to assign a header value to the
text file you can use the hyphen AG
space the header name option with the pr
command let us learn some of them by
examples tools is a file we would like
to print but we want to divide its
content in three columns for this we
will use the command
PR space hyphen 3 space the file name
three being the number of columns that
we would divide the data of this file
into upon entering the command we would
see the file contents have been divided
into into three
columns if you want to assign a header
to the file print you can do so with the
help of this
command home tools would be the title or
the header of the file
tools on running the command we would
see that the file tools has a header
now for denoting all lines with numbers
you can try this
command this command denotes all the
lines in the file with
numbers once you're done with the
formatting and it is time for you to get
a hard copy of the file you need to use
the following command it can be LP file
name or LPR file name in case you want
to print multiple copies of the same
file you can use the number modifier n
and the commands would change to LP
space hyphen n the number of copies then
the file name or the other one displayed
on the
screen if you have multiple printers
installed on your system then you can
specify them using these commands the
first one says LP space hyphen D the
name of the printer and then the name of
the file that you would like to print in
Windows the installation of a program is
done by running the setup do exe
file the installation file contains the
program as well as various dependent
components required to run the program
correctly in Linux or Unix installation
files are distributed as packages but
the package contains only the program
itself any dependent components will
have to be installed separately which
are usually available as packages
themselves you can can use the APT
commands to install or remove a package
you need to run this command with P sudo
let us use it to install VLC media
player on the
system on running this command P sudo
would ask us for the password upon
entering the
password system would start installing
the VLC media player the easy and
popular way to install programs on auntu
is by using the software Center
most of the software packages are
available on it and it is far more
secure than the files downloaded from
the
internet so if you want to install the
VLC media player you can either click on
this thumbnail or you can search for it
on the search
bar clicking on it will give you the
option
installed this way you can install the
software
easily moving on to sending emails you
will need to install the package MX for
it on Terminal this can be done by using
the pseudo appg install
command terminal will prompt if you want
to continue or not press y to that once
you hit the enter
key the postfix configuration screen
would open and it will ask you to select
the mail server configuration
type choose the one that you want and
hit okay
this will install the MX package on your
Linux
[Music]
system once done you can then use the
following Syntax for sending an email
going by the syntax that we saw on the
slide we would have to type in mailx
followed by the email address that we
want to send the email
to once you hit the enter
key The Prompt will ask you to enter the
subject
to enter the body of the message you
would have to hit the enter key again
and then you can type in the message
that you want to
convey once you reach the end of the
message press contrl D and your email
would be sent let us quickly recap what
we have learned in this tutorial using
the pr command you can format and print
the file directly from the terminal the
formatting you do on the files does not
affect the file contents in Unix and
Linux software is installed in form of
packages a package contains the program
itself any dependent component needs to
be downloaded separately you can also
send emails from the terminal using the
MX command let us go through the
commands as well PRX divides the file
into X columns prh command assigns a
header to the file PRN is used to denote
the file with line numbers lpnc file
name and lprc file name print C copies
of a file LPD printer name and lpp
printer name followed by the file name
help in specifying the name of a printer
appg is a command used to install and
update packages mailx followed by the
address followed by the body is the
command to send email thanks for
watching this tutorial