raj linux

66
Linux Installation INSTALLING LINUX BY RAJESH J

Upload: firstplanet

Post on 09-May-2015

605 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Raj linux

Linux Installation

INSTALLING LINUX BY

RAJESH J

Page 2: Raj linux

Introduction

1. System Installation and Customization 2. System Maintenance 3. System Performance and Monitoring

Page 3: Raj linux

What is Linux?

Linux is an operating system. Software on a computer that enables

applications.

Page 4: Raj linux

Where is Linux?

One of the most noted properties of Linux is where it can be used.

Windows and OS X are predominantly found on personal computing devices such as desktop and laptop computers

Page 5: Raj linux

What this is about

Workshop on: System installation & customization System maintenance System performance & monitoring

Page 6: Raj linux

How to install Linux

Linux Installation

To install Red Hat, you will need to download the ISO images (CD Images) of the installation CD-ROMs from http://fedora.redhat.com

Download the i386 images for 32 Intel Processors, PPC images for for Apple Macintosh and x86_64 for for 64 bit AMD Processors

Burn the iso CD images on CDs and use these CDs as Installation CDs (typically 4)

Page 7: Raj linux

Installation and Customization

Disk space

Installation method

Installation class

Personal Desktop Installation

Workstation Installation

Server Installation

Hardware compatibility

Page 8: Raj linux

Installation and Customization

Hardware Information

Where to get information about hardware

Record your system's hardware

Page 9: Raj linux

Installation and Customization

Installing from a Hard Drive Preparing for a Network Installation Installing via NFS Installing via FTP Installing via HTTP Welcome to RedHat Linux

Page 10: Raj linux

Installation and Customization

Preparing to Install Installing Packages Boot Diskette Creation Video Card Configuration X Configuration – Monitor and Customization Installation Complete

Page 11: Raj linux

System Maintenance

Type of Backups Full backup

Every single file is written to backup media Incremental backup

Only modified files are written to backup media Differential backup - Cumulative

Modified files will continue to be included in all subsequent differential backups

Backup Media Tape Disk Network

Page 12: Raj linux

Basic commands of Linux

Page 13: Raj linux

1.Wirte command

write -Send a message to another userSyntax:

write user [ttyname]Example

$ Write maudeThis is a test message <CTRL-D>

Page 14: Raj linux

2.Xargs command

Execute a command, passing constructed argument list(s). The arguments are typically a long list of filenames (generated by ls or find)

that are passed to xargs via a pipe.

Syntax: xargs [options] [command]

Page 15: Raj linux

3.Yes command

`yes' prints the command line arguments, separated by spaces and followed by a newline,

forever until it is killed.

If no arguments are given, it prints `y' followed by

a newline forever until killed.

The only options are a lone `--help' or `--version'.

Page 16: Raj linux

4.whoami command

Print the current user id and name.Syntax:

whoami [options]Options

whoami produces the same result as the id -un

command

Page 17: Raj linux

Alias -Create an alias

Syntax alias [-p] [name[=value] ...]

unalias [-a] [name ... ]

5.Alias command

Page 18: Raj linux

6.Aspell commandAspell -Spellcheck a file.

Syntax:

aspell check [options] filename

Examples:

Check the file foo.txt:

$ aspell check foo.txt

Page 19: Raj linux

7.awk or gawk (gnu awk) command

Find and Replace text, database sort/validate/index

Syntax:

awk <options> 'Program' Input-File1 Input-File2 ...

awk -f PROGRAM-FILE <options> Input-File1 Input-File2 ...

Page 20: Raj linux

8.basename command

Strip directory and suffix from filenames

Syntax:

basename NAME [SUFFIX] basename OPTION

Page 21: Raj linux

9.cat command

Display the contents of a file (concatenate)

Syntax:

cat [Options] [File]...

Page 22: Raj linux

10.Cd command

Change Directory - change the current working directory to a specific Folder.

Syntax :

cd [Options] [Directory]

Page 23: Raj linux

11.cfdisk command

Curses based disk partition table manipulator for Linux

Syntax: cfdisk [ -agvz ] [ -c cylinders ] [ -h heads ]

[ -s sectors-per-track ] [ -P opt ] [ device ]

Page 24: Raj linux

12.chgrp command

Change group ownership

'chgrp' changes the group ownership of each given File to Group (which can be either a group name or a numeric group id) or to the group of

