/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 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 -- -*
![]() ls: -*: No such file or directory |
#ls ???
acl: apt: changelog.Debian.gz copyright examples cpp: changelog.Debian.gz copyright FAQ.gz README.Bugs README.Debian.gz gcc: changelog.Debian.gz copyright FAQ.gz README.Bugs README.Debian.gz gdm: changelog.Debian.gz copyright README README.install.gz changelog.gz NEWS.gz README.Debian TODO ... AUTHORS.gz changelog.Debian.gz copyright NEWS.gz sed-4.1.5 THANKS.gz BUGS.gz changelog.gz examples README.gz sedfaq.txt.gz tar: AUTHORS changelog.Debian.gz copyright README.Debian changelog.1.gz changelog.gz NEWS.gz THANKS.gz ucf: changelog.gz copyright examples vim: changelog.Debian.gz FAQ.gz NEWS.Debian.gz README.gz vim-policy.txt.gz copyright html README.Debian TODO.Debian |
#ls ??
changelog.Debian.gz copyright POSIX.gz THANKS.gz changelog.gz NEWS.gz README.gz TODO.gz |
#ls ?
![]() ls: ?: No such file or directory |
#ls ?????????????????/
fontconfig-config/: AUTHORS changelog.Debian.gz changelog.gz copyright README.gz libgnomecanvas2-0/: AUTHORS changelog.Debian.gz changelog.gz copyright NEWS.gz README libgnome-keyring0/: AUTHORS changelog.Debian.gz changelog.gz copyright NEWS.gz README TODO module-init-tools/: changelog.Debian.gz changelog.gz copyright examples FAQ TODO python2.4-minimal/: changelog.Debian.gz copyright README.Debian xserver-xorg-core/: changelog.Debian.gz changelog.gz copyright NEWS.Debian.gz |
#ls ????
attr: bash: BUGS.bash_completion completion-contrib POSIX.gz changelog.bash_completion.gz copyright README.abs-guide changelog.Debian.gz FAQ README.bash_completion.gz changelog.gz inputrc.arrows README.commands.gz CHANGES.gz INTRO.gz README.Debian.gz COMPAT.gz NEWS.gz cpio: changelog.Debian.gz changelog.gz copyright NEWS.gz README.gz ... tcpd: changelog.Debian.gz copyright README.gz changelog.gz README.Debian README.NIS.gz tree: changelog.Debian.gz changelog.gz copyright README wget: AUTHORS changelog.gz copyright NEWS.gz TODO.gz changelog.Debian.gz ChangeLog.README MAILING-LIST README xorg: changelog.Debian.gz copyright |
#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 lib???
libfs6: changelog.Debian.gz copyright libsm6: changelog.Debian.gz copyright libss2: changelog.Debian.gz copyright libxi6: changelog.Debian.gz copyright libxp6: changelog.Debian.gz copyright libxt6: changelog.Debian.gz copyright libxv1: changelog.Debian.gz copyright |
#man name
![]() |
#cpuinfo
![]() bash: cpuinfo: command not found |
#ssh 192.168.16.23
[root@debian1:2]# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz stepping : 11 cpu MHz : 2405.454 cache size : 4096 KB fdiv_bug : no ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. l3-agent is already running: pid=16277; pidfile=/root/.lilalo/l3-agent.pid |
#cat /
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz stepping : 11 cpu MHz : 2405.454 cache size : 4096 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu de tsc msr pae cx8 apic cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc up pni bogomips : 6015.27 |
#sysinfo
![]() bash: sysinfo: command not found |
#[root@fbsd3:~]#
[root@fbsd3:~]# sysctl -a | grep CPU hw.model: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz dev.cpu.0.%desc: ACPI CPU õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#man sys
![]() |
#man
|
#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 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 |
#echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
#echo $path
|
#ecgo $(((1+2+3)*4*5+1))
![]() bash: ecgo: command not found |
#ech
121 |
#a=1
|
#b=2
|
#echo $(A+B)
bash: A+B: command not found |
#echo $((A+B)
0 |
#echo $((a+b
3 |
#cd /tmp
|
#ls
-1 2005 2009 abcd fifo hard_link_to_file v218742 123 2006 a abcde filename1 hard_link_to_file_backup zmanDW1PTG 2 2007 ab bind fileperm1 hard_link_to_file_copy 2004 2008 abc copy_of_pipe find passwd |
#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 |
#less newfile
|
#mna less
![]() bash: mna: command not found |
#man less
|
#vim newfile
![]() |
#cat newfile
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 |
#sort </etc/passwd
user14:x:1015:1015::/home/user14:/bin/sh user150:x:1151:1151::/home/user150:/bin/sh user151:x:1152:1152::/home/user151:/bin/sh user152:x:1153:1153::/home/user152:/bin/sh user153:x:1154:1154::/home/user153:/bin/sh user154:x:1155:1155::/home/user154:/bin/sh user155:x:1156:1156::/home/user155:/bin/sh user156:x:1157:1157::/home/user156:/bin/sh user157:x:1158:1158::/home/user157:/bin/sh user158:x:1159:1159::/home/user158:/bin/sh ... user94:x:1095:1095::/home/user94:/bin/sh user95:x:1096:1096::/home/user95:/bin/sh user96:x:1097:1097::/home/user96:/bin/sh user97:x:1098:1098::/home/user97:/bin/sh user98:x:1099:1099::/home/user98:/bin/sh user99:x:1100:1100::/home/user99:/bin/sh user9:x:1010:1010::/home/user9:/bin/sh user:x:1000:1000:User,,,:/home/user:/bin/bash uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh www-data:x:33:33:www-data:/var/www:/bin/sh |
#cat > file
zgfsdg dfsgsdfgd sdfgfsdg |
#cat >> file
1 2 3 45 |
#less file
![]() |
#cat /etc/passwd |more
|
#cat /etc/passwd |more
|
#:q
![]() bash: :q: command not found |
#ls a*
a ab abc abcd abcde |