/l3/users/26-03-2012/NT-BSDnet/freebsd3.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 :41 :42 |
|
#ls /etc/
X11 lilalo printcap aliases localtime profile amd.map locate.rc protocols apmd.conf login.access pwd.db auth.conf login.conf rc bluetooth login.conf.db rc.bsdextended crontab mac.conf rc.conf csh.cshrc mail rc.d csh.login mail.rc rc.firewall csh.logout make.conf rc.firewall6 ... gss opieaccess snmpd.config host.conf opiekeys spwd.db hostid pam.d ssh hosts passwd ssl hosts.allow pccard_ether sysctl.conf hosts.equiv periodic syslog.conf hosts.lpd pf.os termcap inetd.conf phones ttys isdn portsnap.conf zfs libalias.conf ppp |
#ls /usr/
-p bin games include libdata local ports share test .snap compat home lib libexec obj sbin src |
#ls ~/
.bash_history .bashrc~ .k5login .profile laba .bash_profile .cache .l3rc .viminfo q .bash_profile~ .cshrc .lilalo .vimrc test .bashrc .history .login exrc test2 |
#vim .bashrc
![]() |
#~
![]() bash: :q: command not found |
#cd ~/laba
|
#pwd
/root/laba |
#ls
.man_xorg_conf man_smb_conf .putty.exe matrix.jpg .video names Light_Alloy_4.4.784_RC2_by_FAFNIR.exe ogo.jpg backup pamyatka.pdf bigfile press_any_key_to_continue.jpg bin proj freebsd.jpg text granata.jpg touchlist lpi 1 x-hardlink lpi 2 x-symlink |
#ls a*
![]() ls: a*: No such file or directory |
#cd names
|
#pwd
/root/laba/names |
#ls -l
total 116 -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 -file1 -rwxr-xr-x 1 root wheel 1 Mar 26 19:13 -hello -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 .._bash -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 ._bash -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 .bash -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 .j_bash -rwxr-xr-x 1 root wheel 1 Mar 26 19:13 .passwd -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 1cdesktop -rwxr-xr-x 1 root wheel 7123 Mar 26 19:13 Regexp.H ... -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 bjen -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 bjon -rwxr-xr-x 1 root wheel 8624 Mar 26 19:13 core.c -rwxr-xr-x 1 root wheel 6989 Mar 26 19:13 fcntl.h -rwxr-xr-x 1 root wheel 689 Mar 26 19:13 group -rwxr-xr-x 1 root wheel 25937 Mar 26 19:13 isdn_ttyfax.c -rwxr-xr-x 1 root wheel 277 Mar 26 19:13 modules -rwxr-xr-x 1 root wheel 1 Mar 26 19:13 passwd -rwxr-xr-x 1 root wheel 1 Mar 26 19:13 s_tol_ -rwxr-xr-x 1 root wheel 40290 Mar 26 19:13 term.h |
#ls a*
alloca.H acpi: events powerbtn-acpi-support.sh |
#ls -d
acpi alloca.H |
#ls *.[cChH]
Regexp.H core.c isdn_ttyfax.c alloca.H fcntl.h term.h |
#ls *BSD*
![]() ls: *BSD*: No such file or directory |
#ls j?n
![]() ls: j?n: No such file or directory |
#ls *?n
bjan bjen bjon |
#ls --*
![]() ls: illegal option -- - usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...] |
#ls -- -*
-file1 -hello |
#ls ./
./-file1 ./-hello |
#ls ./*
./-file1 ./_1_2_3 ./alloca.H ./core.c ./modules ./-hello ./__asterisk ./bjan ./fcntl.h ./passwd ./1cdesktop ./_hrypun ./bjen ./group ./s_tol_ ./Regexp.H ./_kik_my ./bjon ./isdn_ttyfax.c ./term.h ./acpi: events powerbtn-acpi-support.sh |
#ls -- *
-file1 _1_2_3 alloca.H core.c modules -hello __asterisk bjan fcntl.h passwd 1cdesktop _hrypun bjen group s_tol_ Regexp.H _kik_my bjon isdn_ttyfax.c term.h acpi: events powerbtn-acpi-support.sh |
#ls \-*
![]() ls: illegal option -- e usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...] |
#ls \--*
![]() ls: illegal option -- - usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...] |
#ls \-- *
-file1 _1_2_3 alloca.H core.c modules -hello __asterisk bjan fcntl.h passwd 1cdesktop _hrypun bjen group s_tol_ Regexp.H _kik_my bjon isdn_ttyfax.c term.h acpi: events powerbtn-acpi-support.sh |
#ls \- *
![]() ls: -: No such file or directory -file1 _1_2_3 alloca.H core.c modules -hello __asterisk bjan fcntl.h passwd 1cdesktop _hrypun bjen group s_tol_ Regexp.H _kik_my bjon isdn_ttyfax.c term.h acpi: events powerbtn-acpi-support.sh |
#ls \-*
![]() ls: illegal option -- e usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...] |
#ls \---*
![]() ls: illegal option -- - usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...] |
#ls '-'*
![]() ls: illegal option -- e usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...] |
#ls `-`*
![]() bash: -: command not found ls: illegal option -- e usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...] |
#ls `-*`
bash: -file1: command not found -file1 .passwd _kik_my core.c s_tol_ -hello 1cdesktop acpi fcntl.h term.h .._bash Regexp.H alloca.H group ._bash _1_2_3 bjan isdn_ttyfax.c .bash __asterisk bjen modules .j_bash _hrypun bjon passwd |
#ls '*'
![]() ls: illegal option -- * usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...] |
#ls "-*"
![]() ls: illegal option -- * usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...] |
#ls *\**\?*
![]() ls: ***?*: No such file or directory |
#ls *
![]() ls: illegal option -- e usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...] |
#ls \*
![]() ls: *: No such file or directory |
#ls *
![]() ls: illegal option -- e usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...] |
#ls -l *
![]() ls: illegal option -- e usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...] |
#pwd
/root/laba/names |
#ls *'*'*'?'*
![]() ls: ***?*: No such file or directory |
#ls *[*]*[?]*
![]() ls: *[*]*[?]*: No such file or directory |
#ls -l
total 116 -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 -file1 -rwxr-xr-x 1 root wheel 1 Mar 26 19:13 -hello -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 .._bash -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 ._bash -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 .bash -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 .j_bash -rwxr-xr-x 1 root wheel 1 Mar 26 19:13 .passwd -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 1cdesktop -rwxr-xr-x 1 root wheel 7123 Mar 26 19:13 Regexp.H ... -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 bjen -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 bjon -rwxr-xr-x 1 root wheel 8624 Mar 26 19:13 core.c -rwxr-xr-x 1 root wheel 6989 Mar 26 19:13 fcntl.h -rwxr-xr-x 1 root wheel 689 Mar 26 19:13 group -rwxr-xr-x 1 root wheel 25937 Mar 26 19:13 isdn_ttyfax.c -rwxr-xr-x 1 root wheel 277 Mar 26 19:13 modules -rwxr-xr-x 1 root wheel 1 Mar 26 19:13 passwd -rwxr-xr-x 1 root wheel 1 Mar 26 19:13 s_tol_ -rwxr-xr-x 1 root wheel 40290 Mar 26 19:13 term.h |
#ls -d
. |
#ls
-file1 .passwd _kik_my core.c s_tol_ -hello 1cdesktop acpi fcntl.h term.h .._bash Regexp.H alloca.H group ._bash _1_2_3 bjan isdn_ttyfax.c .bash __asterisk bjen modules .j_bash _hrypun bjon passwd |
#cd ..
|
#ls -l
total 3482 -rwxr-xr-x 1 root wheel 32810 Mar 26 19:13 .man_xorg_conf -rwxr-xr-x 1 root wheel 454656 Mar 26 19:13 .putty.exe drwxr-xr-x 2 root wheel 512 Mar 26 19:13 .video -rwxr-xr-x 1 root wheel 1751860 Mar 26 19:13 Light_Alloy_4.4.784_RC2_by_FAFNIR.exe drwxr-xr-x 3 root wheel 512 Mar 26 19:51 backup -rwxr-xr-x 1 root wheel 7994 Mar 26 19:13 bigfile drwxr-xr-x 2 root wheel 512 Mar 26 19:45 bin -rwxr-xr-x 1 root wheel 232966 Mar 26 19:13 freebsd.jpg -rwxr-xr-x 1 root wheel 52884 Mar 26 19:13 granata.jpg ... -rwxr-xr-x 1 root wheel 755680 Mar 26 19:13 matrix.jpg drwxr-xr-x 3 root wheel 512 Mar 26 19:13 names -rwxr-xr-x 1 root wheel 17622 Mar 26 19:13 ogo.jpg -rwxr-xr-x 1 root wheel 84663 Mar 26 19:13 pamyatka.pdf -rwxr-xr-x 1 root wheel 23048 Mar 26 19:13 press_any_key_to_continue.jpg drwxr-xr-x 3 root wheel 512 Mar 26 19:51 proj drwxr-xr-x 2 root wheel 512 Mar 27 16:54 text -rwxr-xr-x 1 root wheel 75 Mar 26 19:13 touchlist -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 x-hardlink lrwxr-xr-x 1 root wheel 27 Mar 26 20:09 x-symlink -> /root/laba/proj/x-project/x |
#pwd
/root/laba |
#cd names/
|
#ls -la
total 120 -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 -file1 -rwxr-xr-x 1 root wheel 1 Mar 26 19:13 -hello drwxr-xr-x 3 root wheel 512 Mar 26 19:13 . drwxr-xr-x 10 root wheel 512 Mar 26 20:09 .. -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 .._bash -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 ._bash -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 .bash -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 .j_bash -rwxr-xr-x 1 root wheel 1 Mar 26 19:13 .passwd ... -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 bjen -rwxr-xr-x 1 root wheel 0 Mar 26 19:13 bjon -rwxr-xr-x 1 root wheel 8624 Mar 26 19:13 core.c -rwxr-xr-x 1 root wheel 6989 Mar 26 19:13 fcntl.h -rwxr-xr-x 1 root wheel 689 Mar 26 19:13 group -rwxr-xr-x 1 root wheel 25937 Mar 26 19:13 isdn_ttyfax.c -rwxr-xr-x 1 root wheel 277 Mar 26 19:13 modules -rwxr-xr-x 1 root wheel 1 Mar 26 19:13 passwd -rwxr-xr-x 1 root wheel 1 Mar 26 19:13 s_tol_ -rwxr-xr-x 1 root wheel 40290 Mar 26 19:13 term.h |
#ls *\[cde]*
![]() ls: *[cde]*: No such file or directory |
#ls *'[']*
![]() ls: *[cde]*: No such file or directory |
#cd ..
|
#ls *'['cde]*
![]() ls: *[cde]*: No such file or directory |
#ls *[[]cde]*
![]() ls: *[[]cde]*: No such file or directory |
#ls
.man_xorg_conf man_smb_conf .putty.exe matrix.jpg .video names Light_Alloy_4.4.784_RC2_by_FAFNIR.exe ogo.jpg backup pamyatka.pdf bigfile press_any_key_to_continue.jpg bin proj freebsd.jpg text granata.jpg touchlist lpi 1 x-hardlink lpi 2 x-symlink |
#cd names/
|
#ls
-file1 .passwd _kik_my core.c s_tol_ -hello 1cdesktop acpi fcntl.h term.h .._bash Regexp.H alloca.H group ._bash _1_2_3 bjan isdn_ttyfax.c .bash __asterisk bjen modules .j_bash _hrypun bjon passwd |
#ls *[[]cde]*
![]() ls: *[[]cde]*: No such file or directory |
#ls *'['cde]*
![]() ls: *[cde]*: No such file or directory |
#ls *\[cde]*
![]() ls: *[cde]*: No such file or directory |
#ls .[^.]*
._bash .bash .j_bash .passwd |
#ls -d .]*
._bash .bash .j_bash .passwd |
#ls ..?*
.._bash |
#ls ..*
.._bash ..: .man_xorg_conf man_smb_conf .putty.exe matrix.jpg .video names Light_Alloy_4.4.784_RC2_by_FAFNIR.exe ogo.jpg backup pamyatka.pdf bigfile press_any_key_to_continue.jpg bin proj freebsd.jpg text granata.jpg touchlist lpi 1 x-hardlink lpi 2 x-symlink |
#pwd
/root/laba/names |
#ls ..?*
.._bash |
#echo zz*
zz* |
#ls zz*
![]() ls: zz*: No such file or directory |
#echo a*
acpi alloca.H |
#touch "file with space |