LINUX INSTALLATION & LINUX COMMANDS -BY H. ANKUSH.JAIN
WHAT IS LINUX ? Unix-type operating system
INSTALL LINUX Insert the cd and restart the system The black screen with a choice for language appears. Select the comfortable language.
The folowing screen appears
The computer will now boot from the CD/DVD.  Click on the Install Ubuntu button.
STEP 1:- Language selection.  select the comfortable language. The click on the forward button to proceed.
STEP 2:- Select the time zone of your location by clicking on the the red dot near your place on the map. Proceed FORWARD.
STEP 3:- Click on your keyboard layout. Again FORWARD.
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 boot Create 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.
 
STEP 5:- Give your Details Here. Now click on Forward.
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.
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.
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.
click on the Restart now option and wait for restarting. Login using the username and password given during installation
Login using the username and password given during installation
The linux screen appears.
COMMANDS
ls  -  List information about file(s) SYNTAX: ls [Options]... [File]... [Options]= -a, -A, -b, -B, -c, -C ....
mkdir  Create new folder(s) SYNTAX mkdir [Options] folder... OPTIONS = -m, -p
cd  -  Change Directory Syntax  cd [Options] [Directory] Options= -P, -L
cat>  -  Creates a File(s)  SYNTAX cat> filename...
cat  Display the contents of a file Syntax cat [Options] [File]... Options = -A, -b, -e
awk - Find and Replace text, database sort/validate/index Syntax: awk <options> 'Program' File1 ... options = -F FS, -f ...
head  -  Output the first part of file(s) SYNTAX head [options]... [file]... Options: -c, -q, -v...
tail  Output the last part of files Syntax tail [options]... [file]... Options: -f, -c bytes...
nl  Number lines and write files SYNTAX nl [options]... [File]... OPTIONS: -b STYLE, -d CD ....
cut  Divide a file into several parts Syntax cut [OPTION]... [FILE]... OPTIONS: -b BYTE-LIST, -n, -s ...
egrep  Search file(s) for lines that match an extended expression Syntax: egrep [ options ] 'PATTERN' files ... options: -c, -s ...
cmp  Compare two files Syntax cmp options... FromFile [ToFile] Options: -c, -l ...
diff-Display the differences between two files Syntax diff [options] from-file to-file Options: -a, -b, -B ...
du  Estimate file space usage Syntax du [options]... [file]... OPTIONS: -a, -b, -c ...
file  -  Determine file type SYNTAX: file file-name
look-Display lines beginning with a given string Syntax:  look [-df] [-t termchar] string [file] Options: -d, -f ,-t
sort  Sort text files Syntax sort [options] [file...] options: -c, -m
sum  Print a checksum for a file Syntax sum [options]... [file]... Options: -r, -s ...
wc  Print byte, word, and line counts Syntax wc [options]... [file]... options: -c, -w, -l ...
fgrep-Search file(s) for lines that match a fixed string Syntax:  fgrep <options> ... all options are the same as grep
rm  Remove files Syntax rm [options]... file... options: -d, -f ...
rmdir  Remove folder(s) Syntax rmdir [options]... folder(s)... Options: -p
clear  Clear terminal screen SYNTAX : clear
alias  Create an alias  Syntax alias [-p] [name[=value] ...] Key: -p, -a
date  Display or change the date & time Syntax date [option]... [+Format] options: -d, -f ...
time  Measure Program running time Syntax time [option...] command [arg...] Options: -o, -a, -f ...
times  User and system times Syntax times The return status is zero.
cal  Display a calendar Syntax cal [-mjy] [[month] year] Options: -m, -j, -y ...
free  Display memory usage SYNTAX: free
df  Display free disk space SYNTAX df [option]... [file]... option: -a, -h, -H ...
df  Display free disk space SYNTAX df [option]... [file]... option: -a, -h, -H ...
dig  DNS lookup Syntax: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...]
id  Print user and group id's SYNTAX id [options]... [username] OPTIONS: -g, -G, -n ...
man  Help manual Syntax man [-k] [command Options: -s, -k
pwd  Print Working Directory Syntax pwd options] Options: -L, -P
dirs-Display list of remembered directories Syntax dirs [options] Options: -c, -l, -p ...
hostname Print or set system name SYNTAX hostname [name]
logname: Print current login name SYNTAX:  logname Prints the calling user's name, as found in the file`/var/run/utmp', and exits with a status of 0.
who-Print all usernames currently logged in Syntax-  who [options] [file] [am i] options: -m, -q, -s ...
whoami- Print the current user id and name (`id -un') Syntax:  whoami
echo  Display message on screen Syntax echo [options]... [string]... Options: -n, -e, -E ...
 
type  Describe a command Syntax type [name ...]
expr  Evaluate expressions Syntax expr expression...
sleep:  Delay for a specified time Syntax:  sleep [NUMBER [s/m/h/d]... s- second; m- minute; h- hour; d- day
help:  Display help for a built-in command
dircolors Colour setup for `ls' Syntax:  eval `dircolors [options]... [file]` options: -b, -c ...
env  Environment variables Syntax:  env [OPTION]... OPTION: -u, -i
Fsck: File system consistency check and repair Syntax:  fsck [options] [filesystem] ... options: -r, -s, -t ..
top  List processes running on the system Syntax:  top options options: -b, -c, -d ...
history  Command History SYNTAX  history [option] options: -c, -d, -a ...
Linux advanced commands # cal 2007-  show the timetable of 2007  # cat /proc/cpuinfo-  show information CPU info  # cat /proc/interrupts - show interrupts  # cat /proc/meminfo - verify memory use  # cat /proc/swaps-  show file(s) swap  # cat /proc/version - show version of the kernel  # cat /proc/net/dev - show network adpters and statistics
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
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)
Thank You