an existing reference file.

Syntax: chgrp [Options]... {Group | --reference=File}

File...

Page 25: Raj linux

13.chmod command

Change access permissions, change mode.

Syntax

chmod [Options]... Mode [,Mode]... file...

chmod [Options]... Numeric_Mode file...

chmod [Options]... --reference=RFile file...

Page 26: Raj linux

14.chkconfig command

Update and query runlevel information for system services.

Syntax: chkconfig --list [name] chkconfig --add name chkconfig --del name

chkconfig [--level levels] name <on|off|reset> chkconfig [--level levels] name

Page 27: Raj linux

15.cksum command

Print CRC checksum and byte counts

Computes a cyclic redundancy check (CRC) checksum for each given File, or standard input

if none are given or for a File of -

Syntax cksum [Option]... [File]...

Page 28: Raj linux

16.cmp command

Compare two files, and if they differ, tells the first byte and line number where they differ.

You can use the `cmp' command to show the offsets and line numbers where two files differ.

`cmp' can also show all the characters that differ between the two files, side by side.

Syntax cmp options... FromFile [ToFile]

Page 29: Raj linux

17.comm command

Common - compare two sorted files line by line

Syntax:

comm [options]... File1 File2

Page 30: Raj linux

18.command

Run command with arguments ignoring any shell function named command.

SYNTAX command [-pVv] command [arguments ...]

Page 31: Raj linux

19.continue command

Resume the next iteration of an enclosing for, while, until, or select loop.

SYNTAX: continue [n]

If n is supplied, the execution of the nth enclosing loop is resumed. n must be greater than or

equal to 1. The return status is zero unless n is not greater than or equal to 1.

Page 32: Raj linux

20.Cp command

Copy one or more files to another location

Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.

Syntax: cp [options]... Source Dest

cp [options]... Source... Directory

Page 33: Raj linux

21.cron command

daemon to execute scheduled commands

Syntax: cron

Cron should be started from /etc/rc or /etc/rc.local. It will return immediately

Page 34: Raj linux

22.csplit command

Split a file into context-determined pieces.

SYNTAX csplit [options]... INPUT PATTERN...

Creates zero or more output files containing sections of

INPUT (standard input if INPUT is `-')

Page 35: Raj linux

23.cut command

Divide a file into several parts (columns)Writes to standard output selected parts of each line of each input file, or standard input if no files

are given or for a file name of `-'.

Syntax cut [OPTION]... [FILE]..

Page 36: Raj linux

24.date command

Display or change the date.

Syntax date [option]... [+Format]

date [option] [MMDDhhmm[[CC]YY][.ss]]

`date' with no arguments prints the current time and date

Page 37: Raj linux

25.dc command

Desk calculator

SYNTAX dc <options>

Page 38: Raj linux

26.DD command

Convert and copy a file, write disk headers, boot records, create a boot floppy. dd can make an

exact clone of an (unmounted) disk.

Syntax dd [Options]

Page 39: Raj linux

27.dd rescue command

Data recovery tool, save data from a crashed partition.

Syntax ddrescue [options] infile outfile [logfile]

Page 40: Raj linux

28.declare command

Declare variables and give them attributes.

SYNTAX declare [-afFrxi] [-p] [name[=value]]

Page 41: Raj linux

29.df command

Disk Free - display free disk space.With no arguments, `df' reports the space used

and available on all currently mounted filesystems.

SYNTAX df [option]... [file]...

Page 42: Raj linux

30.diff command

Display the differences between two files, or each corresponding file in two directories.

Each set of differences is called a "diff" or "patch".

Syntax diff [options] from-file to-file

Page 43: Raj linux

31.dircolors command

Color setup for `ls', outputs a sequence of shell commands to set up the terminal for color output

from `ls' (and `dir', etc.).

Syntax

eval `dircolors [options]... [file]`

Page 44: Raj linux

32.yescommand`yes' prints the command line arguments,

separated by spaces and followed by a newline, forever until it is killed.

If no arguments are given, it prints `y' followed by

a newline forever until killed.

The only options are a lone `--help' or `--version'.

Page 45: Raj linux

33.watch command

Execute a program periodically, showing output full screen

Syntax watch [options] command command_options

Page 46: Raj linux

34.wc command

