SlideShare a Scribd company logo
PPrreesseenntteedd BByy ::-- MMiissss.. SSoonnaall SSaabbhhaayyaa 
&& 
MMiissss.. HHeettaall DDoobbaarriiyyaa 
((FFYY..MM..SScc((IITT&&CCAA)))) 
SSuubbmmiitttteedd TTOO ::-- 
MMiissss.. RRaacchhaannaa KKaammaalliiaa
Index 
Introduction 
File System Hierarchy Standard 
Types of file 
Acces Mode of files and directory 
Changing Permission 
Navigation Command 
Linux File System
Introduction 
All data in Linux organized into files. 
All files are organized into directories. 
These directories are organized into a tree-like 
structure called the file system. 
Linux file system also enables you to group files 
into directories, which is similar to folder you 
create in windows explorer 
Linux File System
FFiilleessyysstteemm HHiieerraarrcchhyy SSttaannddaarrdd 
 Defines the main directories and their contents in most 
Linux-based systems 
 There is not any drive C:, D:, … 
 All directories are under “/” 
 “/” is the root directory 
 It is possible 
 to have multiple partitions 
 to multiple filesystems 
Linux File System
Filesystem Hierarchy Standard 
(continued)… 
Linux File System
cont…. 
Linux File System
cont…. 
Linux File System
Types of file 
-> Ordinary Files: 
An ordinary file is a file on the system that contains data, text, or 
program instructions. 
-> Directories: 
Directories store both special and ordinary files. For users 
familiar with Windows or Mac OS, UNIX directories are equivalent 
to folders. 
Linux File System
Types of file 
-> Special Files: 
Some special files provide access to hardware such as hard 
drives, CD-ROM drives, modems, and Ethernet adapters. Other 
special files are similar to aliases or shortcuts and enable you to 
access a single file using different names. 
Linux File System
File Access Mode 
Read: 
 Grants the capability to read ie. view the contents of the file. 
Write: 
 Grants the capability to modify, or remove the content of the file. 
Execute: 
 User with execute permissions can run a file as a program. 
Linux File System
Directory Access Modes 
Read: 
Access to a directory means that the user can read the 
contents. The user can look at the filenames inside the 
directory. 
Write: 
Access means that the user can add or delete files to the 
contents of the directory. 
Execute: 
A user must have execute access to the bin directory in 
order to execute ls or cd command. 
Linux File System
Interpreting the Mode 
Linux File System
Changing Permission 
 chmod (change mode) command: Change mode (permissions) of files or 
directories. 
 Permissions stored in a file’s. 
 New files given rw-rw-rw- permissions by default 
Linux File System
Changing Permission 
Linux File System
Navigating the File System 
• Pwd (Present Working Directory) 
• cd 
• ls 
Linux File System
Using the pwd Command 
 pwd stands for Print Working Directory. 
 pwd is a Linux / Unix command which prints the current working 
directory. 
 pwd prints the full pathname of the current working directory. 
Syntax 
Linux File System 
pwd [OPTION]...
Using the pwd Command 
-P, --physical Print the Physical Directory Path Without any Sysmbolic 
Linux File System 
Link. 
--help Display a help message. 
--version Display version information.
Using the pwd Command 
Examples: 
$ pwd 
/home/IT 
and the computer prints out /home/IT, that means that the directory the 
user is currently in is /home/IT. 
In the following example, the user is located in the directory 
/usr/local/bin, uses the command pwd, uses the command cd .. to move 
back to the parent directory and then uses pwd again: 
Example: 
Linux File System 
$ pwd 
/usr/local/bin 
$ cd .. 
$ pwd 
/usr/local
Using the cd Command 
 The Linux cd command stands for change directory. 
 It is the primary command for moving between directories on a 
Unix/Linux filesystem. 
 Syntex: 
Linux File System 
cd [directory] 
 Here directory is the name of the directory where you wish to go. 
.
Examples of cd command 
 Change working directory to /abc/xyz 
