Linux

73
LINUX INSTALLATION & LINUX COMMANDS -BY H. ANKUSH.JAIN

description

Learn Linux installation with help of screenshots and various basic and advanced commands of Linux

Transcript of Linux

Page 1: Linux

LINUX INSTALLATION

&

LINUX COMMANDS

-BY H. ANKUSH.JAIN

Page 2: Linux

WHAT IS LINUX ?

l Unix-type operating system

Page 3: Linux

INSTALL LINUX

Insert the cd and restart the system The black screen with a choice for language appears. Select the comfortable

language.

Page 4: Linux

The folowing screen appears

Page 5: Linux

The computer will now boot from the CD/DVD. Click on the Install Ubuntu button.

Page 6: Linux

STEP 1:- Language selection. select the comfortable language.

The click on the forward button to proceed.

Page 7: Linux

STEP 2:- Select the time zone of your location by clicking on the the red dot near your place on the

map. Proceed FORWARD.

Page 8: Linux

STEP 3:- Click on your keyboard layout.Again FORWARD.

Page 9: Linux

STEP 4:- Take Manual (recemended) because of flexibility.

Press forward.Partition table comes.For dual use ext3 for only one partition in which Linux is installed and to use fat32 for all other partitions. Leave the partition where Windows is installed as such if you

wish to facilitate dual bootCreate one partition in ext3 format and set the mount point as ‘/’ backslash. Its better to give

around 5 GB for this partition.A swap area double the size of your RAM is

needed.press FORWARD.

Page 10: Linux
Page 11: Linux

STEP 5:- Give your Details Here.Now click on Forward.

Page 12: Linux

STEP 6:- Step 6 unfortunately has no screenshots. They ask whether you want to migrate your user settings like user accounts

from your existing OS which would be Windows in most cases. I never select this

option. But if its needed you can do it.

Page 13: Linux

STEP 7:- “Ready to Install”. The last step...You see all the selections you have made in the first six

steps and see an install button. You can verify them, change them if needed by going back.

When all changes have been made, press on INSTALL button.

Page 14: Linux

Now they start the installation procedures. They set up the partitions, format it.

Copies the necessary OS files into the / directory or root directory. It will take some time.

Page 15: Linux

click on the Restart now option and wait for restarting.

Login using the username and password given during installation

Page 16: Linux

Login using the username and password given during installation

Page 17: Linux

The linux screen appears.

Page 18: Linux

COMMANDS

Page 19: Linux

ls - List information about file(s)SYNTAX:ls [Options]... [File]...[Options]= -a, -A, -b, -B, -c, -C ....

Page 20: Linux

mkdir Create new folder(s)SYNTAX mkdir [Options] folder...OPTIONS = -m, -p

Page 21: Linux

cd - Change DirectorySyntax cd [Options] [Directory]Options= -P, -L

Page 22: Linux

cat> - Creates a File(s) SYNTAXcat> filename...

Page 23: Linux

cat Display the contents of a fileSyntax cat [Options] [File]...Options = -A, -b, -e

Page 24: Linux

awk - Find and Replace text, database sort/validate/indexSyntax: awk <options> 'Program' File1 ...options = -F FS, -f ...

Page 25: Linux

head - Output the first part of file(s)SYNTAX head [options]... [file]...Options: -c, -q, -v...

Page 26: Linux

tail Output the last part of filesSyntax tail [options]... [file]...Options: -f, -c bytes...

Page 27: Linux

nl Number lines and write filesSYNTAX nl [options]... [File]...OPTIONS: -b STYLE, -d CD ....

Page 28: Linux

cut Divide a file into several partsSyntax cut [OPTION]... [FILE]...OPTIONS: -b BYTE-LIST, -n, -s ...

Page 29: Linux

egrep Search file(s) for lines that match an extended expressionSyntax: egrep [ options ] 'PATTERN' files ...options: -c, -s ...

Page 30: Linux

cmp Compare two filesSyntax cmp options... FromFile [ToFile]Options: -c, -l ...

Page 31: Linux

diff-Display the differences between two filesSyntax diff [options] from-file to-fileOptions: -a, -b, -B ...

Page 32: Linux

