Professional Documents
Culture Documents
Unit 3
Unit 3
$ who;
$ who;ls;
$ date;
$ date;who;
$ date | wc
1 6 29
$ date
$ (date;who)
$ (date;who) | wc
3 16 125
3 16 125
$ cat save
$ wc <save
3 16 125
$ long-running-command &
[1] 3432
long-running-command &
[2] 3434
sleep 2
$ long-running-command &
[1] 3438
[2] 3440
[3] 3444
sleep 5; date)&date
[4] 3448
who am i
[1] 3460
$ tea is ready
.....it will automatically displayed
ls
......enter ls to know list of files
Desktop Downloads file1 Music nfile Pictures rfile Templates
[1] 3472
$ cat file1
Hello
$ cat file1
Hello
$ cat file1 | pr
Hello
guest-Wrgj8e@cplab-AcerPower-Series:~$
$ pr <file1
$ pr file1
Hello
Meta characters:
$ echo *
Desktop Documents Downloads examples.desktop file1 lfile Music mydir1 nfile ofile Pictures
Public rfile save Templates Videos
$ ls
$ ls -a
$ echo *
Desktop Documents Downloads examples.desktop file1 lfile Music mydir1 nfile ofile Pictures
Public rfile save Templates Videos
$ echo .*
. .. .bash_history .bash_logout .bashrc .cache .config .dbus .gconf .ICEauthority .kde .local
.mozilla .profile .Xauthority .xsession-errors
$ echo '***'
***
$ echo '***'
***
$ echo \*\*\*
***
Don't do that!
$ echo x'*'y
x*y
$ echo '*'A'?'
*A?
$ echo 'hello
> world'
hello
world
$ echo x*y
x*y
$ ls x*y
$ >xyzzy
$ ls x*y
xyzzy
$ ls 'x*y'
$ echo abc\
> def\
> ghi
abcdefghi
hello
$ echo hello#there
hello#there
$ echo ls .*
ls . .. .bash_history .bash_logout .bashrc .cache .config .dbus .gconf .ICEauthority .kde .local
.mozilla .profile .Xauthority .xsession-errors
guest-Wrgj8e@cplab-AcerPower-Series:~$ pure-echo Enter a command:
guest-Wrgj8e@cplab-AcerPower-Series:~$ pure-echo
Enter a command:guest-Wrgj8e@cplab-AcerPower-Series:~$
>'
-n
Downloads/FS_UPDATED.doc mydir1/dir2
guest-Wrgj8e@cplab-AcerPower-Series:~$