pwd 
/home/IT 
cd /abc/xyz 
pwd 
/abc/xyz 
 Change working directory to user’s home directory 
pwd 
/etc/BCA 
cd ~ 
or 
cd 
pwd 
/home/IT 
 Change working directory to parent directory. 
cd .. 
Linux File System
Examples of cd command 
 Change working directory to parents parent directory or two levels up in 
the directory structure. 
cd ../.. 
 Using wildcards 
cd /v* 
The * wildcard characters can be interpreted as "any number of 
any character", so the Linux system expands the /v* that typed into 
/var 
 Change the working directory to /var/ftp without mentioning ftp fully. 
cd /var/ft? 
This will change the directory to /var/ftp 
Linux File System
Pushd command 
 Use pushd command to change the directory. This is similar 
to cd command. 
 It saves the current working in memory . 
Ex. pushd /var/ftp/pub 
Linux File System
Using the ls Command 
 ls is a Linux shell command that lists directory contents and 
Files. 
 ls syntax 
$ ls [options] [file|dir] 
# ls 
0001.Pcap Desktop Downloads index.html install.log.syslog Pictures 
Templates anaconda-ks.cfg Documents fbcmd_update.php install.log 
Music Public Videos 
Linux File System
Using the ls Command 
ls -a list all files including hidden file starting with '.' 
ls -d list directories - with ' */' 
ls -F It differenciate files and directory. 
ls -i list file's inode index number 
ls -l list with long format - show permissions 
ls -la list long format including hidden files 
ls -lh list long format with readable file size 
Linux File System
Using the ls Command 
Linux File System 
l 
ls -ls list with long format with file size 
ls -r list in reverse order 
ls -R list recursively directory tree 
ls -s list file size 
ls -S sort by file size 
ls -t sort by time & date 
ls -X sort by extension name
Using the ls Command 
# ls -a 
. .bashrc Documents .gconfd install .log .nautilus .pulse-cookie .. 
.cache Downloads .gnome2 install .log.syslog .netstat.swp .recently-used. 
Linux File System 
l 
xbel 0001 .pcap .config .elinks 
# ls -F 
0001.Pcap Desktop/ Downloads/ index.html install.log.syslog 
Pictures/ Templates/ anaconda-ks.cfg Documents/ fbcmd_update.php 
install.log Music/ 
$ ls -1 
bin 
boot 
//Display One File Per Line Using ls -1 
cdrom 
dev
Using the ls Command 
Linux File System 
l 
$ ls / /*List root directory*/ 
$ ls .. List /*parent directory*/ 
$ ls ~ /*List user's home directory*/ 
$ ls * /*List all subdirectories*/ 
$ ls *.txt /*List only text files with wildcard*/ 
$ ls > out.txt /*ls redirection to output file*/
Using the ls Command 
# ls -lS 
total 176 
-rw-r--r--. 1 root root 48867 Jul 31 02:17 install.log 
-rw-r--r--. 1 root root 46701 Jul 31 09:58 index.html 
-rw-r--r--. 1 root root 21262 Aug 12 12:42 fbcmd_update.php 
-rw-r--r--. 1 root root 11439 Jul 31 02:13 install.log.syslog 
drwxr-xr-x. 2 root root 4096 Jul 31 02:48 Desktop 
drwxr-xr-x. 2 root root 4096 Jul 31 02:48 Documents 
drwxr-xr-x. 4 root root 4096 Aug 16 02:55 Downloads 
drwxr-xr-x. 2 root root 4096 Jul 31 02:48 Music 
drwxr-xr-x. 2 root root 4096 Jul 31 02:48 Pictures 
drwxr-xr-x. 2 root root 4096 Jul 31 02:48 Public 
drwxr-xr-x. 2 root root 4096 Jul 31 02:48 Templates 
drwxr-xr-x. 2 root root 4096 Jul 31 02:48 Videos 
-rw-------. 1 root root 1586 Jul 31 02:17 anaconda-ks.cfg 
-rw-r--r--. 1 root root 683 Aug 19 09:59 0001.pcap 
Linux File System 
l
Using the ls Command 
Linux File System 
l 
# ls -i 
20112 0001.pcap 23610 Documents 23793 index.html 23611 Music 
23597 Templates 23564 anaconda-ks.cfg 23595 Downloads 22 install.log 
23612 Pictures 23613 Videos 23594 Desktop 23585 fbcmd_update.php 
35 install.log.syslog
That’s All About Linux File 
System Navigation 
Linux File System 
l
Thank You 
Linux File System 
l