Print byte, word, and line counts, count the number of bytes, whitespace-separated words, and newlines in each given FILE, or standard

input if none are given or for a FILE of `-'.

Syntax wc [options]... [file]...

Page 47: Raj linux

35.vmstat command

Report virtual memory statistics: processes, memory, paging, block IO, traps, and cpu

activity.

Syntax vmstat [-a] [-n] [delay [ count]]

vmstat [-f] [-s] [-m] vmstat [-S unit]

vmstat [-d] vmstat [-p disk partition]

vmstat [-V]

Page 48: Raj linux

36.screencommand

Multiplex a physical terminal between several processes (typically interactive shells).

Syntax: Start a screen session:

screen [ -options ] [ cmd [args] ] Resume a detached screen session:

screen -r [[pid.]tty[.host]] screen -r sessionowner/[[pid.]tty[.host]]

Page 49: Raj linux

37.diff command

Merge two files interactively. (Show differences) with output to outfile.

SYNTAX sdiff -o outfile [options] from-file to-file

Page 50: Raj linux

38.select command

select construct allows the easy generation of menus. It has almost the same syntax as the for

command.

Syntax select name [in words ...]; do commands;

done

Page 51: Raj linux

39.seq command

Print a sequence of numbers to standard output

Syntax:

seq [options]... [FIRST [STEP]] LAST...

Page 52: Raj linux

40.set command

Manipulate shell variables and functions.

Syntax: set [--abBCefhHkmnpPtuvx] [-o option]

[argument ...]

Page 53: Raj linux

41.passwd command

passwd

Modify a user password.

SYNTAX passwd [options...]

Page 54: Raj linux

42.hash command

Remember the full pathnames of commands specified as name arguments, so they need not

be searched for on subsequent invocations.

SYNTAX

hash [-r] [-p filename] [name]

Page 55: Raj linux

43.id command

Print real and effective user id (uid) and group id (gid), prints identity information about the given

user, or if no user is specified the current process.

SYNTAX id [options]... [username]

Page 56: Raj linux

44.fup / ifdown command

Bring a network interface up or down

Syntax ifup [options] -a | IFACE...

ifdown [options] -a|IFACE...

Page 57: Raj linux

45.less command

Display output one screen at a time, Search through output, Edit the command line.

SYNTAX: less [options]

<command> | less [options]

Page 58: Raj linux

46.let command

Perform arithmetic on shell variables.

Syntax let expression [expression]

Each expression is an arithmetic expression to be evaluated. If the last expression evaluates to 0,

let returns 1; otherwise 0 is returned.

Page 59: Raj linux

47.bc command

An arbitrary precision calculator language

Syntax:

bc options file...

Page 60: Raj linux

48.BG command

Send job to background

Syntax:

bg [PID...]

Page 61: Raj linux

49.break command

Exit from a for, while, until, or select loop

SYNTAX: break [n]

If n is supplied, the nth enclosing loop is exited. n must be greater than or equal to 1

Page 62: Raj linux

50.bulitin command

Run a shell builtin, passing it args, and return its exit status.

SYNTAX: builtin [shell-builtin [args]]

This is useful when defining a shell function with the same name as a shell builtin, retaining the

functionality of the builtin within the function

Page 63: Raj linux

Linux advanced commands

1)# cal 2007- show the timetable of 2007

2)# cat /proc/cpuinfo- show information CPU info 3)# cat /proc/interrupts -show interrupts

4)# cat /proc/meminfo - verify memory use 5)# cat /proc/swaps- show file(s) swap

6)# cat /proc/version -show version of the kernel 7)# cat /proc/net/dev -show network adpters and

statistics

Page 64: Raj linux

9)# cat /proc/net/dev - show network adpters and statistics

10)# cat /proc/mounts - show mounted file system(s)

11)# clock -w -save date changes on BIOS

12)# date -show system date

13)# date 041217002007.00- set date and time - MonthDayhoursMinutesYear.Seconds

14)# dmidecode -q - show hardware system components - (SMBIOS / DMI)

15)# hdparm -i /dev/hda displays the characteristics of a hard-disk

Page 65: Raj linux

16)# lspci -tv display PCI devices

17)# lsusb -tv show USB devices

18)# uname -m show architecture of machine(2)

19)# uname -r show used kernel version

20)# arch - show architecture of machine(1)

Page 66: Raj linux

THANK YOU