linux

122
By, V.Gouthaman

Upload: gouthaman-v

Post on 14-May-2015

1.323 views

Category:

Education


0 download

DESCRIPTION

Installation and Configuration of linux. 100 Linux Commands.

TRANSCRIPT

Page 1: Linux

By,

V.Gouthaman

Page 2: Linux

IntroductionLinux is a multitasking, multiuser operating

system, which means that many people can run many different applications on one computer at the same time. This differs from MS-DOS, where only one person can use the system at any one

time. Under Linux, to identify yourself to the system, you must log in, which entails entering your login name (the name the system uses to

identify you), and entering your password, which is your personal key for logging in to your

account. Because only you know your password, no one else can log in to the system under your

user name.

Page 3: Linux

Installing Linux

There are various types of linux operating systems available like

Ubuntu,Kubuntu,Debian,Fedora, Linux Mint. The most notable point in it is they are

available for free. They send free CDs and DVDs to our place for free, not even charging for shipping. Installing and

configuring Linux is very easy. Here we discuss how to install and configure Ubuntu

Linux with screenshots.

Page 4: Linux

Enter the CD into the drive and restart your computer. Boot the computer using the CD and continue your installation. Select your

language for installation.

Page 5: Linux

Select the second option "Install Ubuntu," and hit the “Enter” key...

Page 6: Linux

Wait for the CD to load into RAM...

Page 7: Linux

When the installer appears, you are able to select your native language for the

installation process. Click the “Forward” button to continue...

Page 8: Linux

Click the “Forward” button after you have selected your desired location...

Page 9: Linux

Click the “Forward” button when you have finished with the keyboard configuration...

Page 10: Linux

Click the “Forward” button...

Page 11: Linux

This is the final step of the installation. Here, you can select to install the boot

loader on another partition or hard drive than the default one...

Page 12: Linux

Click the “Install” button to install Ubuntu...

Page 13: Linux

The Ubuntu 8.10 (Intrepid Ibex) operating system will be installed...

Page 14: Linux

A pop-up window will appear, notifying you that the installation is complete, and you need to restart the computer in order to use the newly installed Ubuntu operating system.Click the “Restart Now” button...

Page 15: Linux

The CD will be ejected, remove it and press the “Enter” key to reboot...

Page 16: Linux

The computer will be restarted and, in a few seconds, you will see the Ubuntu login screen.

Input your username and password...

Page 17: Linux

Have fun using Ubuntu!

Page 18: Linux

LINUX COMMANDS

Page 19: Linux
Page 20: Linux

ls ( list file/directory names in current directory)

Page 21: Linux

ls -l (list all file/directory information in current directory(long version))

Page 22: Linux

ls -R (list all files in current directories and below)

Page 23: Linux

mkdir ( Make A Directory)

Page 24: Linux

cd (Change directory)

Page 25: Linux

cd .. (Move to the parent directory of the current directory.)

Page 26: Linux

