SlideShare una empresa de Scribd logo
1 de 20
GNOME Terminal Basics
GNOME Terminal is a terminal emulator for the
GNOME desktop environment written by Havoc
Pennington and others.
Terminal emulators allow users to access a UNIX
shell while remaining on their graphical desktop.
GNOME Terminal Basics
To Open Terminal:
→ Search for Terminal on Dash.
Or,
→ Press Ctrl + Alt + T
GNOME Terminal Basics
About display prompt:
khassan@Ubuntu:~$
user@computer:~$
~ Represents Home directory.
$ Represents the user.
GNOME Terminal Basics
Show Present Working Directory:
→ user@computer:~$ pwd
GNOME Terminal Basics
List all files and folders in current directory:
:~$ ls [ Lists color coded files and folder names.
Blue names are directories, Light blue
names are protected directories, White
names are files and Green names are
executable files.]
GNOME Terminal Basics
--help:
To see options and other details for any command:
:~$ ls --help
GNOME Terminal Basics
Clear:
To clear screen:
$ clear
[ This command clears the screen but you can still find
previous commands by pressing uparrow key. ]
GNOME Terminal Basics
Change directory:
$ cd / [goes to the root directory.]
$ cd [goes to home directory from anywhere.]
$ cd Desktop/
~/Desktop$ pwd
[ /home/username/Desktop ]
$ cd ../ [ Up one directory]
GNOME Terminal Basics
Make Directory:
~/Desktop$ mkdir “Test Directory”
Or,
~/Desktop$ mkdir -m 777 “Test Directory”
[ -m option represents mode like chmod.
The directory name has a space and so the
quotation mark. ]
GNOME Terminal Basics
Remove Directory:
$ rmdir directoryName
GNOME Terminal Basics
To Create a File:
$ touch filename
[ file will not be created if the file already exists. ]
$ >filename
[ fill will be created and replace previous one. ]
$ >>filename
[ as touch ]
GNOME Terminal Basics
Editing a file using any editor:
$ gedit filename.txt
[ gedit is the notepad like editor in Ubuntu. ]
$ nano filename.txt
$ vim filename.txt
GNOME Terminal Basics
CAT ( Short for concatenate. )
Display contents of one or multiple files.
$ cat test.txt test2.txt
There are lots of other uses of cat command.
Read: http://www.tecmint.com/13-basic-cat-command-examples-in-linux/
GNOME Terminal Basics
:~$ su
Substitutes user or switches user to root.
In Ubuntu root user is disabled by default. It has no password.
:~$ sudo touch textfile.txt
Gives root privileges for a single command. Here that single command is
touch.
:~$ sudo -i
Switches user to root using normal users password. Exit will change the
prompt to normal user.
GNOME Terminal Basics
File Permission 01
File permission symbols:
u = user (owner)
g = group (group)
o = other (other)
- = not / normal files
d = directory
l = link
r = read = 4
w = write = 2
x = execute = 1
4 + 2 + 1 = 7
GNOME Terminal Basics
File Permission 02
To see the file permission details use ls -l. This option is for long
list of file permission.
khasan@KHasan:~$ ls -l
total 48
d rwx r-x r-x 3 khasan khasan 4096 Nov 29 07:49 Desktop
d rwx r-x r-x 2 khasan khasan 4096 Nov 21 02:45 Documents
d rwx r-x r-x 3 khasan khasan 4096 Nov 26 18:50 Downloads
- rw- r-- r-- 1 khasan khasan 8980 Nov 21 02:30 examples.desktop
G OU
GNOME Terminal Basics
File Permission 03
To change or edit files that are owned by root,
sudo must be used.
Changing file permissions for a particular
user/group/other:
chmod u/g/o+r/w/x filename
Ex:
chmod o-w-x filename
GNOME Terminal Basics
File Permission 04
To change file permission for all types of user:
[ To change or edit files that are owned by root, sudo must be used. ]
chmod -R ugo filename
Ex:
chmod -R 777 filename
4 = Read, 2 = Write, 1 = Execute, 0 = none
4+2+1 = 7
GNOME Terminal Basics
File Permission 05
Change Ownership:
sudo chown -R username:group directory
will change ownership (both user and group) of all files and
directories inside of directory and directory itself.
sudo chown username:group directory
will only change the permission of the folder directory but will leave
the files and folders inside the directory alone.
GNOME Terminal Basic
To Be Continued...

Más contenido relacionado