du Estimate file space usageSyntax du [options]... [file]...OPTIONS: -a, -b, -c ...

Page 33: Linux

file - Determine file typeSYNTAX:file file-name

Page 34: Linux

look-Display lines beginning with a given stringSyntax: look [-df] [-t termchar] string [file]Options: -d, -f ,-t

Page 35: Linux

sort Sort text filesSyntax sort [options] [file...]options: -c, -m

Page 36: Linux

sum Print a checksum for a fileSyntax sum [options]... [file]...Options: -r, -s ...

Page 37: Linux

wc Print byte, word, and line countsSyntax wc [options]... [file]...options: -c, -w, -l ...

Page 38: Linux

fgrep-Search file(s) for lines that match a fixed stringSyntax: fgrep <options> ...all options are the same as grep

Page 39: Linux

rm Remove filesSyntax rm [options]... file...options: -d, -f ...

Page 40: Linux

rmdir Remove folder(s)Syntax rmdir [options]... folder(s)...Options: -p

Page 41: Linux

clear Clear terminal screenSYNTAX : clear

Page 42: Linux

alias Create an alias Syntax alias [-p] [name[=value] ...]Key: -p, -a

Page 43: Linux

date Display or change the date & timeSyntax date [option]... [+Format]options: -d, -f ...

Page 44: Linux

time Measure Program running timeSyntax time [option...] command [arg...]Options: -o, -a, -f ...

Page 45: Linux

times User and system timesSyntax timesThe return status is zero.

Page 46: Linux

cal Display a calendarSyntax cal [-mjy] [[month] year]Options: -m, -j, -y ...

Page 47: Linux

free Display memory usageSYNTAX: free

Page 48: Linux

df Display free disk spaceSYNTAX df [option]... [file]...option: -a, -h, -H ...

Page 49: Linux

df Display free disk spaceSYNTAX df [option]... [file]...option: -a, -h, -H ...

Page 50: Linux

dig DNS lookupSyntax:dig [@server] [-b address] [-c class] [-f filename] [-k filename][-p port#] [-t type] [-x addr] [-y name:key] [-4] [-6][name] [type] [class] [queryopt...]

Page 51: Linux

id Print user and group id'sSYNTAX id [options]... [username]OPTIONS: -g, -G, -n ...

Page 52: Linux

man Help manualSyntax man [-k] [commandOptions: -s, -k

Page 53: Linux

pwd Print Working DirectorySyntax pwd options]Options: -L, -P

Page 54: Linux

dirs-Display list of remembered directoriesSyntax dirs [options]Options: -c, -l, -p ...

Page 55: Linux

hostname Print or set system nameSYNTAX hostname [name]

Page 56: Linux

logname: Print current login nameSYNTAX: lognamePrints the calling user's name, as found in the file`/var/run/utmp', and exits with a status of 0.

Page 57: Linux

who-Print all usernames currently logged inSyntax- who [options] [file] [am i]options: -m, -q, -s ...

Page 58: Linux

whoami- Print the current user id and name (`id -un')Syntax: whoami

Page 59: Linux

echo Display message on screen Syntax echo [options]... [string]... Options: -n, -e, -E ...

Page 60: Linux
Page 61: Linux

type Describe a commandSyntax type [name ...]

Page 62: Linux

expr Evaluate expressionsSyntax expr expression...

Page 63: Linux

sleep: Delay for a specified timeSyntax: sleep [NUMBER [s/m/h/d]...s- second; m- minute; h- hour; d- day

Page 64: Linux

help: Display help for a built-in command

Page 65: Linux

dircolors Colour setup for `ls'Syntax: eval `dircolors [options]... [file]`options: -b, -c ...

Page 66: Linux

env Environment variablesSyntax: env [OPTION]...OPTION: -u, -i

Page 67: Linux

Fsck: File system consistency check and repairSyntax: fsck [options] [filesystem] ...options: -r, -s, -t ..

Page 68: Linux

top List processes running on the systemSyntax: top optionsoptions: -b, -c, -d ...

Page 69: Linux

history Command HistorySYNTAX history [option]options: -c, -d, -a ...

Page 70: 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 71: 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 72: 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 73: Linux

Thank You