/l3/users/11-01-2010/nt-ladm/debian1.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 |
|
#touch `date`
|
#ls
[root@debian1:2]# date Tue Jan 12 10:27:09 EET 2010 10:27:06 12 2010 EET Jan Tue |
#ls -l1
total 0 -rw-r--r-- 1 root root 0 Jan 12 10:27 10:27:06 -rw-r--r-- 1 root root 0 Jan 12 10:27 12 -rw-r--r-- 1 root root 0 Jan 12 10:27 2010 -rw-r--r-- 1 root root 0 Jan 12 10:27 EET -rw-r--r-- 1 root root 0 Jan 12 10:27 Jan -rw-r--r-- 1 root root 0 Jan 12 10:27 Tue |
#ls -l
total 0 -rw-r--r-- 1 root root 0 Jan 12 10:27 10:27:06 -rw-r--r-- 1 root root 0 Jan 12 10:27 12 -rw-r--r-- 1 root root 0 Jan 12 10:27 2010 -rw-r--r-- 1 root root 0 Jan 12 10:27 EET -rw-r--r-- 1 root root 0 Jan 12 10:27 Jan -rw-r--r-- 1 root root 0 Jan 12 10:27 Tue |
#touch "`date`"
[root@debian1:2]# rm -v * removed `10:27:06' removed `12' removed `2010' removed `EET' removed `Jan' removed `Tue' |
#ls -l
[root@debian1:2]# ls Tue Jan 12 10:28:07 EET 2010 total 0 -rw-r--r-- 1 root root 0 Jan 12 10:28 Tue Jan 12 10:28:07 EET 2010 |
#touch "$((ariphmetic))"
![]() [root@debian1:2]# touch "$(date)" |
#A=0; while [ $A -lt 10 ] ; do A=$((A+1)) ; echo $A; done
![]() [root@debian1:2]# A=0; while [ $A -lt 10 ] ; do A=$((A+1)) ; echo $A; done 1 2 3 4 5 6 7 8 9 10 |
#cat /etc/passwd -n
75 user53:x:1054:1054::/home/user53:/bin/sh 76 user54:x:1055:1055::/home/user54:/bin/sh 77 user55:x:1056:1056::/home/user55:/bin/sh 78 user56:x:1057:1057::/home/user56:/bin/sh 79 user57:x:1058:1058::/home/user57:/bin/sh 80 user58:x:1059:1059::/home/user58:/bin/sh 81 user59:x:1060:1060::/home/user59:/bin/sh 82 user60:x:1061:1061::/home/user60:/bin/sh 83 user61:x:1062:1062::/home/user61:/bin/sh 84 user62:x:1063:1063::/home/user62:/bin/sh ... 214 user192:x:1193:1193::/home/user192:/bin/sh 215 user193:x:1194:1194::/home/user193:/bin/sh 216 user194:x:1195:1195::/home/user194:/bin/sh 217 user195:x:1196:1196::/home/user195:/bin/sh 218 user196:x:1197:1197::/home/user196:/bin/sh 219 user197:x:1198:1198::/home/user197:/bin/sh 220 user198:x:1199:1199::/home/user198:/bin/sh 221 user199:x:1200:1200::/home/user199:/bin/sh 222 user200:x:1201:1201::/home/user200:/bin/sh 223 mega:x:1202:1202:mega user:/home/mega:/bin/bash |
#man wc
|
#cat names
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "names" [New] 4L, 29C written Yuriy Yaroslav Sergey Andrey |
#cat names | sort
Andrey Sergey Yaroslav Yuriy |
#sort < /tmp/2/names > /tmp/2/sortednames
[root@debian1:2]# sort < /tmp/2/names Andrey Sergey Yaroslav Yuriy |
#sort < /tmp/2/names > /tmp/2/names
[root@debian1:2]# cat /tmp/2/sortednames Andrey Sergey Yaroslav Yuriy |
#cat /tmp/2/names
|
#sort < /tmp/2/names > /tmp/2/names
![]() [root@debian1:2]# sort < /tmp/2/names > /tmp/2/names |
#cat | grep b
![]() [root@debian1:2]# cat fffffff fffffff cgfhfth cgfhfth dfgdtrytr dfgdtrytr yghjyg yghjyg sdfsdfsdfsf sdfsdfgb sdfsdfgb |
#cat /etc/passwd
user53:x:1054:1054::/home/user53:/bin/sh user54:x:1055:1055::/home/user54:/bin/sh user55:x:1056:1056::/home/user55:/bin/sh user56:x:1057:1057::/home/user56:/bin/sh user57:x:1058:1058::/home/user57:/bin/sh user58:x:1059:1059::/home/user58:/bin/sh user59:x:1060:1060::/home/user59:/bin/sh user60:x:1061:1061::/home/user60:/bin/sh user61:x:1062:1062::/home/user61:/bin/sh user62:x:1063:1063::/home/user62:/bin/sh ... user192:x:1193:1193::/home/user192:/bin/sh user193:x:1194:1194::/home/user193:/bin/sh user194:x:1195:1195::/home/user194:/bin/sh user195:x:1196:1196::/home/user195:/bin/sh user196:x:1197:1197::/home/user196:/bin/sh user197:x:1198:1198::/home/user197:/bin/sh user198:x:1199:1199::/home/user198:/bin/sh user199:x:1200:1200::/home/user199:/bin/sh user200:x:1201:1201::/home/user200:/bin/sh mega:x:1202:1202:mega user:/home/mega:/bin/bash |
#cat /etc/passwd | head | cat -n
[root@debian1:2]# cat /etc/passwd | head root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/bin/sh bin:x:2:2:bin:/bin:/bin/sh sys:x:3:3:sys:/dev:/bin/sh sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/bin/sh man:x:6:12:man:/var/cache/man:/bin/sh lp:x:7:7:lp:/var/spool/lpd:/bin/sh mail:x:8:8:mail:/var/mail:/bin/sh news:x:9:9:news:/var/spool/news:/bin/sh 1 root:x:0:0:root:/root:/bin/bash 2 daemon:x:1:1:daemon:/usr/sbin:/bin/sh 3 bin:x:2:2:bin:/bin:/bin/sh 4 sys:x:3:3:sys:/dev:/bin/sh 5 sync:x:4:65534:sync:/bin:/bin/sync 6 games:x:5:60:games:/usr/games:/bin/sh 7 man:x:6:12:man:/var/cache/man:/bin/sh 8 lp:x:7:7:lp:/var/spool/lpd:/bin/sh 9 mail:x:8:8:mail:/var/mail:/bin/sh 10 news:x:9:9:news:/var/spool/news:/bin/sh |
#cat /etc/passwd | tail | cat -n
1 user192:x:1193:1193::/home/user192:/bin/sh 2 user193:x:1194:1194::/home/user193:/bin/sh 3 user194:x:1195:1195::/home/user194:/bin/sh 4 user195:x:1196:1196::/home/user195:/bin/sh 5 user196:x:1197:1197::/home/user196:/bin/sh 6 user197:x:1198:1198::/home/user197:/bin/sh 7 user198:x:1199:1199::/home/user198:/bin/sh 8 user199:x:1200:1200::/home/user199:/bin/sh 9 user200:x:1201:1201::/home/user200:/bin/sh 10 mega:x:1202:1202:mega user:/home/mega:/bin/bash |
#cat /etc/passwd
user53:x:1054:1054::/home/user53:/bin/sh user54:x:1055:1055::/home/user54:/bin/sh user55:x:1056:1056::/home/user55:/bin/sh user56:x:1057:1057::/home/user56:/bin/sh user57:x:1058:1058::/home/user57:/bin/sh user58:x:1059:1059::/home/user58:/bin/sh user59:x:1060:1060::/home/user59:/bin/sh user60:x:1061:1061::/home/user60:/bin/sh user61:x:1062:1062::/home/user61:/bin/sh user62:x:1063:1063::/home/user62:/bin/sh ... user192:x:1193:1193::/home/user192:/bin/sh user193:x:1194:1194::/home/user193:/bin/sh user194:x:1195:1195::/home/user194:/bin/sh user195:x:1196:1196::/home/user195:/bin/sh user196:x:1197:1197::/home/user196:/bin/sh user197:x:1198:1198::/home/user197:/bin/sh user198:x:1199:1199::/home/user198:/bin/sh user199:x:1200:1200::/home/user199:/bin/sh user200:x:1201:1201::/home/user200:/bin/sh mega:x:1202:1202:mega user:/home/mega:/bin/bash |
#cat /etc/passwd | awk '{print"User number and name "$1}'
![]() |
#cat /etc/passwd | awk -F :
User number and name user53 User number and name user54 User number and name user55 User number and name user56 User number and name user57 User number and name user58 User number and name user59 User number and name user60 User number and name user61 User number and name user62 ... User number and name user192 User number and name user193 User number and name user194 User number and name user195 User number and name user196 User number and name user197 User number and name user198 User number and name user199 User number and name user200 User number and name mega |
#cat /etc/passwd | awk -F : '{print"User number and name "
![]() |
#cat /etc/passwd | awk -F : '{print"User number and na
![]() |
#cat sortednames
Andrey Sergey Yaroslav Yuriy |
#cat sortednames | sort -n
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "sortednames" 4L, 33C written 1Yaroslav 2Yuriy 3Andrey 5Sergey |
#cat sortednames | sort -n | sed 's/^?Andrey//'
[root@debian1:2]# cat sortednames | sort -n | sed '3d' 1Yaroslav 2Yuriy 5Sergey 1Yaroslav 2Yuriy 3Andrey 5Sergey |
#cat sortednames | sort -n | tee /tmp/ sed 's/^[0-9]Andrey
![]() |
#cat sortednames | sort -n | tee /tmp/copy_of_pipe |
|
#cd ..
|
#pwd
/ |
#ls
bin dev home lib media opt root srv tmp var boot etc initrd lost+found mnt proc sbin sys usr |
#cd /usr/share/d
![]() debconf/ debianutils/ dict/ doc-base/ debhelper/ defoma/ doc/ dpkg/ |
#cd /usr/share/doc
|
#ls a*
acl: adduser: changelog.gz copyright examples TODO.gz apt: changelog.Debian.gz copyright examples aptitude: changelog.Debian.gz examples README README.hier copyright NEWS README.Debian TODO apt-utils: changelog.Debian.gz copyright examples attr: |
#ls
console-cyrillic libxi6 console-data libxinerama1 console-terminus libxkbfile1 coreutils libxml2 cpio libxmu6 cpp libxmuu1 cpp-4.1 libxp6 cron libxpm4 debconf libxrandr2 debconf-i18n libxrender1 ... libsm6 xserver-xorg-video-vga libss2 xserver-xorg-video-via libssl0.9.8 xserver-xorg-video-vmware libssp0 xserver-xorg-video-voodoo libstartup-notification0 xterm libstdc++6 xutils libtasn1-3 xutils-dev libtext-charwidth-perl x-window-system libtext-iconv-perl zlib1g libtext-wrapi18n-perl |
#ls *.[cChH]
![]() ls: *.[cChH]: No such file or directory |
#ls *.
![]() ls: *.: No such file or directory |
#ls *BSD*
![]() ls: *BSD*: No such file or directory |
#ls j?n
![]() ls: j?n: No such file or directory |
#ls
console-cyrillic libxi6 console-data libxinerama1 console-terminus libxkbfile1 coreutils libxml2 cpio libxmu6 cpp libxmuu1 cpp-4.1 libxp6 cron libxpm4 debconf libxrandr2 debconf-i18n libxrender1 ... libsm6 xserver-xorg-video-vga libss2 xserver-xorg-video-via libssl0.9.8 xserver-xorg-video-vmware libssp0 xserver-xorg-video-voodoo libstartup-notification0 xterm libstdc++6 xutils libtasn1-3 xutils-dev libtext-charwidth-perl x-window-system libtext-iconv-perl zlib1g libtext-wrapi18n-perl |
#ls z?i
![]() ls: z?i: No such file or directory |
#ls z?i
![]() ls: z?i: No such file or directory |
#ls l?b
![]() ls: l?b: No such file or directory |
#ls `l?b`
console-cyrillic libxi6 console-data libxinerama1 console-terminus libxkbfile1 coreutils libxml2 cpio libxmu6 cpp libxmuu1 cpp-4.1 libxp6 |