La actualidad más candente

Termux commands-list
Termux commands-listTermux commands-list
Termux commands-listDhanushR24
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commandsNguyen Vinh
 
One Page Linux Manual
One Page Linux ManualOne Page Linux Manual
One Page Linux Manualdummy
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...Jim Birch
 
Unix / Linux Command Reference
Unix / Linux Command ReferenceUnix / Linux Command Reference
Unix / Linux Command ReferenceSumankumar Panchal
 

La actualidad más candente (12)

Termux commands-list
Termux commands-listTermux commands-list
Termux commands-list
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
One Page Linux Manual
One Page Linux ManualOne Page Linux Manual
One Page Linux Manual
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
Babitha.linux
Babitha.linuxBabitha.linux
Babitha.linux
 
Prabu linux
Prabu linuxPrabu linux
Prabu linux
 
Rhel2
Rhel2Rhel2
Rhel2
 
Vi Editor
Vi EditorVi Editor
Vi Editor
 
Linux Commands
Linux CommandsLinux Commands
Linux Commands
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...
 
Unix / Linux Command Reference
Unix / Linux Command ReferenceUnix / Linux Command Reference
Unix / Linux Command Reference
 
Linux
LinuxLinux
Linux
 

Similar a Gnome terminal basics

Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic CommandsHanan Nmr
 
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformaticsBITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformaticsBITS
 
The structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformaticsThe structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformaticsBITS
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manualSaikat Rakshit
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manualCraig Cannon
 
Linux basics part 1
Linux basics part 1Linux basics part 1
Linux basics part 1Lilesh Pathe
 
Lab 4 -Linux Files, Directories and Basic Commands Part-2.pptx
Lab 4 -Linux Files, Directories and Basic Commands Part-2.pptxLab 4 -Linux Files, Directories and Basic Commands Part-2.pptx
Lab 4 -Linux Files, Directories and Basic Commands Part-2.pptxCiceer Ghimirey
 
Introduction to the linux command line.pdf
Introduction to the linux command line.pdfIntroduction to the linux command line.pdf
Introduction to the linux command line.pdfCesleySCruz
 
Common linux ubuntu commands overview
Common linux  ubuntu commands overviewCommon linux  ubuntu commands overview
Common linux ubuntu commands overviewAmeer Sameer
 
Bash cheat sheet
Bash cheat sheetBash cheat sheet
Bash cheat sheetJogesh Rao
 
Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.Tushar B Kute
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unixsouthees
 
Linux Shortcuts and Commands:
Linux Shortcuts and Commands:Linux Shortcuts and Commands:
Linux Shortcuts and Commands:wensheng wei
 

Similar a Gnome terminal basics (20)

Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
 
Examples -partII
Examples -partIIExamples -partII
Examples -partII
 
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformaticsBITS: Introduction to Linux - Text manipulation tools for bioinformatics
BITS: Introduction to Linux - Text manipulation tools for bioinformatics
 
The structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformaticsThe structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformatics
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manual
 
The one page linux manual
The one page linux manualThe one page linux manual
The one page linux manual
 
Linux basics part 1
Linux basics part 1Linux basics part 1
Linux basics part 1
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Lab 4 -Linux Files, Directories and Basic Commands Part-2.pptx
Lab 4 -Linux Files, Directories and Basic Commands Part-2.pptxLab 4 -Linux Files, Directories and Basic Commands Part-2.pptx
Lab 4 -Linux Files, Directories and Basic Commands Part-2.pptx
 
Introduction to the linux command line.pdf
Introduction to the linux command line.pdfIntroduction to the linux command line.pdf
Introduction to the linux command line.pdf
 
Common linux ubuntu commands overview
Common linux  ubuntu commands overviewCommon linux  ubuntu commands overview
Common linux ubuntu commands overview
 
Bash cheat sheet
Bash cheat sheetBash cheat sheet
Bash cheat sheet
 
Bash cheat sheet
Bash cheat sheetBash cheat sheet
Bash cheat sheet
 
Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
 
Clase10 (consola linux)
Clase10 (consola linux)Clase10 (consola linux)
Clase10 (consola linux)
 
Linux Shortcuts and Commands:
Linux Shortcuts and Commands:Linux Shortcuts and Commands:
Linux Shortcuts and Commands:
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Linux basics
Linux basicsLinux basics
Linux basics
 
Directories description
Directories descriptionDirectories description
Directories description
 

