• No results found

Introduction to Linux operating system. module Basic Bioinformatics PBF

N/A
N/A
Protected

Academic year: 2021

Share "Introduction to Linux operating system. module Basic Bioinformatics PBF"

Copied!
25
0
0

Loading.... (view fulltext now)

Full text

(1)

Introduction to Linux operating system

(2)

What is Linux?

 A Unix-like Operating System  A famous open source project

 Free to use, distribute, modify under a compatible licence  Produced by a large developer and user community

 A combination of many projects

 Cost of commercial development estimated at USD 7 billion  Companies often make money by selling:

o Support o Training

(3)

Linux distributions

- Ubuntu - Debian - Fedora - Redhat - CentOS - SuSE

(4)

Linux FUD

 hard to install, support for different hardware

try recent distribution (eg. Ubuntu)

 it's ugly

Gnome, KDE, XFCE ... (are they all ugly?)

 something free can't be good

?

 it works different than Windows

(5)

What can it do for you?

 Full operating system

 Works well on a variety of hardware, including older hardware  You can adapt it to fit your needs

 Thousands of programs available  Secure by design

 LAMP stack (Linux, Apache, MySQL, PHP)

 Supports a wide range of programming languages  Scalable

(6)
(7)

GPL licence and source code

 GPL is viral: sharing of changes in GPL

software is requirement to the benefit of community

 When programmers on the Internet can read,

redistribute, and modify the source for a piece of software, it evolves

 People improve it, people adapt it, people fix

bugs. And this can happen at a speed that, compared to conventional software

(8)

History

 GNU project started 1984 to produce a Unix-like OS

 Founded by Richard Stallman

 Wrote the GNU manifesto in 1985 outlining philosophy  Software that is free means more than free of charge

"It means that much wasteful duplication of system programming effort will be avoided. This effort can go instead into advancing the state of the art."

 By early 1990s many of the GNU OS utilities were complete

Meanwhile....

Linus Torvalds starts work on the Linux Kernel

 First version released in 1991

 Changes Linux to GPL licence in 1992  Combined with GNU to make an OS

The first “Distros”...

 1992 - MCC Interim Linux

 1992 - Softlanding Linux System (SLS)  1993 - Debian

(9)

Linux Today

High profile adoptions:

 French Police

 French Parliament  City of Munich

 Amazon  Google

 Dreamworks (to produce Shrek)

Preinstalled:

 Sub notebooks: EEE & OLPC  £99 laptop

 Dell

 Server hardware

(10)

Bioinformatics

 Information technologies used for biology,

BLAST, HMMER, CLUSTALW...

 Lots of data, lots of challenges

 different programming languages  specialized libraries

BioPerlBioJavaBioPython

(11)

Case Study: SecondLife

Linden Labs uses Linux for SecondLife Servers

 Uses 2000 servers

 Servers located in San Francisco and Dallas  Uses Debian Linux

 CTO: Cory Ondrejka said Debian chosen as

can scale massively with a small number of IT staff

 Each geographic area corresponds to a

processor running software known as a “sim”

(12)

Linux on the desktop

 Different desktop systems available  Choose the one you like the best!

(13)

Naming Files

 Files are named by

naming each containing

directory

starting at the root

 This is known as the

pathname /etc/conf1

(14)

Some Special File Names

 Some file names are special:

/ The root directory (not to be confused with the root user). The current directory

.. The parent (previous) directory~ My home directory

 Examples:

./a same as a

(15)

Linux Command Basics

 To execute a command, type its name and

arguments at the command line

ls -l /etc

Command

name Options

(flags)

(16)

Command: ls

 List directory contents  ls has many options

-l long list (displays lots of info) -t sort by modification time

-S sort by size

-h list file sizes in human readable format -r reverse the order

“man ls” for more options

(17)

Redirecting Output

 The output of a command may be sent (piped)

to a file:

ls -l > output

“>” is used to specify the output file

(18)

Redirecting Input

 The input of a command may come (be piped)

from a file:

wc < input

“<” is used to specify the input file

(19)

General Syntax: *

(20)

File Commands

 cp <fromfile> <tofile>

Copy from the <fromfile> to the <tofile>

 mv <fromfile> <tofile>

Move/rename the <fromfile> to the <tofile>

 rm <file> Remove the file named <file>

 mkdir <newdir> Make a new directory called

<newdir>

(21)

Other commands

 whoami – print the name of the current user  id – print information about the current user

 who – print a list of other users who are logged

in

 date – print the current date and time on the

server

 cal – print a calendar for the current month  echo – print a text string to the screen

(22)

Where to Get Help

You can always read the manual! To see the “man page” for the ls command:

(23)

Windows console

Start -> Run -> cmdd:cd <path>dir > dirlist.txthelp dirnotepadexit

(24)

Download PuTTY

 file: putty.exe

(25)

Linux commands

 whoami print effective userid  ls list directory contents

 ls –a

 man ls an interface to the on-line

reference manuals

 whatis ls display simple manual

page descriptions

 pwd print name of current/working

directory

References

Related documents

Gun Control in the United States: an Analysis of Gun Control in the United States: an Analysis of Federal and International Policies and Applications Federal and

Question 13: Is the difference between the independent federal common law standard and the standard that would be used by the state court where the action would have been brought

Compared to teachers who feel most at home in the Netherlands, those who do not are less likely to perceive verbal violence against pupils as being due to pupil behaviour and more

User guide to IPC/DEBIAN10-81A-64 | © 2020 Syslogic Datentechnik AG | All rights reserved Seite 17 von 24 Step 4: Write the image to the flash. Run the script

Tagged as:  bastille linux hardening ,  harden tcp ip stack ,  Hardening centos ,  Hardening debian ,  Hardening Linux ,  hardening red hat ,  Hardening rhel ,  Linux

Debian’s default Apache2 installation attempts to make adding and removing modules, virtual hosts, and extra configuration directives as flexible as possible, in order to

Windows Operating System All Windows supported by Microsoft Linux Operating Systems RHEL, CentOS, Debian, Ubuntu, SLES, OEL Advanced features supported ovs, Storage

For the Virgin Blue Holdings Limited, the 2011 Financial Year marks the first year of their three year Game Change Program strategy and the Virgin Australia’s goal of