More Related Content

What's hot

Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
Nishant Munjal
 
Linux basics part 1
Linux basics part 1Linux basics part 1
Linux basics part 1
Lilesh Pathe
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
Sagar Kumar
 
Unix OS & Commands
Unix OS & CommandsUnix OS & Commands
Unix OS & Commands
Mohit Belwal
 
Course 102: Lecture 4: Using Wild Cards
Course 102: Lecture 4: Using Wild CardsCourse 102: Lecture 4: Using Wild Cards
Course 102: Lecture 4: Using Wild Cards
Ahmed El-Arabawy
 
Unix ppt
Unix pptUnix ppt
Unix ppt
sudhir saurav
 
Server configuration
Server configurationServer configuration
Server configuration
Aisha Talat
 
Users and groups in Linux
Users and groups in LinuxUsers and groups in Linux
Users and groups in Linux
Knoldus Inc.
 
Unix - An Introduction
Unix - An IntroductionUnix - An Introduction
Unix - An Introduction
Deepanshu Gahlaut
 
Quick Guide with Linux Command Line
Quick Guide with Linux Command LineQuick Guide with Linux Command Line
Quick Guide with Linux Command Line
Anuchit Chalothorn
 
Unix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell ScriptUnix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell Script
sbmguys
 
The linux file system structure
The linux file system structureThe linux file system structure
The linux file system structure
Teja Bheemanapally
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File System
Sadia Bashir
 
Job Automation using Linux
Job Automation using LinuxJob Automation using Linux
Job Automation using Linux
Jishnu Pradeep
 
Introduction to SSH
Introduction to SSHIntroduction to SSH
Introduction to SSH
Hemant Shah
 
Introduction to Shell script
Introduction to Shell scriptIntroduction to Shell script
Introduction to Shell script
Bhavesh Padharia
 
Linux commands
Linux commandsLinux commands
Linux commands
penetration Tester
 
Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013
Wave Digitech
 
CMD Command prompts
CMD Command promptsCMD Command prompts
CMD Command prompts
Ahmed Hesham
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
Stephen Ahiante
 

What's hot (20)

Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
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
 
Unix OS & Commands
Unix OS & CommandsUnix OS & Commands
Unix OS & Commands
 
Course 102: Lecture 4: Using Wild Cards
Course 102: Lecture 4: Using Wild CardsCourse 102: Lecture 4: Using Wild Cards
Course 102: Lecture 4: Using Wild Cards
 
Unix ppt
Unix pptUnix ppt
Unix ppt
 
Server configuration
Server configurationServer configuration
Server configuration
 
Users and groups in Linux
Users and groups in LinuxUsers and groups in Linux
Users and groups in Linux
 
Unix - An Introduction
Unix - An IntroductionUnix - An Introduction
Unix - An Introduction
 
Quick Guide with Linux Command Line
Quick Guide with Linux Command LineQuick Guide with Linux Command Line
Quick Guide with Linux Command Line
 
Unix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell ScriptUnix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell Script
 
The linux file system structure
The linux file system structureThe linux file system structure
The linux file system structure
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File System
 
Job Automation using Linux
Job Automation using LinuxJob Automation using Linux
Job Automation using Linux
 
Introduction to SSH
Introduction to SSHIntroduction to SSH
Introduction to SSH
 
Introduction to Shell script
Introduction to Shell scriptIntroduction to Shell script
Introduction to Shell script
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013
 
CMD Command prompts
CMD Command promptsCMD Command prompts
CMD Command prompts
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
 