Último

Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfEr. Suman Jyoti
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
 

Último (20)

Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 

Gnome terminal basics

  • 1. GNOME Terminal Basics GNOME Terminal is a terminal emulator for the GNOME desktop environment written by Havoc Pennington and others. Terminal emulators allow users to access a UNIX shell while remaining on their graphical desktop.
  • 2. GNOME Terminal Basics To Open Terminal: → Search for Terminal on Dash. Or, → Press Ctrl + Alt + T
  • 3. GNOME Terminal Basics About display prompt: khassan@Ubuntu:~$ user@computer:~$ ~ Represents Home directory. $ Represents the user.
  • 4. GNOME Terminal Basics Show Present Working Directory: → user@computer:~$ pwd
  • 5. GNOME Terminal Basics List all files and folders in current directory: :~$ ls [ Lists color coded files and folder names. Blue names are directories, Light blue names are protected directories, White names are files and Green names are executable files.]
  • 6. GNOME Terminal Basics --help: To see options and other details for any command: :~$ ls --help
  • 7. GNOME Terminal Basics Clear: To clear screen: $ clear [ This command clears the screen but you can still find previous commands by pressing uparrow key. ]
  • 8. GNOME Terminal Basics Change directory: $ cd / [goes to the root directory.] $ cd [goes to home directory from anywhere.] $ cd Desktop/ ~/Desktop$ pwd [ /home/username/Desktop ] $ cd ../ [ Up one directory]
  • 9. GNOME Terminal Basics Make Directory: ~/Desktop$ mkdir “Test Directory” Or, ~/Desktop$ mkdir -m 777 “Test Directory” [ -m option represents mode like chmod. The directory name has a space and so the quotation mark. ]
  • 10. GNOME Terminal Basics Remove Directory: $ rmdir directoryName
  • 11. GNOME Terminal Basics To Create a File: $ touch filename [ file will not be created if the file already exists. ] $ >filename [ fill will be created and replace previous one. ] $ >>filename [ as touch ]
  • 12. GNOME Terminal Basics Editing a file using any editor: $ gedit filename.txt [ gedit is the notepad like editor in Ubuntu. ] $ nano filename.txt $ vim filename.txt
  • 13. GNOME Terminal Basics CAT ( Short for concatenate. ) Display contents of one or multiple files. $ cat test.txt test2.txt There are lots of other uses of cat command. Read: http://www.tecmint.com/13-basic-cat-command-examples-in-linux/
  • 14. GNOME Terminal Basics :~$ su Substitutes user or switches user to root. In Ubuntu root user is disabled by default. It has no password. :~$ sudo touch textfile.txt Gives root privileges for a single command. Here that single command is touch. :~$ sudo -i Switches user to root using normal users password. Exit will change the prompt to normal user.
  • 15. GNOME Terminal Basics File Permission 01 File permission symbols: u = user (owner) g = group (group) o = other (other) - = not / normal files d = directory l = link r = read = 4 w = write = 2 x = execute = 1 4 + 2 + 1 = 7
  • 16. GNOME Terminal Basics File Permission 02 To see the file permission details use ls -l. This option is for long list of file permission. khasan@KHasan:~$ ls -l total 48 d rwx r-x r-x 3 khasan khasan 4096 Nov 29 07:49 Desktop d rwx r-x r-x 2 khasan khasan 4096 Nov 21 02:45 Documents d rwx r-x r-x 3 khasan khasan 4096 Nov 26 18:50 Downloads - rw- r-- r-- 1 khasan khasan 8980 Nov 21 02:30 examples.desktop G OU
  • 17. GNOME Terminal Basics File Permission 03 To change or edit files that are owned by root, sudo must be used. Changing file permissions for a particular user/group/other: chmod u/g/o+r/w/x filename Ex: chmod o-w-x filename
  • 18. GNOME Terminal Basics File Permission 04 To change file permission for all types of user: [ To change or edit files that are owned by root, sudo must be used. ] chmod -R ugo filename Ex: chmod -R 777 filename 4 = Read, 2 = Write, 1 = Execute, 0 = none 4+2+1 = 7
  • 19. GNOME Terminal Basics File Permission 05 Change Ownership: sudo chown -R username:group directory will change ownership (both user and group) of all files and directories inside of directory and directory itself. sudo chown username:group directory will only change the permission of the folder directory but will leave the files and folders inside the directory alone.
  • 20. GNOME Terminal Basic To Be Continued...