21
Linux: Introduction

Linux

Embed Size (px)

DESCRIPTION

This Slide was presented as an introduction to Linux . Students with little experience in free operating systems were encouraged to take up Linux based operating systems.

Citation preview

Page 1: Linux

Linux: Introduction

Page 2: Linux

Ohk.

● Linux – Know anything?

● What you expect to do by the end of the lecture??

Page 3: Linux

Linux : Kernel Not OS !!

● Kernel : Application layer <=> data layer

.● Linux kernel is the underlying layer below all

operating systems like android, ubuntu , fedora , OpenInnova , OpenSUSE..

● Linus Torvalds (1991) – unix like kernel

Page 4: Linux

Different Flavors Of Linux.

● Linux kernel is open-source.● Anyone is allowed to pick up the source code

and modify it to suit his own needs.● Various differences you'll notice :

from different Window Managers (gnome,kde,xfce,lfce )

to different flavors altogether

(OpenSUSE,Fedora, Ubuntu )

Page 5: Linux

OpenSUSE

Kubuntu Ubuntu

Page 6: Linux

Installing Ubuntu

● - Install with Wubi- DO NOT DO IT.

(More trouble than you can afford)● - Install in new Partition

LiveUSB,LiveCD

Data security and safe.

Follow the steps given on Ubuntu.com or any website.

Page 7: Linux

Linux Filesystem

Page 8: Linux

● /bin - Executable programs.

● /boot -The startup files , the kernel and grub .

● /dev - CPU peripherals.

● /etc - System Configuration (** Control Panel )

● /home -Your files.

● /initrd -boot

● /lib Library files

● /lost+found Files that were saved during failures are here.

● /misc For miscellaneous purposes.

● /mnt Standard mount point : External temporarily mounted file systems, e.g. a CD-ROM or a digital camera.

● /media Standard mount point : External removable media : pendrives .

● /net Standard mount point : Entire remote file systems

● /opt Typically contains extra and third party software.

Page 9: Linux

● /root The administrative user's home directory. Note: / and /root.

● /sbin Programs for use by the system and the system administrator.

● /tmp Temporary space , cleaned upon reboot.

● /usr Programs, libraries, documentation etc. for all user-related programs.

● /var Storage for all variable files and temporary files created by users, such as log files, the mail queue, the print spooler area, space for temporary storage of files downloaded from the Internet, or to keep an image of a CD before burning it.

● /proc A virtual file system containing information about system resources. More information about the meaning of the files in proc is obtained by entering the command man proc in a terminal window. The file proc.txt discusses the virtual file system in detail.

Page 10: Linux

Who's using it?

● Usable 2 – your user and superuser(root).● You are unable to do most processes like

installing a new program or execute certain files● In order to do so you must give the root

password.● It's the same as the account password that you

enter during installation.

Page 11: Linux

● Standard Desktop

Page 12: Linux

● man

the manual pages.

Usage: man gedit

● cd

- change directory.

● Sudo

Superuser do.

eg. sudo program

Some common Software you will UseSome common Software you will Use

Page 13: Linux

● ls

- list the contents of the directory you are currently

in.

- ls -a : list hidden(begin with .) files also.

- ls -l : list files with permissions.

● Pwd

- print working directory.

● Gedit

- simple text editor with gui.

Page 14: Linux

● cp

-To copy files or directory from one place to another.

- cp source file location current file location

- For copying directory use cp –r instead (recursive).

● mv

- To move files or directories from one place to another.

- mv source destination

- mv –r to move directories.

● mkdir:

- To create a directory

Page 15: Linux

● rmdir:

- To delete an empty directory.

● rm:

-To delete files and directories.

- rm filename

- rm –r to delete directory.

● chmod

- Change File Permission

eg: chmod 777 filename.

Page 16: Linux

● The 777 in the example refer to the permissions in binary.

- 001 = execute only (1 binary)

- 010 = write only (2 binary)

- 100 = read only (4 binary)

- 011 = write and execute only ( 2 + 1 = 3 )

- the order is user , group , others.

Page 17: Linux

● Top - system's current running applications.

- Task manager.

● head

- display the first few lines of a file.

● tail

- display the last few lines of a file.

Page 18: Linux

● ssh

- secure shell : allows you to remotely access any other computer allowing this protocol.

● sftp

- secure file transfer protocol .

● nano

- simple command line text editor.

Page 19: Linux

● cat

- Print contents of file to standard out.

- eg: cat filename.

● more and less

- page files one screen at a time

Page 20: Linux

● apt-get

- The best way to install anything . Ever.

eg. Sudo apt-get install program.

● synaptic

- Synaptic package manager .

- Repairs packages .

- Install more than one at a time.

● vim

- complete command line text editor.

Page 21: Linux

● Some Extra Things to know:

- Keep Googling.

- During installation some folders can be

located to a different partition altogether.

- Advantage :

Your linux operating may crash without taking

all your files with it.