Recent Comments

  • 2 Ways to Spy on Whatsapp

    Whatsapp is very popular instant message application for smartphone, Now a days many people they are using this app including our children.

  • How to Hack WiFi Using Anroid Device

    Without a software or application hacking is not easy, but with application and software hacking is simple. I Know this sound crazy to you How? don't worry just read this article you will find out how easy it is.

  • How to Remove Virus From Computer Without Antivirus

    computer virus is a program or piece of code that is loaded onto your computer without your knowledge and runs against your wishes.

  • How to Hack Android Lock Patterns

    The main reason to set up some sort of lock screen security on your android phone is to keep someone or friends and family from checking out your messages or private pictures or you don’t want anyone who steal your android to get full access to your e-mails, Facebook, Internet Banking pictures or other sensitive data.

Showing posts with label Linux Tutorial. Show all posts
Showing posts with label Linux Tutorial. Show all posts

Friday, January 16, 2015

Introduction to Unix Operating System

What is UNIX?

UNIX is an operating system which was first
developed in the 1960s, and has been under
constant development ever since. By operating
system, we mean the suite of programs which
make the computer work. It is a stable, multi-
user, multi-tasking system for servers,
desktops and laptops.
UNIX systems also have a graphical user
interface (GUI) similar to Microsoft Windows
which provides an easy to use environment.
However, knowledge of UNIX is required for
operations which aren't covered by a graphical
program, or for when there is no windows
interface available, for example, in a telnet
session.

Types of UNIX

There are many different versions of UNIX,
although they share common similarities. The
most popular varieties of UNIX are Sun Solaris,
GNU/Linux, and MacOS X.
Here in the School, we use Solaris on our
servers and workstations, and Fedora Linux on
the servers and desktop PCs.
The UNIX operating system
The UNIX operating system is made up of three
parts; the kernel, the shell and the programs.
The kernel
The kernel of UNIX is the hub of the operating
system: it allocates time and memory to
programs and handles the filestore and
communications in response to system calls.
As an illustration of the way that the shell and
the kernel work together, suppose a user types
rm myfile (which has the effect of removing
the file myfile ). The shell searches the filestore
for the file containing the program rm , and then
requests the kernel, through system calls, to
execute the program rm on myfile . When the
process rm myfile has finished running, the
shell then returns the UNIX prompt % to the
user, indicating that it is waiting for further
commands.

The shell

The shell acts as an interface between the user
and the kernel. When a user logs in, the login
program checks the username and password,
and then starts another program called the
shell. The shell is a command line interpreter
(CLI). It interprets the commands the user
types in and arranges for them to be carried
out. The commands are themselves programs:
when they terminate, the shell gives the user
another prompt (% on our systems).
The adept user can customise his/her own
shell, and users can use different shells on the
same machine. Staff and students in the school
have the tcsh shell by default.
The tcsh shell has certain features to help the
user inputting commands.
Filename Completion - By typing part of the
name of a command, filename or directory and
pressing the [Tab ] key, the tcsh shell will
complete the rest of the name automatically. If
the shell finds more than one name beginning
with those letters you have typed, it will beep,
prompting you to type a few more letters before
pressing the tab key again.
History - The shell keeps a list of the
commands you have typed in. If you need to
repeat a command, use the cursor keys to
scroll up and down the list or type history for a
list of previous commands.
Files and processes
Everything in UNIX is either a file or a process.
A process is an executing program identified by
a unique PID (process identifier).
A file is a collection of data. They are created
by users using text editors, running compilers
etc.

Examples of files:
a document (report, essay etc.)
the text of a program written in some high-level
programming language
instructions comprehensible directly to the
machine and incomprehensible to a casual
user, for example, a collection of binary digits
(an executable or binary file);
a directory, containing information about its
contents, which may be a mixture of other
directories (subdirectories) and ordinary files.
The Directory Structure
All the files are grouped together in the directory
structure. The file-system is arranged in a
hierarchical structure, like an inverted tree. The
top of the hierarchy is traditionally called root
(written as a slash / )
In the diagram above, we see that the home
directory of the undergraduate student
"ee51vn" contains two sub-directories ( docs
and pics ) and a file called report.doc .
The full path to the file report.doc is "/home/
its/ug1/ee51vn/report.doc"
Starting an UNIX terminal
To open an UNIX terminal window, click on the
"Terminal" icon from Applications/Accessories
menus.
An UNIX Terminal window will then appear with
a % prompt, waiting for you to start entering
commands.

Share:

How to Enable Text console in Ubuntu

There are three ways to access the
command line interface in Ubuntu, as on
any Linux and UNIX distribution. One is
launching the terminal emulator program
within the graphical user interface. The
other two are about accessing the console
directly, independent of the graphical user
interface and the windowing system
powering it (typically X server), and that's
what we're concerned with here.
The quickest way to get to the console in
Ubuntu is to just press

Ctrl-Alt-F1 . You

will immediately be thrown out of the GUI
and into the clean Linux console where
you can log in and use the command line.
Multiple console terminals are available
this way if you press

Ctrl-Alt-F2, Ctrl-Alt-F3, and so on.
However, what you might want is to get
into the text console when you boot into
Ubuntu instead of booting directly into the
graphics mode. For that you'll need to
make some configuration changes to your
GRUB bootloader.

The configuration file
you will need to modify is

/etc/default/

grub , and it is a good idea to make a
backup of it first in case you ever want to
come back to the original configuration:

sudo cp /etc/ default /grub /etc/default / grub .backup

With that out of the way you can start
modifying the configuration file by
opening it, with superuser privileges, in a
text editor such as nano:

sudo nano / etc/default / grub

Enter your password and the file will
open. Then look for this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet
splash" . Using nano you can search for
this line by pressing the Ctrl-W shortcut
and typing that line in. You just need to
comment it out by putting a hash character
in front of it so it looks like this:

#GRUB_CMDLINE_LINUX_DEFAULT="quiet
splash"

As you might guess this disables booting
with the splash screen, and the "quiet"
mode, meaning it wouldn't hide the
console output during boot.
Next enable the text mode finding
GRUB_CMDLINE_LINUX and adding the
"text" option to it. The line will then look
like this:
GRUB_CMDLINE_LINUX = "text"
This will ensure that you see the text
output, but still doesn't enable the console
login. For that find the #GRUB_TERMINAL
line, which is likely commented out,
uncomment it by removing the #
character, and add the "console" option to
it so it reads like this:
GRUB_TERMINAL = console
Finally save the file, which in nano you
can do by pressing Ctrl-X and then enter,
and make sure to update GRUB with the
new configuration using the update-grub
command:
sudo update - grub
Now you can reboot and Ubuntu should
boot in the text mode, and allow you to log
in to the console and run the desired
commands.

Share:
Powered by Blogger.

Facebook

Recent Posts

Random Posts

Tags

Advertising


Theme Support