cd ~ (Move to the user's home directory. The '~' indicates the users home directory.)

Page 27: Linux

Cat> filename (Creates a file)

Page 28: Linux

Cat filename (To open a file)

Page 29: Linux

Cp file1 file2 (Copy file1 to file2)

Page 30: Linux

cat file1 file2 (concatenates two files, i.e. It combines two files together and produces the

output)

Page 31: Linux

rm filename (removes a file)

Page 32: Linux

rmdir (removes a directory)

Page 33: Linux

clear (used to clear the current window)

Page 34: Linux

cal (displays calendar)

Page 35: Linux

bc (command line calculator)

Page 36: Linux

echo (prints the given input)

Page 37: Linux

whatis (displays the purpose of a command)

Page 38: Linux

help (Displays help for a built-in command)

Page 39: Linux

alias (allows to create shortcut for a command)

Page 40: Linux

free (displays information about the free space in the system)

Page 41: Linux

awk (used to manipulate a file)

Page 42: Linux

time (used to measure program running time)

Page 43: Linux

pwd (prints the full address of the current directory)

Page 44: Linux

who (displays the users who are currently logged in)

Page 45: Linux

cmp (compares two files)

Page 46: Linux

head (prints the first few lines of the file)

Page 47: Linux

cut (used to cut selected lines in a file)

Page 48: Linux

date (prints the date and time)

Page 49: Linux

df (displays the space available on each mount)

Page 50: Linux

diff (used to find difference between two files)

Page 51: Linux

du (displays the size of a file or directory)

Page 52: Linux

egrep (used to search words or letters in a file)

Page 53: Linux

file (is used to check whether a given name is a file or directory)

Page 54: Linux

Tail (used to display the last few lines of a file)

Page 55: Linux

man (mannual for a command)

Page 56: Linux

groups (used to display the groups a user is in)

Page 57: Linux

hostname (specifies the name of the host)

Page 58: Linux

host (displays the ip address of the given domain name)

Page 59: Linux

id (prints the effective(current) and real userid(UID)s and groupid(GID)s)

Page 60: Linux

jobs (lists the jobs running in background and foreground)

Page 61: Linux

kill (used to kill the background process)

Page 62: Linux

last (displays the last logged in users)

Page 63: Linux

Who am i (displays the current user name and id)

Page 64: Linux

ps (used to report the status of a process)

Page 65: Linux

dirs (displays list of remembered directories)

Page 66: Linux

dircolors (colour setup for ls)

Page 67: Linux

link (used to create a link for a file)

Page 68: Linux

lsattr (lists the attributes of files in a directory)

Page 69: Linux

more (Display the named files on a terminal, one screenful at a time)

Page 70: Linux

mv (used to move/rename file from one directory to another)

Page 71: Linux

nestat (displays statistics information and current state of network connections, protocol, ports/ sockets and

devices)

Page 72: Linux

passwd (to change password)

Page 73: Linux

paste (used to paste contents from one file to another file)

Page 74: Linux

printf (used to write formatted output)

Page 75: Linux

restore (restores the data from the dump-file or backup-file created using dump command)

Page 76: Linux

sort (sorts the sentences in a file)

Page 77: Linux

Route (displays routing table resides in kernel and also used to modify the routing table)

Page 78: Linux

sed (used to edit or delete all occurrences of one string to another within a file)

Page 79: Linux

whois (lists the information about the domain owner)

Page 80: Linux

yes (repeatedly prints the given string)

Page 81: Linux

aspell (used to check the spellings)

Page 82: Linux

command (Runs a command ignoring shell functions)

Page 83: Linux

dir (lists the directory contents)

Page 84: Linux

dirname (Convert a full pathname to just a path)

Page 85: Linux

dmesg (Displays kernel & driver messages)

Page 86: Linux

eval ( Evaluate several commands/arguments)

Page 87: Linux

expr ( Evaluates the given expression)

Page 88: Linux

locate (Search files)

Page 89: Linux

fmt (Converts separate lines into a single paragraph)

Page 90: Linux

fold (Wrap text to fit a specified width)

Page 91: Linux

fsck (check and repair the consistency of the File system)

Page 92: Linux

getopts (Displays Parse positional parameters)

Page 93: Linux

gzip ( Compress or decompress named file)

Page 94: Linux

gunzip (decompress files )

Page 95: Linux

hash (Remembers the full pathname of a name argument)

Page 96: Linux

times (Displays User and system times)

Page 97: Linux

history ( Displays the History )

Page 98: Linux

killall -l (displays all known signal names)

Page 99: Linux

nl (Number the lines in a file)

Page 100: Linux

nohup (Run a command immune to hangups and stores the output in a file nohup.out)

Page 101: Linux

popd (Restore the previous value of the current directory)

Page 102: Linux

pr ( Prepares the files for printing)

Page 103: Linux

pushd - (Save and then change the current directory)

Page 104: Linux

quota (Displays the disk usage and limits)

Page 105: Linux

scp ( Secure copy (remote file copy))

Page 106: Linux

rev (Reverses the lines of a file)

Page 107: Linux

screen (Multiplex terminal, run remote shells via ssh)

Page 108: Linux

sdiff (Merges two files interactively)

Page 109: Linux

seq (Print numeric sequences)

Page 110: Linux

shopt (Shell Options)

Page 111: Linux

shutdown (To Shutdown linux)

Page 112: Linux

sleep ( Delay for a specified time)

Page 113: Linux

su (Substitute user identity)

Page 114: Linux

sudo ( Execute a command as another user)

Page 115: Linux

cksum (Print CRC checksum and byte counts)

Page 116: Linux

tsort (Topological sort)

Page 117: Linux

ulimit (Limit user resources)

Page 118: Linux

unalias (Removes an alias)

Page 119: Linux

uname (Prints system information)

Page 120: Linux

zcat (read files which are compressed with gzip)

Page 121: Linux

zcmp (compares two compressed files)

Page 122: Linux