Unix - Hour 3 Moving About the File System
3.1.1) lists content of current directory by forcing multiple column output and also showing the files type. The directories are identified by a / at the end. internet% ls -C -F / 3.2.1 lists content of current directory by forcing multiple column output and also showing the files type. The directories are identified by a / at the end. internet% ls -C -F README* cis327/ file40 newfile testdir/ TEST cis328/ m13com/ prokids/ testme bugTrack/ cis377/ m1feedback/ public-web/ cis316/ cis396q/ my.new.cmd* say.hi* cis325/ file4.doc new.login sort.manpage.Z internet% 3.2.3) Flag -a displays all the filles including hidden ones. internet% ls -a . .sh_history cis327 m13com public-web .. README cis328 m1feedback say.hi .cshrc TEST cis377 my.new.cmd sort.manpage.Z .jetadmin bugTrack cis396q new.login testdir .login cis316 file4.doc newfile testme .profile cis325 file40 prokids internet% 3.3.1) Could not see what the book suggests. internet% ./ls ./ls: Command not found internet% /ls /ls: Command not found 3.3.2) Listed all files in the current directory. internet% ls README cis327 file40 newfile testdir TEST cis328 m13com prokids testme bugTrack cis377 m1feedback public-web cis316 cis396q my.new.cmd say.hi cis325 file4.doc new.login sort.manpage.Z internet% 3.4.1) Displayed my environment. internet% env _=/usr/bin/csh MANPATH=/usr/share/man:/usr/local/man:/usr/openwin/man:/opt/hpnpl/man HZ=100 PATH=/usr/bin:/usr/ucb:/home2/stud-30/spantaro/bin:. LOGNAME=spantaro MAIL=/var/mail/spantaro USER=spantaro SHELL=/usr/bin/ksh HOME=/home2/stud-30/spantaro TERM=vt100 PWD=/home2/stud-30/spantaro internet% 3.5.1) Displayied the list of directories searched when a command is entered. Also displayied the directory I am logged in. internet% echo $PATH /usr/bin:/usr/ucb:/home2/stud-30/spantaro/bin:. internet% echo $HOME /home2/stud-30/spantaro internet% 3.6.1) First command did not work as suggested by the book. The second onegave me a denied permission message and the last one showed the current path of where I am in the hierachy. internet% env HOME env: No such file or directory internet% env $HOME env: Permission denied internet% pwd /home2/stud-30/spantaro internet% 3.7.1) Moved to roo directory and showed wher I was currently located. internet% cd / internet% pwd / internet% 3.7.2) Tried to change to Taylor directory but there is no directory with that name in that level. internet% cd /Taylor /Taylor: No such file or directory internet% 3.7.3 and 3.7.4) Just cd places to the home directory. Then pwd shows the current directory I am located. internet% cd internet% pwd /home2/stud-30/spantaro internet% 3.7.5) Just cd places to the home directory. Then pwd shows the current directory I am located. Then I moved to the directory one level up and again displayied the path of where I was. internet% cd internet% pwd /home2/stud-30/spantaro internet% cd .. internet% pwd /home2/stud-30 internet% 3.7.6 lists content of current directory by forcing multiple column output and also showing the files type. The directories are identified by a / at the end. internet% ls -C -F ajong/ bluong/ hkarakul/ kishiwat/ michikaw/ sansari/ viwong/ apak/ chlo/ jwu/ kmikawa/ naman/ seli/ ysoe/ blee/ hehara/ kannamal/ malferma/ pwood/ spantaro/ internet% |