Similar to Linux file system nevigation

linux-file-system01.ppt
linux-file-system01.pptlinux-file-system01.ppt
linux-file-system01.ppt
MeesanRaza
 
Basics of Linux
Basics of LinuxBasics of Linux
Basics of Linux
SaifUrRahman180
 
Linux commands and file structure
Linux commands and file structureLinux commands and file structure
Linux commands and file structure
Sreenatha Reddy K R
 
linux commands.pdf
linux commands.pdflinux commands.pdf
linux commands.pdf
amitkamble79
 
linux-lecture4.ppt
linux-lecture4.pptlinux-lecture4.ppt
linux-lecture4.ppt
LuigysToro
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
Muhammad Qazi
 
Directories description
Directories descriptionDirectories description
Directories description
Dr.M.Karthika parthasarathy
 
Introduction to linux2
Introduction to linux2Introduction to linux2
Introduction to linux2
Gourav Varma
 
03 browsing the filesystem
03 browsing the filesystem03 browsing the filesystem
03 browsing the filesystem
Shay Cohen
 
An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to Linux
Dimas Prasetyo
 
Linux command line cheatsheet
Linux command line cheatsheetLinux command line cheatsheet
Linux command line cheatsheet
We Ihaveapc
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
southees
 
18 LINUX OS.pptx Linux command is basic isma
18 LINUX OS.pptx Linux command is basic isma18 LINUX OS.pptx Linux command is basic isma
18 LINUX OS.pptx Linux command is basic isma
perweeng31
 
Linux shell scripting
Linux shell scriptingLinux shell scripting
Linux shell scripting
Mohamed Abubakar Sittik A
 
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
BITS
 
Linux ppt
Linux pptLinux ppt
Linux ppt
Sanmuga Nathan
 
LinuxLabBasics.ppt
LinuxLabBasics.pptLinuxLabBasics.ppt
LinuxLabBasics.ppt
CharuJain396881
 
Linux commands
Linux commandsLinux commands
Linux commands
U.P Police
 
Linux
LinuxLinux
OpenGurukul : Operating System : Linux
OpenGurukul : Operating System : LinuxOpenGurukul : Operating System : Linux
OpenGurukul : Operating System : Linux
Open Gurukul
 

Similar to Linux file system nevigation (20)

linux-file-system01.ppt
linux-file-system01.pptlinux-file-system01.ppt
linux-file-system01.ppt
 
Basics of Linux
Basics of LinuxBasics of Linux
Basics of Linux
 
Linux commands and file structure
Linux commands and file structureLinux commands and file structure
Linux commands and file structure
 
linux commands.pdf
linux commands.pdflinux commands.pdf
linux commands.pdf
 
linux-lecture4.ppt
linux-lecture4.pptlinux-lecture4.ppt
linux-lecture4.ppt
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Directories description
Directories descriptionDirectories description
Directories description
 
Introduction to linux2
Introduction to linux2Introduction to linux2
Introduction to linux2
 
03 browsing the filesystem
03 browsing the filesystem03 browsing the filesystem
03 browsing the filesystem
 
An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to Linux
 
Linux command line cheatsheet
Linux command line cheatsheetLinux command line cheatsheet
Linux command line cheatsheet
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
 
18 LINUX OS.pptx Linux command is basic isma
18 LINUX OS.pptx Linux command is basic isma18 LINUX OS.pptx Linux command is basic isma
18 LINUX OS.pptx Linux command is basic isma
 
Linux shell scripting
Linux shell scriptingLinux shell scripting
Linux shell scripting
 
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
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 
LinuxLabBasics.ppt
LinuxLabBasics.pptLinuxLabBasics.ppt
LinuxLabBasics.ppt
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Linux
LinuxLinux
Linux
 
OpenGurukul : Operating System : Linux
OpenGurukul : Operating System : LinuxOpenGurukul : Operating System : Linux
OpenGurukul : Operating System : Linux
 