Linux

  • 1.
    LINUX INSTALLATION &LINUX COMMANDS -BY H. ANKUSH.JAIN
  • 2.
    WHAT IS LINUX? Unix-type operating system
  • 3.
    INSTALL LINUX Insertthe cd and restart the system The black screen with a choice for language appears. Select the comfortable language.
  • 4.
  • 5.
    The computer willnow boot from the CD/DVD. Click on the Install Ubuntu button.
  • 6.
    STEP 1:- Languageselection. select the comfortable language. The click on the forward button to proceed.
  • 7.
    STEP 2:- Selectthe time zone of your location by clicking on the the red dot near your place on the map. Proceed FORWARD.
  • 8.
    STEP 3:- Clickon your keyboard layout. Again FORWARD.
  • 9.
    STEP 4:- TakeManual (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 boot Create 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.
  • 10.
  • 11.
    STEP 5:- Giveyour Details Here. Now click on Forward.
  • 12.
    STEP 6:- Step6 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.
  • 13.
    STEP 7:- “Readyto 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.
  • 14.
    Now they startthe 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.
  • 15.
    click on theRestart now option and wait for restarting. Login using the username and password given during installation
  • 16.
    Login using theusername and password given during installation
  • 17.
  • 18.
  • 19.
    ls - List information about file(s) SYNTAX: ls [Options]... [File]... [Options]= -a, -A, -b, -B, -c, -C ....
  • 20.
    mkdir Createnew folder(s) SYNTAX mkdir [Options] folder... OPTIONS = -m, -p
  • 21.
    cd - Change Directory Syntax cd [Options] [Directory] Options= -P, -L
  • 22.
    cat> - Creates a File(s) SYNTAX cat> filename...
  • 23.
    cat Displaythe contents of a file Syntax cat [Options] [File]... Options = -A, -b, -e
  • 24.
    awk - Findand Replace text, database sort/validate/index Syntax: awk <options> 'Program' File1 ... options = -F FS, -f ...
  • 25.
    head - Output the first part of file(s) SYNTAX head [options]... [file]... Options: -c, -q, -v...
  • 26.
    tail Outputthe last part of files Syntax tail [options]... [file]... Options: -f, -c bytes...
  • 27.
    nl Numberlines and write files SYNTAX nl [options]... [File]... OPTIONS: -b STYLE, -d CD ....
  • 28.
    cut Dividea file into several parts Syntax cut [OPTION]... [FILE]... OPTIONS: -b BYTE-LIST, -n, -s ...
  • 29.
    egrep Searchfile(s) for lines that match an extended expression Syntax: egrep [ options ] 'PATTERN' files ... options: -c, -s ...
  • 30.
    cmp Comparetwo files Syntax cmp options... FromFile [ToFile] Options: -c, -l ...
  • 31.
    diff-Display the differencesbetween two files Syntax diff [options] from-file to-file Options: -a, -b, -B ...
  • 32.
    du Estimatefile space usage Syntax du [options]... [file]... OPTIONS: -a, -b, -c ...
  • 33.
    file - Determine file type SYNTAX: file file-name
  • 34.
    look-Display lines beginningwith a given string Syntax: look [-df] [-t termchar] string [file] Options: -d, -f ,-t
  • 35.
    sort Sorttext files Syntax sort [options] [file...] options: -c, -m
  • 36.
    sum Printa checksum for a file Syntax sum [options]... [file]... Options: -r, -s ...
  • 37.
    wc Printbyte, word, and line counts Syntax wc [options]... [file]... options: -c, -w, -l ...
  • 38.
    fgrep-Search file(s) forlines that match a fixed string Syntax: fgrep <options> ... all options are the same as grep
  • 39.
    rm Removefiles Syntax rm [options]... file... options: -d, -f ...
  • 40.
    rmdir Removefolder(s) Syntax rmdir [options]... folder(s)... Options: -p
  • 41.
    clear Clearterminal screen SYNTAX : clear
  • 42.
    alias Createan alias Syntax alias [-p] [name[=value] ...] Key: -p, -a
  • 43.
    date Displayor change the date & time Syntax date [option]... [+Format] options: -d, -f ...
  • 44.
    time MeasureProgram running time Syntax time [option...] command [arg...] Options: -o, -a, -f ...
  • 45.
    times Userand system times Syntax times The return status is zero.
  • 46.
    cal Displaya calendar Syntax cal [-mjy] [[month] year] Options: -m, -j, -y ...
  • 47.
    free Displaymemory usage SYNTAX: free
  • 48.
    df Displayfree disk space SYNTAX df [option]... [file]... option: -a, -h, -H ...
  • 49.
    df Displayfree disk space SYNTAX df [option]... [file]... option: -a, -h, -H ...
  • 50.
    dig DNSlookup Syntax: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...]
  • 51.
    id Printuser and group id's SYNTAX id [options]... [username] OPTIONS: -g, -G, -n ...
  • 52.
    man Helpmanual Syntax man [-k] [command Options: -s, -k
  • 53.
    pwd PrintWorking Directory Syntax pwd options] Options: -L, -P
  • 54.
    dirs-Display list ofremembered directories Syntax dirs [options] Options: -c, -l, -p ...
  • 55.
    hostname Print orset system name SYNTAX hostname [name]
  • 56.
    logname: Print currentlogin name SYNTAX: logname Prints the calling user's name, as found in the file`/var/run/utmp', and exits with a status of 0.
  • 57.
    who-Print all usernamescurrently logged in Syntax- who [options] [file] [am i] options: -m, -q, -s ...
  • 58.
    whoami- Print thecurrent user id and name (`id -un') Syntax: whoami
  • 59.
    echo Displaymessage on screen Syntax echo [options]... [string]... Options: -n, -e, -E ...
  • 60.
  • 61.
    type Describea command Syntax type [name ...]
  • 62.
    expr Evaluateexpressions Syntax expr expression...
  • 63.
    sleep: Delayfor a specified time Syntax: sleep [NUMBER [s/m/h/d]... s- second; m- minute; h- hour; d- day
  • 64.
    help: Displayhelp for a built-in command
  • 65.
    dircolors Colour setupfor `ls' Syntax: eval `dircolors [options]... [file]` options: -b, -c ...
  • 66.
    env Environmentvariables Syntax: env [OPTION]... OPTION: -u, -i
  • 67.
    Fsck: File systemconsistency check and repair Syntax: fsck [options] [filesystem] ... options: -r, -s, -t ..
  • 68.
    top Listprocesses running on the system Syntax: top options options: -b, -c, -d ...
  • 69.
    history CommandHistory SYNTAX history [option] options: -c, -d, -a ...
  • 70.
    Linux advanced commands# cal 2007- show the timetable of 2007 # cat /proc/cpuinfo- show information CPU info # cat /proc/interrupts - show interrupts # cat /proc/meminfo - verify memory use # cat /proc/swaps- show file(s) swap # cat /proc/version - show version of the kernel # cat /proc/net/dev - show network adpters and statistics
  • 71.
    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
  • 72.
    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)
  • 73.