practical gnu/linuxsagarun.fedorapeople.org/talks/practical_linux_0.pdf · practical gnu/linux arun...
TRANSCRIPT
fud con4-6 November, 2011
PUNE
Practical GNU/Linux
Arun S.A.G
FUDCon, Pune
November, 2011
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 1 / 27
fud con4-6 November, 2011
PUNE
Table Of Contents
1 Shell
2 Basic commands
3 Permissions
4 Text editors
5 Search for �les
6 Grep/Egrep
7 Di�
8 SCP
9 Download �lesWgetCURL
10 Redirecting things
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 2 / 27
fud con4-6 November, 2011
PUNE
Introduction To Shell
Extremely Powerful
csh,bash,zsh
Changing your login shell
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 3 / 27
fud con4-6 November, 2011
PUNE
Introduction To Shell
Extremely Powerful
csh,bash,zsh
Changing your login shell
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 3 / 27
fud con4-6 November, 2011
PUNE
Introduction To Shell
Extremely Powerful
csh,bash,zsh
Changing your login shell
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 3 / 27
fud con4-6 November, 2011
PUNE
Table Of Contents
1 Shell
2 Basic commands
3 Permissions
4 Text editors
5 Search for �les
6 Grep/Egrep
7 Di�
8 SCP
9 Download �lesWgetCURL
10 Redirecting things
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 4 / 27
fud con4-6 November, 2011
PUNE
Basic Commands
ls
cd
man
~ and /
. (dot) and .. (dotdot)
tab-completion
command history
Escaping from 'Trap': Ctrl+C, Ctrl+D and Ctrl+Z
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 5 / 27
fud con4-6 November, 2011
PUNE
Basic Commands
ls
cd
man
~ and /
. (dot) and .. (dotdot)
tab-completion
command history
Escaping from 'Trap': Ctrl+C, Ctrl+D and Ctrl+Z
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 5 / 27
fud con4-6 November, 2011
PUNE
Basic Commands
ls
cd
man
~ and /
. (dot) and .. (dotdot)
tab-completion
command history
Escaping from 'Trap': Ctrl+C, Ctrl+D and Ctrl+Z
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 5 / 27
fud con4-6 November, 2011
PUNE
Basic Commands
ls
cd
man
~ and /
. (dot) and .. (dotdot)
tab-completion
command history
Escaping from 'Trap': Ctrl+C, Ctrl+D and Ctrl+Z
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 5 / 27
fud con4-6 November, 2011
PUNE
Basic Commands
ls
cd
man
~ and /
. (dot) and .. (dotdot)
tab-completion
command history
Escaping from 'Trap': Ctrl+C, Ctrl+D and Ctrl+Z
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 5 / 27
fud con4-6 November, 2011
PUNE
Basic Commands
ls
cd
man
~ and /
. (dot) and .. (dotdot)
tab-completion
command history
Escaping from 'Trap': Ctrl+C, Ctrl+D and Ctrl+Z
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 5 / 27
fud con4-6 November, 2011
PUNE
Basic Commands
ls
cd
man
~ and /
. (dot) and .. (dotdot)
tab-completion
command history
Escaping from 'Trap': Ctrl+C, Ctrl+D and Ctrl+Z
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 5 / 27
fud con4-6 November, 2011
PUNE
Basic Commands
ls
cd
man
~ and /
. (dot) and .. (dotdot)
tab-completion
command history
Escaping from 'Trap': Ctrl+C, Ctrl+D and Ctrl+Z
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 5 / 27
fud con4-6 November, 2011
PUNE
Table Of Contents
1 Shell
2 Basic commands
3 Permissions
4 Text editors
5 Search for �les
6 Grep/Egrep
7 Di�
8 SCP
9 Download �lesWgetCURL
10 Redirecting things
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 6 / 27
fud con4-6 November, 2011
PUNE
Permissions in Linux
ls -l - View permissions
chmod - Modify permissions
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 7 / 27
fud con4-6 November, 2011
PUNE
Permissions in Linux
ls -l - View permissions
chmod - Modify permissions
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 7 / 27
fud con4-6 November, 2011
PUNE
Table Of Contents
1 Shell
2 Basic commands
3 Permissions
4 Text editors
5 Search for �les
6 Grep/Egrep
7 Di�
8 SCP
9 Download �lesWgetCURL
10 Redirecting things
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 8 / 27
fud con4-6 November, 2011
PUNE
Real Programmers
Figure: http://xkcd.com/727/
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 9 / 27
fud con4-6 November, 2011
PUNE
Editors
Vim
Emacs
Other editors
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 10 / 27
fud con4-6 November, 2011
PUNE
Editors
Vim
Emacs
Other editors
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 10 / 27
fud con4-6 November, 2011
PUNE
Editors
Vim
Emacs
Other editors
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 10 / 27
fud con4-6 November, 2011
PUNE
Table Of Contents
1 Shell
2 Basic commands
3 Permissions
4 Text editors
5 Search for �les
6 Grep/Egrep
7 Di�
8 SCP
9 Download �lesWgetCURL
10 Redirecting things
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 11 / 27
fud con4-6 November, 2011
PUNE
Finding �les
�nd <path> <command> <name>
�nd . -name "*resume*"
�nd . -perm a=rwx,g=rwx,u=rwx
�nd . -name "*resume*" -exec ls -l \;locate
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 12 / 27
fud con4-6 November, 2011
PUNE
Finding �les
�nd <path> <command> <name>
�nd . -name "*resume*"
�nd . -perm a=rwx,g=rwx,u=rwx
�nd . -name "*resume*" -exec ls -l \;locate
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 12 / 27
fud con4-6 November, 2011
PUNE
Finding �les
�nd <path> <command> <name>
�nd . -name "*resume*"
�nd . -perm a=rwx,g=rwx,u=rwx
�nd . -name "*resume*" -exec ls -l \;locate
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 12 / 27
fud con4-6 November, 2011
PUNE
Finding �les
�nd <path> <command> <name>
�nd . -name "*resume*"
�nd . -perm a=rwx,g=rwx,u=rwx
�nd . -name "*resume*" -exec ls -l \;
locate
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 12 / 27
fud con4-6 November, 2011
PUNE
Finding �les
�nd <path> <command> <name>
�nd . -name "*resume*"
�nd . -perm a=rwx,g=rwx,u=rwx
�nd . -name "*resume*" -exec ls -l \;locate
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 12 / 27
fud con4-6 November, 2011
PUNE
Table Of Contents
1 Shell
2 Basic commands
3 Permissions
4 Text editors
5 Search for �les
6 Grep/Egrep
7 Di�
8 SCP
9 Download �lesWgetCURL
10 Redirecting things
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 13 / 27
fud con4-6 November, 2011
PUNE
Searching in �les
grep <pattern> <�le>
grep "stack" tcp.c
grep "s[nmt]ck" tcp.c
grep "s.ack" tcp.c
grep "[0-9][0-9][0-9][0-9][0-9]" tcp.c
egrep "[0-9]{5}" tcp.c
egrep "hello{3}" tcp.c
egrep "(hello){3}" tcp.c
grep "�int" tcp.c
grep ";$" tcp.c
egrep "�[�0-9]*$" tcp.c
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 14 / 27
fud con4-6 November, 2011
PUNE
Searching in �les
grep <pattern> <�le>
grep "stack" tcp.c
grep "s[nmt]ck" tcp.c
grep "s.ack" tcp.c
grep "[0-9][0-9][0-9][0-9][0-9]" tcp.c
egrep "[0-9]{5}" tcp.c
egrep "hello{3}" tcp.c
egrep "(hello){3}" tcp.c
grep "�int" tcp.c
grep ";$" tcp.c
egrep "�[�0-9]*$" tcp.c
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 14 / 27
fud con4-6 November, 2011
PUNE
Searching in �les
grep <pattern> <�le>
grep "stack" tcp.c
grep "s[nmt]ck" tcp.c
grep "s.ack" tcp.c
grep "[0-9][0-9][0-9][0-9][0-9]" tcp.c
egrep "[0-9]{5}" tcp.c
egrep "hello{3}" tcp.c
egrep "(hello){3}" tcp.c
grep "�int" tcp.c
grep ";$" tcp.c
egrep "�[�0-9]*$" tcp.c
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 14 / 27
fud con4-6 November, 2011
PUNE
Searching in �les
grep <pattern> <�le>
grep "stack" tcp.c
grep "s[nmt]ck" tcp.c
grep "s.ack" tcp.c
grep "[0-9][0-9][0-9][0-9][0-9]" tcp.c
egrep "[0-9]{5}" tcp.c
egrep "hello{3}" tcp.c
egrep "(hello){3}" tcp.c
grep "�int" tcp.c
grep ";$" tcp.c
egrep "�[�0-9]*$" tcp.c
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 14 / 27
fud con4-6 November, 2011
PUNE
Searching in �les
grep <pattern> <�le>
grep "stack" tcp.c
grep "s[nmt]ck" tcp.c
grep "s.ack" tcp.c
grep "[0-9][0-9][0-9][0-9][0-9]" tcp.c
egrep "[0-9]{5}" tcp.c
egrep "hello{3}" tcp.c
egrep "(hello){3}" tcp.c
grep "�int" tcp.c
grep ";$" tcp.c
egrep "�[�0-9]*$" tcp.c
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 14 / 27
fud con4-6 November, 2011
PUNE
Searching in �les
grep <pattern> <�le>
grep "stack" tcp.c
grep "s[nmt]ck" tcp.c
grep "s.ack" tcp.c
grep "[0-9][0-9][0-9][0-9][0-9]" tcp.c
egrep "[0-9]{5}" tcp.c
egrep "hello{3}" tcp.c
egrep "(hello){3}" tcp.c
grep "�int" tcp.c
grep ";$" tcp.c
egrep "�[�0-9]*$" tcp.c
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 14 / 27
fud con4-6 November, 2011
PUNE
Searching in �les
grep <pattern> <�le>
grep "stack" tcp.c
grep "s[nmt]ck" tcp.c
grep "s.ack" tcp.c
grep "[0-9][0-9][0-9][0-9][0-9]" tcp.c
egrep "[0-9]{5}" tcp.c
egrep "hello{3}" tcp.c
egrep "(hello){3}" tcp.c
grep "�int" tcp.c
grep ";$" tcp.c
egrep "�[�0-9]*$" tcp.c
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 14 / 27
fud con4-6 November, 2011
PUNE
Searching in �les
grep <pattern> <�le>
grep "stack" tcp.c
grep "s[nmt]ck" tcp.c
grep "s.ack" tcp.c
grep "[0-9][0-9][0-9][0-9][0-9]" tcp.c
egrep "[0-9]{5}" tcp.c
egrep "hello{3}" tcp.c
egrep "(hello){3}" tcp.c
grep "�int" tcp.c
grep ";$" tcp.c
egrep "�[�0-9]*$" tcp.c
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 14 / 27
fud con4-6 November, 2011
PUNE
Searching in �les
grep <pattern> <�le>
grep "stack" tcp.c
grep "s[nmt]ck" tcp.c
grep "s.ack" tcp.c
grep "[0-9][0-9][0-9][0-9][0-9]" tcp.c
egrep "[0-9]{5}" tcp.c
egrep "hello{3}" tcp.c
egrep "(hello){3}" tcp.c
grep "�int" tcp.c
grep ";$" tcp.c
egrep "�[�0-9]*$" tcp.c
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 14 / 27
fud con4-6 November, 2011
PUNE
Searching in �les
grep <pattern> <�le>
grep "stack" tcp.c
grep "s[nmt]ck" tcp.c
grep "s.ack" tcp.c
grep "[0-9][0-9][0-9][0-9][0-9]" tcp.c
egrep "[0-9]{5}" tcp.c
egrep "hello{3}" tcp.c
egrep "(hello){3}" tcp.c
grep "�int" tcp.c
grep ";$" tcp.c
egrep "�[�0-9]*$" tcp.c
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 14 / 27
fud con4-6 November, 2011
PUNE
Searching in �les
grep <pattern> <�le>
grep "stack" tcp.c
grep "s[nmt]ck" tcp.c
grep "s.ack" tcp.c
grep "[0-9][0-9][0-9][0-9][0-9]" tcp.c
egrep "[0-9]{5}" tcp.c
egrep "hello{3}" tcp.c
egrep "(hello){3}" tcp.c
grep "�int" tcp.c
grep ";$" tcp.c
egrep "�[�0-9]*$" tcp.c
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 14 / 27
fud con4-6 November, 2011
PUNE
Table Of Contents
1 Shell
2 Basic commands
3 Permissions
4 Text editors
5 Search for �les
6 Grep/Egrep
7 Di�
8 SCP
9 Download �lesWgetCURL
10 Redirecting things
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 15 / 27
fud con4-6 November, 2011
PUNE
Compare �les line by line
di� �le1 �le2
di� dir1/ dir2/
di� �le3 �le4 -B
di� �le4 �le5 -b
di� �le1 �le2 -y
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 16 / 27
fud con4-6 November, 2011
PUNE
Compare �les line by line
di� �le1 �le2
di� dir1/ dir2/
di� �le3 �le4 -B
di� �le4 �le5 -b
di� �le1 �le2 -y
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 16 / 27
fud con4-6 November, 2011
PUNE
Compare �les line by line
di� �le1 �le2
di� dir1/ dir2/
di� �le3 �le4 -B
di� �le4 �le5 -b
di� �le1 �le2 -y
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 16 / 27
fud con4-6 November, 2011
PUNE
Compare �les line by line
di� �le1 �le2
di� dir1/ dir2/
di� �le3 �le4 -B
di� �le4 �le5 -b
di� �le1 �le2 -y
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 16 / 27
fud con4-6 November, 2011
PUNE
Compare �les line by line
di� �le1 �le2
di� dir1/ dir2/
di� �le3 �le4 -B
di� �le4 �le5 -b
di� �le1 �le2 -y
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 16 / 27
fud con4-6 November, 2011
PUNE
Table Of Contents
1 Shell
2 Basic commands
3 Permissions
4 Text editors
5 Search for �les
6 Grep/Egrep
7 Di�
8 SCP
9 Download �lesWgetCURL
10 Redirecting things
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 17 / 27
fud con4-6 November, 2011
PUNE
Secure copy - Remote copy program
scp [user1@host1:]�le1 [user2@host2:]�le2
scp [email protected]:public_html/misc/sysfs_screenshot.png~/Desktop
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 18 / 27
fud con4-6 November, 2011
PUNE
Secure copy - Remote copy program
scp [user1@host1:]�le1 [user2@host2:]�le2
scp [email protected]:public_html/misc/sysfs_screenshot.png~/Desktop
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 18 / 27
fud con4-6 November, 2011
PUNE
Table Of Contents
1 Shell
2 Basic commands
3 Permissions
4 Text editors
5 Search for �les
6 Grep/Egrep
7 Di�
8 SCP
9 Download �lesWgetCURL
10 Redirecting things
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 19 / 27
fud con4-6 November, 2011
PUNE
Table Of Contents
1 Shell
2 Basic commands
3 Permissions
4 Text editors
5 Search for �les
6 Grep/Egrep
7 Di�
8 SCP
9 Download �lesWgetCURL
10 Redirecting things
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 20 / 27
fud con4-6 November, 2011
PUNE
Wget - Network Downloader
wget <URL>
wget -c http://sagarun.fedorapeople.org/misc/fedora-live-base.ks
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 21 / 27
fud con4-6 November, 2011
PUNE
Wget - Network Downloader
wget <URL>
wget -c http://sagarun.fedorapeople.org/misc/fedora-live-base.ks
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 21 / 27
fud con4-6 November, 2011
PUNE
Table Of Contents
1 Shell
2 Basic commands
3 Permissions
4 Text editors
5 Search for �les
6 Grep/Egrep
7 Di�
8 SCP
9 Download �lesWgetCURL
10 Redirecting things
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 22 / 27
fud con4-6 November, 2011
PUNE
CURL - transfer a URL
curl <URL>
curl http://www.google.com/
curl -L http://www.google.com/
curl -O http://www.google.co.in/index.html
curl -I http://yahoo.com/
curl http://icanhazip.com/
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 23 / 27
fud con4-6 November, 2011
PUNE
CURL - transfer a URL
curl <URL>
curl http://www.google.com/
curl -L http://www.google.com/
curl -O http://www.google.co.in/index.html
curl -I http://yahoo.com/
curl http://icanhazip.com/
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 23 / 27
fud con4-6 November, 2011
PUNE
CURL - transfer a URL
curl <URL>
curl http://www.google.com/
curl -L http://www.google.com/
curl -O http://www.google.co.in/index.html
curl -I http://yahoo.com/
curl http://icanhazip.com/
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 23 / 27
fud con4-6 November, 2011
PUNE
CURL - transfer a URL
curl <URL>
curl http://www.google.com/
curl -L http://www.google.com/
curl -O http://www.google.co.in/index.html
curl -I http://yahoo.com/
curl http://icanhazip.com/
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 23 / 27
fud con4-6 November, 2011
PUNE
CURL - transfer a URL
curl <URL>
curl http://www.google.com/
curl -L http://www.google.com/
curl -O http://www.google.co.in/index.html
curl -I http://yahoo.com/
curl http://icanhazip.com/
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 23 / 27
fud con4-6 November, 2011
PUNE
CURL - transfer a URL
curl <URL>
curl http://www.google.com/
curl -L http://www.google.com/
curl -O http://www.google.co.in/index.html
curl -I http://yahoo.com/
curl http://icanhazip.com/
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 23 / 27
fud con4-6 November, 2011
PUNE
Table Of Contents
1 Shell
2 Basic commands
3 Permissions
4 Text editors
5 Search for �les
6 Grep/Egrep
7 Di�
8 SCP
9 Download �lesWgetCURL
10 Redirecting things
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 24 / 27
fud con4-6 November, 2011
PUNE
Input/Error/Output Redirection
cat /etc/passwd | grep zer0c00l
cat /etc/passwd > temppasswd
cat /etc/passwd � temppasswd
lsl
lsl 2> /dev/null
./conversation.py < name
ping google.com | tee ping
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 25 / 27
fud con4-6 November, 2011
PUNE
Input/Error/Output Redirection
cat /etc/passwd | grep zer0c00l
cat /etc/passwd > temppasswd
cat /etc/passwd � temppasswd
lsl
lsl 2> /dev/null
./conversation.py < name
ping google.com | tee ping
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 25 / 27
fud con4-6 November, 2011
PUNE
Input/Error/Output Redirection
cat /etc/passwd | grep zer0c00l
cat /etc/passwd > temppasswd
cat /etc/passwd � temppasswd
lsl
lsl 2> /dev/null
./conversation.py < name
ping google.com | tee ping
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 25 / 27
fud con4-6 November, 2011
PUNE
Input/Error/Output Redirection
cat /etc/passwd | grep zer0c00l
cat /etc/passwd > temppasswd
cat /etc/passwd � temppasswd
lsl
lsl 2> /dev/null
./conversation.py < name
ping google.com | tee ping
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 25 / 27
fud con4-6 November, 2011
PUNE
Input/Error/Output Redirection
cat /etc/passwd | grep zer0c00l
cat /etc/passwd > temppasswd
cat /etc/passwd � temppasswd
lsl
lsl 2> /dev/null
./conversation.py < name
ping google.com | tee ping
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 25 / 27
fud con4-6 November, 2011
PUNE
Input/Error/Output Redirection
cat /etc/passwd | grep zer0c00l
cat /etc/passwd > temppasswd
cat /etc/passwd � temppasswd
lsl
lsl 2> /dev/null
./conversation.py < name
ping google.com | tee ping
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 25 / 27
fud con4-6 November, 2011
PUNE
Input/Error/Output Redirection
cat /etc/passwd | grep zer0c00l
cat /etc/passwd > temppasswd
cat /etc/passwd � temppasswd
lsl
lsl 2> /dev/null
./conversation.py < name
ping google.com | tee ping
Arun S.A.G (FUDCon, Pune) Intro to GNU/Linux Command Line November, 2011 25 / 27