Minori Nakagawa #5426-8666-80 IOM 431 Unix Assignment 1. A. command: login as: minorina password: blabla.. B. output: none (actually, minorina@aludra.usc.edu's password:) C. comments: The system ask me to put my username, and then asked me to type a password 2. A. command: pwd B. output: /auto/home-scf-29/minorina C. comments: Displays my present working directory 3. A. command: mkdir unix B. output: none c. comment: Created a directory called "unix" 4. A. command: cd unix B. output: none c. comment: Moved into the "unix" directory 5. A. command: pwd>newfile1 B. output: none c. comment: Created a new file "newfile1" and put the pwd information into it. 6. A. command: cat>newfile2 B. output: None(Waiting) c. comment: It created a new file "newfile2". And, it seems the system is waiting for something input by the user. Therefore, I type some messages such as "abcde" and pressed CTRL+C (because I didn't know how to get out of the process) Then, the system put "abcde" into "newfile2". Note: cat file1 file2 > file3 will combine files 1 and 2 and put it in file3. 7. A. command: ls -l B. output: total 2 -rw------- 1 minorina 32 Feb 12 22:52 newfile1 -rw------- 1 minorina 24 Feb 12 23:09 newfile2 c. comment: Listed files in my "unix" directory The files are readable and writable for me, others do not have permissions granted Number "1" is a number of links to the file (one for each file) "minorina" is the owner of the file User minorina (me) does not belong to a group (empty space) "32" and "24" is the number of characters in the file (or bytes) "Feb 12", "22:52" and "23:09" is the date and time of When the file was last modified "newfile1", "newfile2": the current directory holds these two files 8. I. A. command: ls -A B. output: newfile1 newfile2 c. comment: Listed all entries, including those that begin with a dot (.), with the exception of the working directory(.) and the parent directory (..). II. A. command: ls -r B. output: newfile2 newfile1 c. comment: Reverses the order of sort to get reverse alphabetic or oldest first as appropriate. 9. A. command: who | grep minorina B. output: minorina pts/159 Feb 12 21:58 (localhost) C. comments: Showed the user(me)'s information on the system 10.I. A. command: who | more B. output: operator console Jan 31 15:37 aromero pts/2 Feb 10 13:07 (realism.jpl.nasa.gov) waih pts/5 Feb 1 14:09 (glory.usc.edu) : : blabla... : chengkuh pts/255 Feb 6 23:09 (aludra.usc.edu:10058.0) govindu pts/182 Feb 13 07:08 (aludra.usc.edu:10025.0) c. comment: Listed who's on the system one page at a time. II. A. command: who | wc -l B. output: 94 c. comment: Showed the number of users logged in. 11.A. command: du -s B. output: 19330 c. comment: Showed the total amount of how much strage I am currently using 12.I. A. command: cd unix B. output: none c. comment: Moved into the "unix" directory II. A. command: mkdir inside_unix B. output: none c. comment: Created a directory called "inside_unix" III. A. command: cd inside_unix B. output: none c. comment: Moved into the "inside_unix" directory IV. A. command: pwd B. output: /auto/home-scf-29/minorina/unix/inside_unix c. comment: Display where I am now (the directory location) V. A. command: cd .. B. output: none c. comment: Moved back into the "unix" directory VI. A. command: cp * inside_unix B. output: cp: inside_unix: is a directory c. comment: Copy all the files in the "unix" directory (except the subdirectory) into the "inside_unix" directory 13.I. A. command: ls -l B. output: total 2 -rw-r--r-- 1 minorina 32 Feb 13 03:11 newfile1 -rw-r--r-- 1 minorina 24 Feb 13 03:11 newfile2 c. comment: Listed the contents of the "inside_unix" directory II. A. command: cd B. output: none c. comment: Moved back to my home directory III. A. command: du -s B. output: 19336 c. comment: Display the total amount of how much strage I am currently using Yes, the number was increased by 6. The size 6 should be the size of the new files created in the "inside_unix" directory. 14.I. A. command: chmod ugo+rw * B. output: none c. comment: Change the access permission of all the files in the directory "unix" so that everybody on the system can view(read) and modify(write) them. II. A. command: ls -l B. output: total 3 drwxrwxrwx 2 minorina 512 Feb 13 11:31 inside_unix -rw-rw-rw- 1 minorina 32 Feb 12 22:52 newfile1 -rw-rw-rw- 1 minorina 24 Feb 12 23:09 newfile2 c. comment: Listed all the files and their details in the directory "unix". The permission status of these two files used to be "-rw-------" which means only user could read and write, and it has been chaged to "-rw-rw-rw-" which means everyone (user, group, and other) can read and write the file. 15.I. A. command: chmod go-w *.html B. output: chmod: No match. c. comment: Change the access permission of all the files in the directory "unix" so that everybody on the system can view(read) but only I can modify(write) all the html files. II. A. command: ls -l B. output: total 3 drwxrwxrwx 2 minorina 512 Feb 13 11:31 inside_unix -rw-rw-rw- 1 minorina 32 Feb 12 22:52 newfile1 -rw-rw-rw- 1 minorina 24 Feb 12 23:09 newfile2 c. comment: Listed all the files and their details in the directory "unix". The permission status of these files have not been changed since they are not html files. 16.A. command: finger minorina B. output: Login name: minorina In real life: Minori Nakagawa Directory: /home/scf-29/minorina Shell: /bin/tcsh On since Feb 13 12:23:40 on pts/207 from msb-bri202a-22.marshall.usc.edu 1 minute 34 seconds Idle Time c. comment: Displays my information. 17.A. command: finger minorina B. output: Login name: aansari In real life: ??? c. comment: Displays my professor's information. 18.A. command: rm newfile1 B. output: rm: remove newfile1 (yes/no)? c. comment: I answered "y"(yes) then the system deleted "newfile1". 19.A. command: find inside_unix -name newfile1 -print B. output: inside_unix/newfile1 c. comment: Find the file and Displays the result. 20.A. command: history 3 B. output: 13 12:06 cd .. 14 12:07 find inside_unix -name newfile1 -print 15 12:09 history 3 c. comment: Displays the history of commands I typed. At this time, I typed "history '3'", therefore the system displayed 3 last commands I typed in.