Recently uploaded

Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
S. Raj Kumar
 
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdfIGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
Amin Marwan
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
MysoreMuleSoftMeetup
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
spdendr
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 

Recently uploaded (20)

Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
 
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdfIGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
Solutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptxSolutons Maths Escape Room Spatial .pptx
Solutons Maths Escape Room Spatial .pptx
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 

Linux file system nevigation

  • 1. PPrreesseenntteedd BByy ::-- MMiissss.. SSoonnaall SSaabbhhaayyaa && MMiissss.. HHeettaall DDoobbaarriiyyaa ((FFYY..MM..SScc((IITT&&CCAA)))) SSuubbmmiitttteedd TTOO ::-- MMiissss.. RRaacchhaannaa KKaammaalliiaa
  • 2. Index Introduction File System Hierarchy Standard Types of file Acces Mode of files and directory Changing Permission Navigation Command Linux File System
  • 3. Introduction All data in Linux organized into files. All files are organized into directories. These directories are organized into a tree-like structure called the file system. Linux file system also enables you to group files into directories, which is similar to folder you create in windows explorer Linux File System
  • 4. FFiilleessyysstteemm HHiieerraarrcchhyy SSttaannddaarrdd  Defines the main directories and their contents in most Linux-based systems  There is not any drive C:, D:, …  All directories are under “/”  “/” is the root directory  It is possible  to have multiple partitions  to multiple filesystems Linux File System
  • 5.
  • 6. Filesystem Hierarchy Standard (continued)… Linux File System
  • 9. Types of file -> Ordinary Files: An ordinary file is a file on the system that contains data, text, or program instructions. -> Directories: Directories store both special and ordinary files. For users familiar with Windows or Mac OS, UNIX directories are equivalent to folders. Linux File System
  • 10. Types of file -> Special Files: Some special files provide access to hardware such as hard drives, CD-ROM drives, modems, and Ethernet adapters. Other special files are similar to aliases or shortcuts and enable you to access a single file using different names. Linux File System
  • 11. File Access Mode Read:  Grants the capability to read ie. view the contents of the file. Write:  Grants the capability to modify, or remove the content of the file. Execute:  User with execute permissions can run a file as a program. Linux File System
  • 12. Directory Access Modes Read: Access to a directory means that the user can read the contents. The user can look at the filenames inside the directory. Write: Access means that the user can add or delete files to the contents of the directory. Execute: A user must have execute access to the bin directory in order to execute ls or cd command. Linux File System
  • 13. Interpreting the Mode Linux File System
  • 14. Changing Permission  chmod (change mode) command: Change mode (permissions) of files or directories.  Permissions stored in a file’s.  New files given rw-rw-rw- permissions by default Linux File System
  • 16. Navigating the File System • Pwd (Present Working Directory) • cd • ls Linux File System
  • 17. Using the pwd Command  pwd stands for Print Working Directory.  pwd is a Linux / Unix command which prints the current working directory.  pwd prints the full pathname of the current working directory. Syntax Linux File System pwd [OPTION]...
  • 18. Using the pwd Command -P, --physical Print the Physical Directory Path Without any Sysmbolic Linux File System Link. --help Display a help message. --version Display version information.
  • 19. Using the pwd Command Examples: $ pwd /home/IT and the computer prints out /home/IT, that means that the directory the user is currently in is /home/IT. In the following example, the user is located in the directory /usr/local/bin, uses the command pwd, uses the command cd .. to move back to the parent directory and then uses pwd again: Example: Linux File System $ pwd /usr/local/bin $ cd .. $ pwd /usr/local
  • 20. Using the cd Command  The Linux cd command stands for change directory.  It is the primary command for moving between directories on a Unix/Linux filesystem.  Syntex: Linux File System cd [directory]  Here directory is the name of the directory where you wish to go. .
  • 21. Examples of cd command  Change working directory to /abc/xyz pwd /home/IT cd /abc/xyz pwd /abc/xyz  Change working directory to user’s home directory pwd /etc/BCA cd ~ or cd pwd /home/IT  Change working directory to parent directory. cd .. Linux File System
  • 22. Examples of cd command  Change working directory to parents parent directory or two levels up in the directory structure. cd ../..  Using wildcards cd /v* The * wildcard characters can be interpreted as "any number of any character", so the Linux system expands the /v* that typed into /var  Change the working directory to /var/ftp without mentioning ftp fully. cd /var/ft? This will change the directory to /var/ftp Linux File System
  • 23. Pushd command  Use pushd command to change the directory. This is similar to cd command.  It saves the current working in memory . Ex. pushd /var/ftp/pub Linux File System
  • 24. Using the ls Command  ls is a Linux shell command that lists directory contents and Files.  ls syntax $ ls [options] [file|dir] # ls 0001.Pcap Desktop Downloads index.html install.log.syslog Pictures Templates anaconda-ks.cfg Documents fbcmd_update.php install.log Music Public Videos Linux File System
  • 25. Using the ls Command ls -a list all files including hidden file starting with '.' ls -d list directories - with ' */' ls -F It differenciate files and directory. ls -i list file's inode index number ls -l list with long format - show permissions ls -la list long format including hidden files ls -lh list long format with readable file size Linux File System
  • 26. Using the ls Command Linux File System l ls -ls list with long format with file size ls -r list in reverse order ls -R list recursively directory tree ls -s list file size ls -S sort by file size ls -t sort by time & date ls -X sort by extension name
  • 27. Using the ls Command # ls -a . .bashrc Documents .gconfd install .log .nautilus .pulse-cookie .. .cache Downloads .gnome2 install .log.syslog .netstat.swp .recently-used. Linux File System l xbel 0001 .pcap .config .elinks # ls -F 0001.Pcap Desktop/ Downloads/ index.html install.log.syslog Pictures/ Templates/ anaconda-ks.cfg Documents/ fbcmd_update.php install.log Music/ $ ls -1 bin boot //Display One File Per Line Using ls -1 cdrom dev
  • 28. Using the ls Command Linux File System l $ ls / /*List root directory*/ $ ls .. List /*parent directory*/ $ ls ~ /*List user's home directory*/ $ ls * /*List all subdirectories*/ $ ls *.txt /*List only text files with wildcard*/ $ ls > out.txt /*ls redirection to output file*/
  • 29. Using the ls Command # ls -lS total 176 -rw-r--r--. 1 root root 48867 Jul 31 02:17 install.log -rw-r--r--. 1 root root 46701 Jul 31 09:58 index.html -rw-r--r--. 1 root root 21262 Aug 12 12:42 fbcmd_update.php -rw-r--r--. 1 root root 11439 Jul 31 02:13 install.log.syslog drwxr-xr-x. 2 root root 4096 Jul 31 02:48 Desktop drwxr-xr-x. 2 root root 4096 Jul 31 02:48 Documents drwxr-xr-x. 4 root root 4096 Aug 16 02:55 Downloads drwxr-xr-x. 2 root root 4096 Jul 31 02:48 Music drwxr-xr-x. 2 root root 4096 Jul 31 02:48 Pictures drwxr-xr-x. 2 root root 4096 Jul 31 02:48 Public drwxr-xr-x. 2 root root 4096 Jul 31 02:48 Templates drwxr-xr-x. 2 root root 4096 Jul 31 02:48 Videos -rw-------. 1 root root 1586 Jul 31 02:17 anaconda-ks.cfg -rw-r--r--. 1 root root 683 Aug 19 09:59 0001.pcap Linux File System l
  • 30. Using the ls Command Linux File System l # ls -i 20112 0001.pcap 23610 Documents 23793 index.html 23611 Music 23597 Templates 23564 anaconda-ks.cfg 23595 Downloads 22 install.log 23612 Pictures 23613 Videos 23594 Desktop 23585 fbcmd_update.php 35 install.log.syslog
  • 31. That’s All About Linux File System Navigation Linux File System l
  • 32. Thank You Linux File System l