Introduction to Linux
DR.SANGEETA ARORA
(HOD,P.G DEPT OF COMPUTER SCIENCE & IT)
1
History of Linux
2
The Role and Function of Linux
3
The Role and Function of Linux..
4
The Role and Function of Linux..
5
The Historical Development of Linux
■ bash : a command-line interface
■ update : a utility for flushing file system buffers
■ gcc : a C++ compiler
6
The Historical Development of Linux
7
What is GNU?
8
Nội dung chính của GNU - GPL
9
Linux Distributions
■ SUSE Linux ■ TurboLinux
■ Fedora Linux ■ Mandrake Linux
■ Red Hat Enterprise Linux ■ Lycoris Linux
■ Debian Linux
■ CentOS ■ Linspire
■ ALT Linux
■ Gentoo Linux ■ Ubuntu
■Slackware Linux
10
Distributions..
11
Roles of Linux
12
Linux on the Desktop
13
Linux as a Server
■ File Server Using the Network File System (NFS) or Samba service, Linux can be configured to provide network storage of users’ files.
■ Print Server Using the Common UNIX Printing System (CUPS) and Samba services together, Linux can be configured to provide shared printing for network users.
■ Database Server Linux works great as a database server. There are a variety of database services available for Linux servers, including MySQL and PostgreSQL.
14
Linux as a Server..
■ Web Server Linux is also widely deployed as a Web server. The most popular Web service currently used on Linux is the Apache Web server.
■ E-Mail Server There are a variety of different e-mail services available for Linux that can turn your system into an enterprise-class e-mail server.
15
Linux as a Server..
16
Firewall
17
Components of Linux
18
Linux Command-Line Interface
■ Linux shells: A shell is a command interpreter that allows you to type commands from the keyboard to interact with the operating system kernel.
■ sh (Bourne Shell) The sh shell was the earliest shell, being developed for UNIX back in the late 1970s.
■ bash (Bourne-Again Shell) The bash shell is an improved version of the sh shell and is one of the most popular shells today. It’s the default shell used by most Linux distributions.
■ csh (C Shell) The csh shell was originally developed for BSD UNIX. It uses a syntax that is very similar to C programming.
■ tsch The tsch shell is an improved version of the C Shell. It is the default shell used on FreeBSD systems.
■ zsh (Z Shell) The Z Shell is an improved version of the bash shell.
19
Linux Command-Line Interface
20
Linux Command-Line Interface..
21
Running multiple command
22
Commonly Used CLI Commands �and Utilities
/ : denote root directory
./ : denote current directory
PATH :
■ halt This command shuts down the operating system, but can only be run by the root user.
■ reboot This command shuts down and restarts the operating system. It also can only be run by root.
23
Commonly Used CLI Commands
■ init 0 This command also shuts down the operating system, and can only be run by your root user.
■ init 6 This command also shuts down and restarts the operating system. It also can only be run by root.
■ man: is help command. Ex: man ls
24
Commands…
■ su (switch user) This command switches the current user to a new user account. This command is most frequently used to switch to the superuser root account. In fact, if you don’t supply a username, this utility assumes that you want to change to the root account. If you enter su -, then you will switch to the root user account and have all of root’s environment variables applied.
25
Commands…
■ env This command displays the environment variables for the currently logged-in user.
■ echo This command is used to echo a line of text on the screen. It’s frequently
used to display environment variables.
Ex: echo $PATH
26
Commands…
■ top This command is a very useful
command that displays a list of all
applications and processes currently
running on the system.
■ which This command is used to display the full path to a shell command or utility.
Ex: which ls
It display: /bin/ls
27
Commands…
■ whoami This command displays the username of the currently logged-in user.
■ netstat This command displays the status of the network, including current connections, routing tables, etc.
■ route This command is used to view or manipulate the system’s routing table.
■ ifconfig This command is used to manage network boards installed in the system. It can be used to display or modify your network board configuration parameters.
28
Linux Graphical User Interface
29
30
THANK YOU