Upload
others
View
7
Download
0
Embed Size (px)
Citation preview
Introduction to filesystemIntroduction to shell
Filesystem and shell
Scripting and Computer Environment - Lecture 1
Saurabh Barjatiya
International Institute Of Information Technology, Hyderabad
26 July, 2011
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
About files / directoriesWorking with files / directories
Contents
1 Introduction to filesystemAbout files / directoriesWorking with files / directories
2 Introduction to shellShell commands
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
About files / directoriesWorking with files / directories
About files / directories
What is file?
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
About files / directoriesWorking with files / directories
About files / directories
What is file?
What is directory?
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
About files / directoriesWorking with files / directories
About files / directories
What is file?
What is directory?
Windows Drives
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
About files / directoriesWorking with files / directories
About files / directories
What is file?
What is directory?
Windows Drives
Linux root
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
About files / directoriesWorking with files / directories
About files / directories
What is file?
What is directory?
Windows Drives
Linux root
Path
Absolute path
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
About files / directoriesWorking with files / directories
About files / directories
What is file?
What is directory?
Windows Drives
Linux root
Path
Absolute pathRelative path
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
About files / directoriesWorking with files / directories
Working with files / directories
Creating / Editing / Deleting simple text files using GUI editor
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
About files / directoriesWorking with files / directories
Working with files / directories
Creating / Editing / Deleting simple text files using GUI editor
Cut / Copy / Paste text
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
About files / directoriesWorking with files / directories
Working with files / directories
Creating / Editing / Deleting simple text files using GUI editor
Cut / Copy / Paste text
Creating / Deleting / Moving directories
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
About files / directoriesWorking with files / directories
Working with files / directories
Creating / Editing / Deleting simple text files using GUI editor
Cut / Copy / Paste text
Creating / Deleting / Moving directories
Information of file size / folder size
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
About files / directoriesWorking with files / directories
Working with files / directories
Creating / Editing / Deleting simple text files using GUI editor
Cut / Copy / Paste text
Creating / Deleting / Moving directories
Information of file size / folder size
Zipping files, Creating .zip, .tar, .tar.gz, .tar.bz2
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
About files / directoriesWorking with files / directories
Working with files / directories
Creating / Editing / Deleting simple text files using GUI editor
Cut / Copy / Paste text
Creating / Deleting / Moving directories
Information of file size / folder size
Zipping files, Creating .zip, .tar, .tar.gz, .tar.bz2
Extracting .tar / .tar.gz / .tar.bz2 les
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
About files / directoriesWorking with files / directories
Working with files / directories
Creating / Editing / Deleting simple text files using GUI editor
Cut / Copy / Paste text
Creating / Deleting / Moving directories
Information of file size / folder size
Zipping files, Creating .zip, .tar, .tar.gz, .tar.bz2
Extracting .tar / .tar.gz / .tar.bz2 les
Explain storage units like bits, bytes, nibble, KB, MB, GB
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
About files / directoriesWorking with files / directories
Working with files / directories
Creating / Editing / Deleting simple text files using GUI editor
Cut / Copy / Paste text
Creating / Deleting / Moving directories
Information of file size / folder size
Zipping files, Creating .zip, .tar, .tar.gz, .tar.bz2
Extracting .tar / .tar.gz / .tar.bz2 les
Explain storage units like bits, bytes, nibble, KB, MB, GB
Data transfer units bits/sec and storage device specicationunits.
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Contents
1 Introduction to filesystemAbout files / directoriesWorking with files / directories
2 Introduction to shellShell commands
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 1
ls, ls -l, ls -a
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 1
ls, ls -l, ls -a
mkdir, mkdir -p
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 1
ls, ls -l, ls -a
mkdir, mkdir -p
rmdir
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 1
ls, ls -l, ls -a
mkdir, mkdir -p
rmdir
touch
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 1
ls, ls -l, ls -a
mkdir, mkdir -p
rmdir
touch
rm, rm -r, rm -f
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 1
ls, ls -l, ls -a
mkdir, mkdir -p
rmdir
touch
rm, rm -r, rm -f
cd
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 1
ls, ls -l, ls -a
mkdir, mkdir -p
rmdir
touch
rm, rm -r, rm -f
cd
echo
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 1
ls, ls -l, ls -a
mkdir, mkdir -p
rmdir
touch
rm, rm -r, rm -f
cd
echo
clear
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 2
gedit (Not shell command, GUI editor)
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 2
gedit (Not shell command, GUI editor)
tree
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 2
gedit (Not shell command, GUI editor)
tree
mv
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 2
gedit (Not shell command, GUI editor)
tree
mv
cp, cp -r, cp -u, cp -p
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 2
gedit (Not shell command, GUI editor)
tree
mv
cp, cp -r, cp -u, cp -p
cat
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 2
gedit (Not shell command, GUI editor)
tree
mv
cp, cp -r, cp -u, cp -p
cat
more
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 2
gedit (Not shell command, GUI editor)
tree
mv
cp, cp -r, cp -u, cp -p
cat
more
less
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 2
gedit (Not shell command, GUI editor)
tree
mv
cp, cp -r, cp -u, cp -p
cat
more
less
head, head -<number>
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 2
gedit (Not shell command, GUI editor)
tree
mv
cp, cp -r, cp -u, cp -p
cat
more
less
head, head -<number>
tail, tail -<number>
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 2
gedit (Not shell command, GUI editor)
tree
mv
cp, cp -r, cp -u, cp -p
cat
more
less
head, head -<number>
tail, tail -<number>
wc
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 3
du, du -s, du -h, du -sh
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 3
du, du -s, du -h, du -sh
tar cvf tar xvf
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 3
du, du -s, du -h, du -sh
tar cvf tar xvf
gzip
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 3
du, du -s, du -h, du -sh
tar cvf tar xvf
gzip
gunzip
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 3
du, du -s, du -h, du -sh
tar cvf tar xvf
gzip
gunzip
bzip2
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 3
du, du -s, du -h, du -sh
tar cvf tar xvf
gzip
gunzip
bzip2
bunzip2
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 3
du, du -s, du -h, du -sh
tar cvf tar xvf
gzip
gunzip
bzip2
bunzip2
zip
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 3
du, du -s, du -h, du -sh
tar cvf tar xvf
gzip
gunzip
bzip2
bunzip2
zip
unzip
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 4
which
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 4
which
whereis
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 4
which
whereis
apropos
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 4
which
whereis
apropos
man, man -aK
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 4
which
whereis
apropos
man, man -aK
find
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 4
which
whereis
apropos
man, man -aK
find
locate
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 4
which
whereis
apropos
man, man -aK
find
locate
grep, grep -v, grep -A<n>, grep -B<n>
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 4
which
whereis
apropos
man, man -aK
find
locate
grep, grep -v, grep -A<n>, grep -B<n>
cut
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 5
w
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 5
w
who
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 5
w
who
whoami
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 5
w
who
whoami
/sbin/ifconfig
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 5
w
who
whoami
/sbin/ifconfig
ping
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 5
w
who
whoami
/sbin/ifconfig
ping
ln, ln -s
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 5
w
who
whoami
/sbin/ifconfig
ping
ln, ln -s
free, free -m
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 5
w
who
whoami
/sbin/ifconfig
ping
ln, ln -s
free, free -m
script
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 5
w
who
whoami
/sbin/ifconfig
ping
ln, ln -s
free, free -m
script
df, df -h
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad
Introduction to filesystemIntroduction to shell
Shell commands
Shell commands - 5
w
who
whoami
/sbin/ifconfig
ping
ln, ln -s
free, free -m
script
df, df -h
chmod
Saurabh Barjatiya Filesystem and shell Scripting and Computer Environment - Lecture 1 IIIT Hyderabad