SlideShare uma empresa Scribd logo
1 de 6
Baixar para ler offline
                        




                          BASIC COMMANDS IN LINUX


                            Session – I

                            Kanchi Linux User Group

                            Presented By 

                                                 ­ Mr.Thanigai
Whoami :
arul@arul­desktop:~$ whoami
arul

This command helps to identify login user name


su :
arul@arul­desktop:~$ su ­
Password: 
root@arul­desktop:~# 

This command helps to  Switch User from any user to Root user

Root user means (#) symbol will display at the end of terminal default 
line.

Normal user ($) symbol will display . . .


logout :
root@arul­desktop:~# logout

arul@arul­desktop:~$ 

logout helps to logout from last login user

root@arul­desktop:~# su ­ arul
arul@arul­desktop:~$ 

su ­ ' user name ' will also helps to change the user 



clear :
arul@arul­desktop:~$ clear

It helps to clear the terminal page (ctl + l )
ls :
arul@arul­desktop:~$ ls

Arulalan.jpg
arul_gsoc_2009
arul.pdf
Desktop
Documents
Examples

It helps to list out all files and directories 


ls ­l :
arul@arul­desktop:~$ ls ­l
total 2068980

­rw­r­­r­­  1 arul arul       29055 2009­05­23 23:38 Arulalan.jpg
drwxrwxrwx  3 amma shrini      4096 2009­04­05 14:53 arul_gsoc_2009
­rw­r­­r­­  1 arul arul       34217 2009­05­29 19:16 arul.pdf


drwxrwxrwx 12 root root        4096 2009­05­31 14:46 Desktop
drwxrwxrwx  3 root root        4096 2009­05­17 15:39 Documents


It will display list of files with User , Group, Others Permissions  and their size in 
bytes.



ls ­lh :


arul@arul­desktop:~$ ls ­lh
total 2.0G

­rw­r­­r­­  1 arul arul    29K 2009­05­23 23:38 Arulalan.jpg
drwxrwxrwx  3 amma shrini 4.0K 2009­04­05 14:53 arul_gsoc_2009
­rw­r­­r­­  1 arul arul    34K 2009­05­29 19:16 arul.pdf


drwxrwxrwx 12 root root   4.0K 2009­05­31 14:46 Desktop
drwxrwxrwx  3 root root   4.0K 2009­05­17 15:39 Documents


It will display file size with human readable form .
pwd :
arul@arul­desktop:~$ pwd
/home/arul

It is precent working directory




cd    cd ..    cd ~  
arul@arul­desktop:~$ cd Desktop/
arul@arul­desktop:~/Desktop$ cd ..
arul@arul­desktop:~$ 


cd : change directory

arul@arul­desktop:~/Desktop/Himalayas/linux $ cd ~
arul@arul­desktop:~$ 

cd ~ : ~ symbol helps to change directory from any where to home 
directory.




arul@arul­desktop:~$ cd /home
arul@arul­desktop:/home$ ls
amma  arul  ftp   lost+found  shrini

sudo :

“ sudo “ helps to give root authendication permission for upcomming 
commands followed by sudo, with current user's password.


 adduser :
arul@arul­desktop:~$ sudo adduser
[sudo] password for arul: 
adduser: Only one or two names allowed.
arul@arul­desktop:~$ sudo adduser god
Adding user `god' ...
Adding new group `god' (1004) ...
Adding new user `god' (1003) with group `god' ...
Creating home directory `/home/god' ...
Copying files from `/etc/skel' ...
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
Changing the user information for god
Enter the new value, or press ENTER for the default
      Full Name []: GOD
      Room Number []: 0
      Work Phone []: 
      Home Phone []: 
      Other []: 
Is the information correct? [Y/n] y
arul@arul­desktop:~$ cd /home
arul@arul­desktop:/home$ ls
amma  arul  ftp  god  lost+found  shrini

adduser helps to add user




chmod :
arul@arul­desktop:~/klug$ ls ­l
total 564
drwx­­­­­­ 2 arul arul   4096 2009­05­26 23:50 bajji
­rwx­­­­­­ 1 arul arul    616 2009­05­18 11:08 kanchilug emails & b' days
­rw­r­­r­­ 1 arul arul    338 2009­05­22 19:43 kanchilug freelist 
. . .



arul@arul­desktop:~/klug$ chmod o+rwx kanchilug emails & b' days 
arul@arul­desktop:~/klug$ ls ­l
total 564
drwx­­­­­­ 2 arul arul   4096 2009­05­26 23:50 bajji
­rwx­­­rwx 1 arul arul    616 2009­05­18 11:08 kanchilug emails & b' days
­rw­r­­r­­ 1 arul arul    338 2009­05­22 19:43 kanchilug freelist 
arul@arul­desktop:~/klug$ chmod 777 kanchilug freelist   
arul@arul­desktop:~/klug$ ls ­l
total 564
drwx­­­­­­ 2 arul arul   4096 2009­05­26 23:50 bajji
­rwx­­­rwx 1 arul arul    616 2009­05­18 11:08 kanchilug emails & b' days
­rwxrwxrwx 1 arul arul    338 2009­05­22 19:43 kanchilug freelist 




chmod : change mode : changing file(s) permissions ( read, write, excute ) to users 
, groups , Others .




History :
arul@arul­desktop:~/klug$ history
    1  <?xml version=quot;1.0quot;?>
    2  <stickynotes version=quot;2.26.1quot;/>

    .
    .
    .


  173  chmod o+rwx kanchilug emails & b' days 
  174  ls ­l
  175  chmod 777 kanchilug freelist 
  176  ls ­l
  177  history


history helps to retrive past 500 commands excuted in terminal 
eventhough after shutdown many times. ( By default 500).

we can change change the no of commands which will be store in 
history file . 

arul@arul­desktop:~/klug$ history > klug_history

we can store all those commands history into a text file .

Mais conteúdo relacionado

Destaque

Sub Version Intro
Sub Version IntroSub Version Intro
Sub Version Intro
Kanchilug
 
open source intro
open source introopen source intro
open source intro
Kanchilug
 
Kanchilug Boot camp
Kanchilug Boot campKanchilug Boot camp
Kanchilug Boot camp
Kanchilug
 
Hhs en02 windows_and_linux
Hhs en02 windows_and_linuxHhs en02 windows_and_linux
Hhs en02 windows_and_linux
Shoaib Sheikh
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
Nguyen Vinh
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
Jauhar Amir
 

Destaque (20)

Sub Version Intro
Sub Version IntroSub Version Intro
Sub Version Intro
 
open source intro
open source introopen source intro
open source intro
 
Sharing is Accountability
Sharing is AccountabilitySharing is Accountability
Sharing is Accountability
 
പഞ്ചായത്തു് കമ്പ്യൂട്ടര്‍വല്ക്കരണവും ഭരണഭാഷയും - ചില ചിന്തകള്‍
പഞ്ചായത്തു് കമ്പ്യൂട്ടര്‍വല്ക്കരണവും ഭരണഭാഷയും - ചില ചിന്തകള്‍പഞ്ചായത്തു് കമ്പ്യൂട്ടര്‍വല്ക്കരണവും ഭരണഭാഷയും - ചില ചിന്തകള്‍
പഞ്ചായത്തു് കമ്പ്യൂട്ടര്‍വല്ക്കരണവും ഭരണഭാഷയും - ചില ചിന്തകള്‍
 
Kanchilug Boot camp
Kanchilug Boot campKanchilug Boot camp
Kanchilug Boot camp
 
Cloud Compt
Cloud ComptCloud Compt
Cloud Compt
 
Hhs en02 windows_and_linux
Hhs en02 windows_and_linuxHhs en02 windows_and_linux
Hhs en02 windows_and_linux
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Basic commands of linux By Adam
Basic commands of linux By Adam Basic commands of linux By Adam
Basic commands of linux By Adam
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
 
Linex
LinexLinex
Linex
 
Basic commands (linux)
Basic commands (linux)Basic commands (linux)
Basic commands (linux)
 
Basic linux commands
Basic linux commands Basic linux commands
Basic linux commands
 
ntroduction to GNU/Linux Linux Installation and Basic Commands
ntroduction to GNU/Linux Linux Installation and Basic Commands ntroduction to GNU/Linux Linux Installation and Basic Commands
ntroduction to GNU/Linux Linux Installation and Basic Commands
 
basic linux command (questions)
basic linux command (questions)basic linux command (questions)
basic linux command (questions)
 
Linux basic commands tutorial
Linux basic commands tutorialLinux basic commands tutorial
Linux basic commands tutorial
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Sahul
SahulSahul
Sahul
 

Mais de Kanchilug (12)

Perl Basics
Perl BasicsPerl Basics
Perl Basics
 
Gnu/Linux calendar 2010 final
Gnu/Linux calendar 2010 finalGnu/Linux calendar 2010 final
Gnu/Linux calendar 2010 final
 
Gnu/Linux Calendar 2010 V -1.0
Gnu/Linux Calendar 2010 V -1.0Gnu/Linux Calendar 2010 V -1.0
Gnu/Linux Calendar 2010 V -1.0
 
ubuntu 9.10 release party @ kanchilug
ubuntu 9.10 release party @ kanchilugubuntu 9.10 release party @ kanchilug
ubuntu 9.10 release party @ kanchilug
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
 
Linux Commands - 3
Linux Commands - 3Linux Commands - 3
Linux Commands - 3
 
More Depth Commands In Linux - By Vishnu
More Depth Commands In Linux - By VishnuMore Depth Commands In Linux - By Vishnu
More Depth Commands In Linux - By Vishnu
 
How to Install Ubuntu as Dual
How to  Install Ubuntu as DualHow to  Install Ubuntu as Dual
How to Install Ubuntu as Dual
 
Kanchi Lug Pam-let
Kanchi Lug Pam-letKanchi Lug Pam-let
Kanchi Lug Pam-let
 
An Intro To Television
An Intro To Television An Intro To Television
An Intro To Television
 
How To Use Open Office WordProcessor
How To Use Open Office WordProcessorHow To Use Open Office WordProcessor
How To Use Open Office WordProcessor
 
How To Use Open Office. Impress
How To Use Open Office. ImpressHow To Use Open Office. Impress
How To Use Open Office. Impress
 

Último

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
SoniaTolstoy
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 

Último (20)

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

Basic Commands 1 By Thanigai